Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.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.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap") translateModel(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap,tolerance=1e-06,outputFormat="mat",numberOfIntervals=1000,variableFilter="time|magFluxSensor.Phi|voltageSensor.v",fileNamePrefix="Modelica_4.0.0_Modelica.Magnetic.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.00169/0.00169, allocations: 106.3 kB / 17.16 MB, free: 6.324 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.002082/0.002082, allocations: 198.9 kB / 18.08 MB, free: 5.422 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 2.117/2.117, allocations: 222.9 MB / 241.8 MB, free: 15.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001715/0.001715, allocations: 48.14 kB / 300.6 MB, free: 6.168 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1466/0.1483, allocations: 49.44 MB / 350.1 MB, free: 4.715 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap): time 0.008907/0.1573, allocations: 3.515 MB / 353.6 MB, free: 1.172 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003029/0.1604, allocations: 0.9269 MB / 354.5 MB, free: 248 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006673/0.1611, allocations: 8 kB / 354.5 MB, free: 240 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006162/0.1618, allocations: 67.47 kB / 354.6 MB, free: 172 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001133/0.163, allocations: 135.1 kB / 354.7 MB, free: 36 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009042/0.1639, allocations: 143.9 kB / 354.8 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.00138/0.1653, allocations: 0.5958 MB / 355.4 MB, free: 15.3 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0005214/0.1658, allocations: 166.3 kB / 355.6 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006684/0.1665, allocations: 219 kB / 355.8 MB, free: 14.91 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006622/0.1672, allocations: 266.6 kB / 356.1 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001943/0.1674, allocations: 32 kB / 356.1 MB, free: 14.62 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002072/0.1677, allocations: 36 kB / 356.1 MB, free: 14.59 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001865/0.1679, allocations: 107.5 kB / 356.2 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005419/0.1684, allocations: 266.5 kB / 356.5 MB, free: 14.22 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007868/0.1692, allocations: 483 kB / 357 MB, free: 13.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.965e-06/0.1693, allocations: 7.938 kB / 357 MB, free: 13.74 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.763e-06/0.1693, allocations: 0 / 357 MB, free: 13.74 MB / 302.1 MB Notification: Performance of Transformations before backend: time 2.883e-05/0.1693, allocations: 0 / 357 MB, free: 13.74 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: 128 * Number of variables: 128 Notification: Performance of Generate backend data structure: time 0.002993/0.1723, allocations: 0.842 MB / 357.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.949e-05/0.1724, allocations: 12.02 kB / 357.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002205/0.1726, allocations: 60.19 kB / 357.9 MB, free: 12.78 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008276/0.1735, allocations: 347.1 kB / 358.2 MB, free: 12.4 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.409e-05/0.1736, allocations: 37.69 kB / 358.3 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001393/0.1737, allocations: 48.38 kB / 358.3 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001622/0.1754, allocations: 446.4 kB / 358.8 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.116e-05/0.1754, allocations: 0 / 358.8 MB, free: 11.87 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.033e-05/0.1755, allocations: 20 kB / 358.8 MB, free: 11.85 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.205e-05/0.1755, allocations: 12 kB / 358.8 MB, free: 11.84 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001659/0.1772, allocations: 389 kB / 359.2 MB, free: 11.46 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004797/0.182, allocations: 1.581 MB / 360.8 MB, free: 9.773 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001271/0.1833, allocations: 409.4 kB / 361.2 MB, free: 9.344 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007082/0.1841, allocations: 189.4 kB / 361.3 MB, free: 9.156 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.076e-05/0.1841, allocations: 8.266 kB / 361.3 MB, free: 9.148 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.038e-05/0.1842, allocations: 42.89 kB / 361.4 MB, free: 9.098 MB / 302.1 MB Notification: Performance of pre-optimization done (n=39): time 3.236e-06/0.1842, allocations: 0 / 361.4 MB, free: 9.098 MB / 302.1 MB Notification: Performance of matching and sorting (n=55): time 0.003693/0.1879, allocations: 1.187 MB / 362.6 MB, free: 7.902 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.125e-05/0.188, allocations: 63.97 kB / 362.6 MB, free: 7.824 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005076/0.1885, allocations: 397.5 kB / 363 MB, free: 7.426 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.579e-05/0.1886, allocations: 29.7 kB / 363.1 MB, free: 7.391 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002049/0.1888, allocations: 299.8 kB / 363.3 MB, free: 7.094 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001738/0.189, allocations: 193.3 kB / 363.5 MB, free: 6.902 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001783/0.1892, allocations: 110.2 kB / 363.6 MB, free: 6.785 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.1893, allocations: 358.8 kB / 364 MB, free: 6.426 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000467/0.1898, allocations: 173.2 kB / 364.2 MB, free: 6.258 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005243/0.1903, allocations: 303 kB / 364.5 MB, free: 5.918 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009663/0.1913, allocations: 0.4907 MB / 364.9 MB, free: 5.383 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.288e-06/0.1913, allocations: 0 / 364.9 MB, free: 5.383 MB / 302.1 MB Notification: Performance of matching and sorting (n=82) (initialization): time 0.001661/0.193, allocations: 0.7421 MB / 365.7 MB, free: 4.629 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.875e-05/0.193, allocations: 8 kB / 365.7 MB, free: 4.621 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.386e-05/0.193, allocations: 4 kB / 365.7 MB, free: 4.617 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0006359/0.1937, allocations: 188.8 kB / 365.9 MB, free: 4.43 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005139/0.1942, allocations: 107.9 kB / 366 MB, free: 4.324 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.004343/0.1986, allocations: 3.861 MB / 369.9 MB, free: 208 kB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005424/0.1991, allocations: 35.98 kB / 369.9 MB, free: 172 kB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.04e-05/0.1992, allocations: 20 kB / 369.9 MB, free: 152 kB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 14 * 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 (58): * Single equations (assignments): 56 * 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.2618/0.461, allocations: 179.8 kB / 370.1 MB, free: 24.89 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002331/0.4613, allocations: 45.19 kB / 370.1 MB, free: 24.89 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002076/0.4615, allocations: 59.58 kB / 370.2 MB, free: 24.89 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.705e-05/0.4615, allocations: 8.875 kB / 370.2 MB, free: 24.89 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.329e-05/0.4616, allocations: 5.406 kB / 370.2 MB, free: 24.89 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.209e-05/0.4616, allocations: 3.375 kB / 370.2 MB, free: 24.89 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004702/0.4663, allocations: 1.315 MB / 371.5 MB, free: 24.53 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.04e-05/0.4664, allocations: 1.469 kB / 371.5 MB, free: 24.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005994/0.467, allocations: 69.59 kB / 371.6 MB, free: 24.53 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0008762/0.4679, allocations: 156.6 kB / 371.7 MB, free: 24.52 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.364e-05/0.468, allocations: 17.22 kB / 371.8 MB, free: 24.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005371/0.4733, allocations: 3.699 MB / 375.5 MB, free: 21.57 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.737e-06/0.4734, allocations: 5.562 kB / 375.5 MB, free: 21.57 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002374/0.4758, allocations: 0.6972 MB / 376.2 MB, free: 21.22 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002722/0.4761, allocations: 125.3 kB / 376.3 MB, free: 21.1 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001234/0.4762, allocations: 12.38 kB / 376.3 MB, free: 21.09 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005957/0.4769, allocations: 26.7 kB / 376.3 MB, free: 21.09 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000233/0.4771, allocations: 45.42 kB / 376.4 MB, free: 21.08 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.177e-05/0.4772, allocations: 16.48 kB / 376.4 MB, free: 21.07 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0006304/0.4778, allocations: 273.6 kB / 376.6 MB, free: 20.94 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.3e-07/0.4778, allocations: 0 / 376.6 MB, free: 20.94 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.001267/0.4791, allocations: 153.2 kB / 376.8 MB, free: 20.91 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 5 * 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 simulation (35): * Single equations (assignments): 33 * 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.0002074/0.4793, allocations: 119.9 kB / 376.9 MB, free: 20.81 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002351/0.4817, allocations: 0.7813 MB / 377.7 MB, free: 20.4 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.611e-06/0.4817, allocations: 1.406 kB / 377.7 MB, free: 20.4 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009877/0.4827, allocations: 0.5258 MB / 378.2 MB, free: 20.06 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007927/0.4835, allocations: 41.61 kB / 378.3 MB, free: 20.03 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00263/0.4862, allocations: 1.203 MB / 379.5 MB, free: 19.25 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000558/0.4868, allocations: 0.8616 MB / 380.3 MB, free: 18.55 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002304/0.487, allocations: 38.94 kB / 380.4 MB, free: 18.54 MB / 302.1 MB Notification: Performance of SimCode: time 2.444e-06/0.487, allocations: 0 / 380.4 MB, free: 18.54 MB / 302.1 MB Notification: Performance of Templates: time 0.0227/0.5097, allocations: 9.61 MB / 390 MB, free: 15.14 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.makefile (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.sim & ./Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/BasicExamples/QuadraticCoreAirgap/QuadraticCoreAirgap.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.BasicExamples.QuadraticCoreAirgap.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches