Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|transformer.core.B|transformer.core.MagRel|transformer.core.Hstat|transformer.winding1.i|transformer.winding2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=10000,variableFilter="time|transformer.core.B|transformer.core.MagRel|transformer.core.Hstat|transformer.winding1.i|transformer.winding2.i",fileNamePrefix="Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001588/0.001588, allocations: 109.9 kB / 18.25 MB, free: 4.898 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.001787/0.001787, allocations: 191.6 kB / 19.18 MB, free: 3.977 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.536/1.536, allocations: 205.1 MB / 225 MB, free: 12.29 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.001353/0.001353, allocations: 56.14 kB / 281.3 MB, free: 3.168 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08613/0.0875, allocations: 46.63 MB / 328 MB, free: 4.469 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.005795/0.09334, allocations: 4.297 MB / 332.3 MB, free: 144 kB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.003167/0.09655, allocations: 1.63 MB / 333.9 MB, free: 14.5 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0006512/0.09723, allocations: 11.94 kB / 333.9 MB, free: 14.48 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000457/0.09774, allocations: 118.9 kB / 334 MB, free: 14.37 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001218/0.09898, allocations: 361.9 kB / 334.4 MB, free: 14.01 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006647/0.09967, allocations: 231.6 kB / 334.6 MB, free: 13.79 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.001234/0.1009, allocations: 0.9668 MB / 335.6 MB, free: 12.82 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0004/0.1013, allocations: 249.3 kB / 335.8 MB, free: 12.57 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005456/0.1019, allocations: 374.7 kB / 336.2 MB, free: 12.2 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006818/0.1026, allocations: 430.2 kB / 336.6 MB, free: 11.78 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0002088/0.1028, allocations: 96 kB / 336.7 MB, free: 11.69 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004928/0.1033, allocations: 215.9 kB / 336.9 MB, free: 11.48 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001866/0.1035, allocations: 191.4 kB / 337.1 MB, free: 11.29 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0004568/0.104, allocations: 422 kB / 337.5 MB, free: 10.88 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001058/0.105, allocations: 1.149 MB / 338.6 MB, free: 9.723 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.105, allocations: 0 / 338.6 MB, free: 9.723 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.105, allocations: 0 / 338.6 MB, free: 9.723 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.102e-05/0.1051, allocations: 0 / 338.6 MB, free: 9.723 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002323/0.1074, allocations: 1.095 MB / 339.7 MB, free: 8.574 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.499e-05/0.1074, allocations: 12.03 kB / 339.7 MB, free: 8.562 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001581/0.1076, allocations: 80.09 kB / 339.8 MB, free: 8.484 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006529/0.1083, allocations: 0.5029 MB / 340.3 MB, free: 7.945 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.888e-05/0.1084, allocations: 67.58 kB / 340.4 MB, free: 7.875 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001869/0.1086, allocations: 76.47 kB / 340.5 MB, free: 7.801 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001045/0.1096, allocations: 0.6058 MB / 341.1 MB, free: 7.176 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.04e-05/0.1096, allocations: 3.906 kB / 341.1 MB, free: 7.172 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.905e-05/0.1097, allocations: 24 kB / 341.1 MB, free: 7.148 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.385e-05/0.1097, allocations: 15.94 kB / 341.1 MB, free: 7.133 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00111/0.1108, allocations: 0.5243 MB / 341.6 MB, free: 6.609 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003316/0.1142, allocations: 2.31 MB / 344 MB, free: 4.188 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0009896/0.1152, allocations: 473.1 kB / 344.4 MB, free: 3.707 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005166/0.1157, allocations: 262.1 kB / 344.7 MB, free: 3.445 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.994e-05/0.1158, allocations: 20.2 kB / 344.7 MB, free: 3.426 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.758e-05/0.1158, allocations: 38.55 kB / 344.7 MB, free: 3.379 MB / 286.1 MB Notification: Performance of pre-optimization done (n=45): time 2.604e-06/0.1158, allocations: 0 / 344.7 MB, free: 3.379 MB / 286.1 MB Notification: Performance of matching and sorting (n=61): time 0.01298/0.1288, allocations: 3.547 MB / 348.3 MB, free: 15.73 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.512e-05/0.1289, allocations: 85.67 kB / 348.4 MB, free: 15.63 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007395/0.1296, allocations: 0.5409 MB / 348.9 MB, free: 15.08 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.507e-05/0.1297, allocations: 37.7 kB / 348.9 MB, free: 15.04 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002104/0.1299, allocations: 312.3 kB / 349.2 MB, free: 14.73 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001721/0.1301, allocations: 208.9 kB / 349.4 MB, free: 14.52 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001946/0.1303, allocations: 106.3 kB / 349.5 MB, free: 14.41 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001562/0.1305, allocations: 370.8 kB / 349.9 MB, free: 14.04 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005417/0.131, allocations: 245.2 kB / 350.1 MB, free: 13.8 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005911/0.1316, allocations: 352.4 kB / 350.5 MB, free: 13.42 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001135/0.1328, allocations: 0.602 MB / 351.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.534e-06/0.1328, allocations: 4 kB / 351.1 MB, free: 12.79 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001547/0.1344, allocations: 0.7489 MB / 351.8 MB, free: 12.02 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.033e-05/0.1344, allocations: 4 kB / 351.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.11e-05/0.1344, allocations: 4 kB / 351.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001948/0.1346, allocations: 32.84 kB / 351.9 MB, free: 11.98 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000782/0.1354, allocations: 171.8 kB / 352.1 MB, free: 11.81 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001084/0.1365, allocations: 1.436 MB / 353.5 MB, free: 10.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006247/0.1371, allocations: 39.92 kB / 353.5 MB, free: 10.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.893e-05/0.1372, allocations: 27.97 kB / 353.6 MB, free: 10.17 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 11 * Number of states: 0 () * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (76): * Single equations (assignments): 75 * 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): 1 system {(1,2,100.0%)} * Non-linear torn systems (#iteration vars, #inner vars): 0 systems Notification: Performance of prepare postOptimizeDAE: time 0.000315/0.1375, allocations: 205.7 kB / 353.8 MB, free: 9.957 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001349/0.1377, allocations: 55.34 kB / 353.8 MB, free: 9.902 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001768/0.1394, allocations: 0.8413 MB / 354.7 MB, free: 9.051 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.967e-06/0.1395, allocations: 11.94 kB / 354.7 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.865e-06/0.1395, allocations: 0 / 354.7 MB, free: 9.039 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.894e-06/0.1395, allocations: 3.984 kB / 354.7 MB, free: 9.035 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003622/0.1431, allocations: 1.847 MB / 356.5 MB, free: 7.129 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.799e-06/0.1431, allocations: 0 / 356.5 MB, free: 7.129 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005152/0.1437, allocations: 107.9 kB / 356.6 MB, free: 7.023 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002316/0.146, allocations: 480.3 kB / 357.1 MB, free: 6.551 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.529e-05/0.1461, allocations: 12 kB / 357.1 MB, free: 6.539 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004948/0.151, allocations: 3.16 MB / 360.3 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.214e-06/0.1511, allocations: 0 / 360.3 MB, free: 3.246 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003178/0.1543, allocations: 1.366 MB / 361.6 MB, free: 1.855 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004082/0.1547, allocations: 212.2 kB / 361.8 MB, free: 1.629 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001405/0.1548, allocations: 12 kB / 361.8 MB, free: 1.617 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006538/0.1555, allocations: 47.97 kB / 361.9 MB, free: 1.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001491/0.1557, allocations: 44.48 kB / 361.9 MB, free: 1.527 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.706e-05/0.1557, allocations: 20 kB / 362 MB, free: 1.508 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005354/0.1563, allocations: 390.9 kB / 362.3 MB, free: 1.129 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1563, allocations: 0 / 362.3 MB, free: 1.129 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0007932/0.1571, allocations: 188 kB / 362.5 MB, free: 0.9453 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (transformer.winding1.i,transformer.winding2.i,transformer.core.B,transformer.core.MagRel) * Number of discrete variables: 1 (transformer.core.asc) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (52): * Single equations (assignments): 51 * 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 {(2,14)} Notification: Performance of Backend phase and start with SimCode phase: time 0.0003159/0.1574, allocations: 143.2 kB / 362.7 MB, free: 0.7969 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.001796/0.1592, allocations: 0.7558 MB / 363.4 MB, free: 28 kB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.958e-06/0.1592, allocations: 0 / 363.4 MB, free: 28 kB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009642/0.1602, allocations: 0.5218 MB / 363.9 MB, free: 15.5 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008551/0.1611, allocations: 89.86 kB / 364 MB, free: 15.41 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002953/0.164, allocations: 1.512 MB / 365.5 MB, free: 13.86 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000491/0.1645, allocations: 0.8965 MB / 366.4 MB, free: 12.93 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002377/0.1648, allocations: 55.41 kB / 366.5 MB, free: 12.88 MB / 318.1 MB Notification: Performance of SimCode: time 8.42e-07/0.1648, allocations: 0 / 366.5 MB, free: 12.88 MB / 318.1 MB Notification: Performance of Templates: time 0.01682/0.1816, allocations: 11.76 MB / 378.2 MB, free: 1.102 MB / 318.1 MB make -j1 -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches