Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.Hysteresis.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding1.i|winding2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|core.B|core.Hstat|core.MagRel|winding1.i|winding2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001229/0.001229, allocations: 102.5 kB / 17.59 MB, free: 5.555 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.00132/0.00132, allocations: 192 kB / 18.51 MB, free: 4.637 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.304/1.304, allocations: 205.1 MB / 224.4 MB, free: 12.31 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001198/0.001198, allocations: 56.39 kB / 280.7 MB, free: 3.164 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08498/0.08619, allocations: 46.64 MB / 327.3 MB, free: 4.465 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.005519/0.09176, allocations: 3.345 MB / 330.6 MB, free: 1.09 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.00257/0.09438, allocations: 1.392 MB / 332 MB, free: 15.69 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002208/0.09462, allocations: 8 kB / 332 MB, free: 15.68 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.002871/0.09758, allocations: 2.663 MB / 334.7 MB, free: 13.01 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005141/0.09811, allocations: 166.7 kB / 334.9 MB, free: 12.85 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007135/0.09883, allocations: 283.5 kB / 335.1 MB, free: 12.57 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001687/0.1005, allocations: 1.79 MB / 336.9 MB, free: 10.78 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002096/0.1007, allocations: 131.3 kB / 337.1 MB, free: 10.64 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000319/0.1011, allocations: 305.1 kB / 337.4 MB, free: 10.34 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003789/0.1015, allocations: 326.8 kB / 337.7 MB, free: 10.02 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 9.534e-05/0.1016, allocations: 44 kB / 337.7 MB, free: 9.98 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000199/0.1018, allocations: 75.98 kB / 337.8 MB, free: 9.906 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007015/0.1025, allocations: 0.8491 MB / 338.6 MB, free: 9.055 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000725/0.1032, allocations: 0.9346 MB / 339.6 MB, free: 8.113 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001995/0.1052, allocations: 2.581 MB / 342.2 MB, free: 5.523 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.489e-06/0.1052, allocations: 0 / 342.2 MB, free: 5.523 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.342e-06/0.1052, allocations: 0 / 342.2 MB, free: 5.523 MB / 286.1 MB Notification: Performance of Transformations before backend: time 2.377e-05/0.1053, allocations: 4 kB / 342.2 MB, free: 5.52 MB / 286.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 89 * Number of variables: 89 Notification: Performance of Generate backend data structure: time 0.003359/0.1086, allocations: 2.794 MB / 345 MB, free: 2.66 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.693e-05/0.1087, allocations: 8.031 kB / 345 MB, free: 2.652 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002883/0.109, allocations: 281.3 kB / 345.2 MB, free: 2.375 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002/0.111, allocations: 1.816 MB / 347 MB, free: 0.5039 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 6.961e-05/0.1111, allocations: 55.27 kB / 347.1 MB, free: 456 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001666/0.1112, allocations: 63.84 kB / 347.2 MB, free: 392 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006785/0.1119, allocations: 395 kB / 347.6 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.708e-05/0.112, allocations: 0 / 347.6 MB, free: 15.98 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.082e-05/0.112, allocations: 16 kB / 347.6 MB, free: 15.96 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.181e-05/0.112, allocations: 8 kB / 347.6 MB, free: 15.95 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006808/0.1127, allocations: 327.7 kB / 347.9 MB, free: 15.64 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003687/0.1164, allocations: 2.903 MB / 350.8 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006017/0.117, allocations: 316.9 kB / 351.1 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002996/0.1173, allocations: 165.6 kB / 351.3 MB, free: 12.14 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.598e-05/0.1174, allocations: 12 kB / 351.3 MB, free: 12.12 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.632e-05/0.1174, allocations: 39.09 kB / 351.3 MB, free: 12.08 MB / 302.1 MB Notification: Performance of pre-optimization done (n=37): time 1.804e-06/0.1174, allocations: 0 / 351.3 MB, free: 12.08 MB / 302.1 MB Notification: Performance of matching and sorting (n=48): time 0.004479/0.1219, allocations: 2.362 MB / 353.7 MB, free: 9.645 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.267e-05/0.122, allocations: 81.55 kB / 353.8 MB, free: 9.547 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.005505/0.1275, allocations: 5.439 MB / 359.2 MB, free: 4.105 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 6.844e-05/0.1276, allocations: 33.7 kB / 359.2 MB, free: 4.066 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001059/0.1286, allocations: 1.207 MB / 360.4 MB, free: 2.855 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001455/0.1288, allocations: 165.5 kB / 360.6 MB, free: 2.691 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001379/0.1289, allocations: 90.23 kB / 360.7 MB, free: 2.598 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001101/0.1291, allocations: 326 kB / 361 MB, free: 2.273 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003344/0.1294, allocations: 141 kB / 361.1 MB, free: 2.137 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003525/0.1298, allocations: 225.6 kB / 361.4 MB, free: 1.891 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007045/0.1305, allocations: 380.3 kB / 361.7 MB, free: 1.492 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.665e-06/0.1305, allocations: 3.938 kB / 361.7 MB, free: 1.488 MB / 302.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001342/0.1319, allocations: 0.6839 MB / 362.4 MB, free: 0.793 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.421e-05/0.1319, allocations: 8 kB / 362.4 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.508e-06/0.1319, allocations: 0 / 362.4 MB, free: 0.7852 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.143e-05/0.1319, allocations: 8 kB / 362.4 MB, free: 0.7773 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004962/0.1324, allocations: 120.1 kB / 362.6 MB, free: 0.6602 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.021e-05/0.1325, allocations: 11.88 kB / 362.6 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004191/0.1329, allocations: 23.92 kB / 362.6 MB, free: 0.625 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.309e-05/0.1329, allocations: 16 kB / 362.6 MB, free: 0.6094 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (62): * Single equations (assignments): 62 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.001013/0.1339, allocations: 0.9154 MB / 363.5 MB, free: 15.68 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002851/0.1342, allocations: 272.4 kB / 363.8 MB, free: 15.41 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001284/0.1355, allocations: 0.7786 MB / 364.6 MB, free: 14.63 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.163e-06/0.1355, allocations: 4 kB / 364.6 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.194e-06/0.1356, allocations: 4 kB / 364.6 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.1356, allocations: 0 / 364.6 MB, free: 14.62 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001555/0.1371, allocations: 1.477 MB / 366.1 MB, free: 13.09 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.02e-06/0.1371, allocations: 3.984 kB / 366.1 MB, free: 13.09 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004234/0.1376, allocations: 91.89 kB / 366.1 MB, free: 13 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003296/0.1379, allocations: 84.8 kB / 366.2 MB, free: 12.91 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.938e-05/0.138, allocations: 15.98 kB / 366.2 MB, free: 12.89 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005574/0.1385, allocations: 0.6382 MB / 366.9 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.1385, allocations: 3.938 kB / 366.9 MB, free: 12.23 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001631/0.1402, allocations: 1.058 MB / 367.9 MB, free: 11.15 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007432/0.1409, allocations: 489.6 kB / 368.4 MB, free: 10.65 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0002595/0.1412, allocations: 15.98 kB / 368.4 MB, free: 10.63 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005404/0.1418, allocations: 16 kB / 368.5 MB, free: 10.62 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.896e-05/0.1418, allocations: 28.39 kB / 368.5 MB, free: 10.59 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.96e-05/0.1419, allocations: 15.98 kB / 368.5 MB, free: 10.57 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.004848/0.1467, allocations: 3.974 MB / 372.5 MB, free: 6.609 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.1467, allocations: 4 kB / 372.5 MB, free: 6.605 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007334/0.1475, allocations: 204 kB / 372.7 MB, free: 6.406 MB / 318.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 5 (core.MagRel,winding1.i,winding2.i,core.Hstat,core.B) * Number of discrete variables: 1 (core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (41): * Single equations (assignments): 40 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (not torn): 0 * Torn equation systems: 1 * Mixed (continuous/discrete) equation systems: 0 Notification: Torn system details for strict tearing set: * Linear torn systems (#iteration vars, #inner vars, density): 0 systems * Non-linear torn systems (#iteration vars, #inner vars): 1 system {(1,7)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0009705/0.1485, allocations: 429.9 kB / 373.1 MB, free: 5.988 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.0009975/0.1495, allocations: 413.2 kB / 373.5 MB, free: 5.582 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.717e-06/0.1495, allocations: 0 / 373.5 MB, free: 5.582 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004631/0.15, allocations: 214.4 kB / 373.7 MB, free: 5.375 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001141/0.1511, allocations: 183.3 kB / 373.9 MB, free: 5.191 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.148/0.2991, allocations: 5.464 MB / 379.3 MB, free: 52.81 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001711/0.3009, allocations: 1.811 MB / 381.2 MB, free: 52.08 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.000827/0.3017, allocations: 269.1 kB / 381.4 MB, free: 52.06 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004064/0.3022, allocations: 91.8 kB / 381.5 MB, free: 52.06 MB / 318.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3022, allocations: 0 / 381.5 MB, free: 52.06 MB / 318.1 MB Notification: Performance of Templates: time 0.03367/0.3358, allocations: 15.25 MB / 396.8 MB, free: 46.51 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & ./Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches