Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") translateModel(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi.re|magFluxSensor.Phi.im|voltageSensor.v.re|voltageSensor.v.im",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001521/0.001521, allocations: 113 kB / 17.68 MB, free: 5.473 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001684/0.001684, allocations: 190.9 kB / 18.62 MB, free: 4.543 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.234/1.234, allocations: 222.9 MB / 242.3 MB, free: 15.09 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001084/0.001084, allocations: 53.52 kB / 302.1 MB, free: 5.152 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09844/0.09954, allocations: 49.44 MB / 351.5 MB, free: 3.688 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.007506/0.1071, allocations: 6.697 MB / 358.2 MB, free: 12.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.004639/0.1118, allocations: 2.389 MB / 360.6 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006557/0.1124, allocations: 20 kB / 360.6 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004011/0.1165, allocations: 1.876 MB / 362.5 MB, free: 8.652 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00219/0.1187, allocations: 0.7027 MB / 363.2 MB, free: 7.945 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.002453/0.1211, allocations: 1.171 MB / 364.4 MB, free: 6.777 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.001495/0.1226, allocations: 1.121 MB / 365.5 MB, free: 5.652 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.001215/0.1239, allocations: 0.9426 MB / 366.4 MB, free: 4.691 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005062/0.1244, allocations: 486.2 kB / 366.9 MB, free: 4.215 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006081/0.125, allocations: 0.6186 MB / 367.5 MB, free: 3.594 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001202/0.1251, allocations: 100 kB / 367.6 MB, free: 3.496 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0008553/0.126, allocations: 431.6 kB / 368 MB, free: 3.074 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001709/0.1262, allocations: 255 kB / 368.3 MB, free: 2.824 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004564/0.1266, allocations: 0.5558 MB / 368.8 MB, free: 2.266 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001748/0.1284, allocations: 1.647 MB / 370.5 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.332e-06/0.1284, allocations: 0 / 370.5 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of FrontEnd: time 3.717e-06/0.1284, allocations: 0 / 370.5 MB, free: 0.6133 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.143e-05/0.1284, allocations: 3.938 kB / 370.5 MB, free: 0.6094 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 328 * Number of variables: 328 Notification: Performance of Generate backend data structure: time 0.1847/0.3132, allocations: 2.009 MB / 372.5 MB, free: 25.22 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.037e-05/0.3132, allocations: 11.47 kB / 372.5 MB, free: 25.22 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.003528/0.3168, allocations: 0.5043 MB / 373 MB, free: 25.16 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002948/0.3171, allocations: 307.4 kB / 373.3 MB, free: 24.89 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001055/0.3172, allocations: 98.7 kB / 373.4 MB, free: 24.88 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002479/0.3175, allocations: 128.7 kB / 373.5 MB, free: 24.83 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00246/0.3199, allocations: 1.3 MB / 374.8 MB, free: 24.29 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 4.104e-05/0.32, allocations: 3.938 kB / 374.8 MB, free: 24.29 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 0.0001034/0.3201, allocations: 63.92 kB / 374.9 MB, free: 24.24 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.178e-05/0.3201, allocations: 31.06 kB / 374.9 MB, free: 24.24 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002314/0.3224, allocations: 1.195 MB / 376.1 MB, free: 23.84 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.006062/0.3285, allocations: 4.186 MB / 380.3 MB, free: 21.32 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002355/0.3309, allocations: 2.441 MB / 382.8 MB, free: 19.3 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000979/0.3319, allocations: 0.5072 MB / 383.3 MB, free: 19.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001356/0.3321, allocations: 109.6 kB / 383.4 MB, free: 19.01 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.561e-05/0.3321, allocations: 47.98 kB / 383.4 MB, free: 18.96 MB / 302.1 MB Notification: Performance of pre-optimization done (n=122): time 3.426e-06/0.3321, allocations: 1.531 kB / 383.4 MB, free: 18.96 MB / 302.1 MB Notification: Performance of matching and sorting (n=125): time 0.00996/0.3421, allocations: 3.796 MB / 387.2 MB, free: 17.33 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.017e-05/0.3422, allocations: 90.64 kB / 387.3 MB, free: 17.24 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004451/0.3426, allocations: 391.8 kB / 387.7 MB, free: 17 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.06e-05/0.3427, allocations: 46.58 kB / 387.7 MB, free: 16.95 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001607/0.3428, allocations: 449.4 kB / 388.2 MB, free: 16.55 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001885/0.343, allocations: 426.8 kB / 388.6 MB, free: 16.19 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003356/0.3434, allocations: 229.8 kB / 388.8 MB, free: 16.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 8.996e-05/0.3435, allocations: 373.6 kB / 389.2 MB, free: 15.69 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009473/0.3444, allocations: 437.9 kB / 389.6 MB, free: 15.48 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001058/0.3455, allocations: 0.7001 MB / 390.3 MB, free: 14.95 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001894/0.3474, allocations: 1.178 MB / 391.5 MB, free: 14.18 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.01e-06/0.3474, allocations: 0 / 391.5 MB, free: 14.18 MB / 302.1 MB Notification: Performance of matching and sorting (n=170) (initialization): time 0.00273/0.3502, allocations: 1.467 MB / 393 MB, free: 13.45 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.574e-05/0.3502, allocations: 12.28 kB / 393 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.502e-05/0.3502, allocations: 11.69 kB / 393 MB, free: 13.44 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0005099/0.3507, allocations: 200.2 kB / 393.2 MB, free: 13.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001152/0.3519, allocations: 288.5 kB / 393.5 MB, free: 13.28 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.003118/0.355, allocations: 4.383 MB / 397.8 MB, free: 9.332 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009802/0.356, allocations: 71.48 kB / 397.9 MB, free: 9.297 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.102e-05/0.3561, allocations: 60.44 kB / 398 MB, free: 9.277 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 31 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (146): * Single equations (assignments): 144 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,12,100.0%), (1,12,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.0003845/0.3565, allocations: 268.7 kB / 398.2 MB, free: 9.055 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001143/0.3566, allocations: 66.56 kB / 398.3 MB, free: 9.023 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002566/0.3592, allocations: 1.349 MB / 399.6 MB, free: 8.266 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.725e-06/0.3592, allocations: 12.12 kB / 399.7 MB, free: 8.254 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.192e-06/0.3592, allocations: 4 kB / 399.7 MB, free: 8.25 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.254e-05/0.3593, allocations: 11.91 kB / 399.7 MB, free: 8.238 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003772/0.363, allocations: 2.612 MB / 402.3 MB, free: 5.551 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.252e-06/0.3631, allocations: 3.984 kB / 402.3 MB, free: 5.547 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008728/0.3639, allocations: 219.7 kB / 402.5 MB, free: 5.332 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003787/0.3643, allocations: 168.4 kB / 402.7 MB, free: 5.164 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.182e-05/0.3644, allocations: 31.98 kB / 402.7 MB, free: 5.133 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.00266/0.3671, allocations: 4.182 MB / 406.9 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.613e-06/0.3671, allocations: 0 / 406.9 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003579/0.3707, allocations: 1.872 MB / 408.8 MB, free: 14.78 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000371/0.3711, allocations: 240.1 kB / 409 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000103/0.3712, allocations: 27.94 kB / 409 MB, free: 14.5 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006737/0.3718, allocations: 64.02 kB / 409.1 MB, free: 14.43 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001885/0.372, allocations: 92.8 kB / 409.2 MB, free: 14.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.722e-05/0.3721, allocations: 35.98 kB / 409.2 MB, free: 14.31 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0002732/0.3724, allocations: 267.3 kB / 409.5 MB, free: 14.05 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3724, allocations: 3.938 kB / 409.5 MB, free: 14.04 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001111/0.3735, allocations: 302.6 kB / 409.8 MB, free: 13.75 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * Number of states: 1 (currentSource.pin_p.reference.gamma) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (106): * Single equations (assignments): 104 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 2 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 2 systems {(1,10,100.0%), (1,10,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of Backend phase and start with SimCode phase: time 0.0003215/0.3738, allocations: 179.1 kB / 409.9 MB, free: 13.57 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002952/0.3768, allocations: 1.456 MB / 411.4 MB, free: 12.09 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.1e-06/0.3768, allocations: 0 / 411.4 MB, free: 12.09 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001494/0.3783, allocations: 0.8701 MB / 412.3 MB, free: 11.2 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005784/0.3789, allocations: 73.44 kB / 412.3 MB, free: 11.12 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003839/0.3828, allocations: 1.935 MB / 414.3 MB, free: 9.164 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005175/0.3833, allocations: 1.005 MB / 415.3 MB, free: 8.129 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000584/0.3839, allocations: 150.6 kB / 415.4 MB, free: 7.977 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002285/0.3841, allocations: 75.41 kB / 415.5 MB, free: 7.902 MB / 318.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3841, allocations: 3.938 kB / 415.5 MB, free: 7.898 MB / 318.1 MB Notification: Performance of Templates: time 0.6908/1.075, allocations: 10.15 MB / 425.7 MB, free: 13.81 MB / 334.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/QuasiStatic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.QuasiStatic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches