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.001169/0.001169, allocations: 102.9 kB / 17.16 MB, free: 6.316 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.00126/0.00126, allocations: 190 kB / 18.07 MB, free: 5.414 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.32/1.32, allocations: 205.1 MB / 223.9 MB, free: 12.39 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.001133/0.001133, allocations: 48.41 kB / 280 MB, free: 3.57 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08725/0.0884, allocations: 46.63 MB / 326.6 MB, free: 4.871 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.005278/0.09373, allocations: 4.322 MB / 330.9 MB, free: 0.5195 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.002567/0.09633, allocations: 1.634 MB / 332.6 MB, free: 14.87 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003084/0.09666, allocations: 11.94 kB / 332.6 MB, free: 14.86 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003744/0.09707, allocations: 95.23 kB / 332.7 MB, free: 14.77 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006844/0.09777, allocations: 310.4 kB / 333 MB, free: 14.46 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003848/0.09817, allocations: 199.8 kB / 333.2 MB, free: 14.27 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007521/0.09893, allocations: 0.916 MB / 334.1 MB, free: 13.35 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003004/0.09923, allocations: 222.1 kB / 334.3 MB, free: 13.13 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003771/0.09962, allocations: 318.7 kB / 334.6 MB, free: 12.82 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003922/0.1, allocations: 398.2 kB / 335 MB, free: 12.43 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 8.79e-05/0.1001, allocations: 52 kB / 335.1 MB, free: 12.38 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003444/0.1005, allocations: 163.9 kB / 335.2 MB, free: 12.21 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000133/0.1006, allocations: 155.3 kB / 335.4 MB, free: 12.06 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003205/0.1009, allocations: 374.1 kB / 335.7 MB, free: 11.7 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000921/0.1019, allocations: 1.106 MB / 336.8 MB, free: 10.59 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.654e-06/0.1019, allocations: 4 kB / 336.8 MB, free: 10.58 MB / 286.1 MB Notification: Performance of FrontEnd: time 9.82e-07/0.1019, allocations: 0 / 336.8 MB, free: 10.58 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.472e-05/0.1019, allocations: 0 / 336.8 MB, free: 10.58 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.002482/0.1044, allocations: 1.099 MB / 337.9 MB, free: 9.43 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.418e-05/0.1045, allocations: 8.031 kB / 337.9 MB, free: 9.422 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001564/0.1046, allocations: 80.09 kB / 338 MB, free: 9.344 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006577/0.1053, allocations: 0.5029 MB / 338.5 MB, free: 8.801 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 8.4e-05/0.1054, allocations: 71.58 kB / 338.6 MB, free: 8.727 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001964/0.1056, allocations: 68.48 kB / 338.7 MB, free: 8.66 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001089/0.1067, allocations: 0.6135 MB / 339.3 MB, free: 8.027 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.771e-05/0.1067, allocations: 7.906 kB / 339.3 MB, free: 8.02 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.612e-05/0.1068, allocations: 20 kB / 339.3 MB, free: 8 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.395e-05/0.1068, allocations: 16 kB / 339.3 MB, free: 7.984 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001112/0.1079, allocations: 0.5243 MB / 339.8 MB, free: 7.457 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003487/0.1114, allocations: 2.306 MB / 342.1 MB, free: 5.039 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000999/0.1124, allocations: 473.2 kB / 342.6 MB, free: 4.559 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005351/0.113, allocations: 274 kB / 342.9 MB, free: 4.285 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.281e-05/0.113, allocations: 8.219 kB / 342.9 MB, free: 4.277 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.123e-05/0.1131, allocations: 42.56 kB / 342.9 MB, free: 4.227 MB / 286.1 MB Notification: Performance of pre-optimization done (n=45): time 2.044e-06/0.1131, allocations: 0 / 342.9 MB, free: 4.227 MB / 286.1 MB Notification: Performance of matching and sorting (n=61): time 0.01348/0.1266, allocations: 3.542 MB / 346.5 MB, free: 0.5859 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.498e-05/0.1266, allocations: 81.67 kB / 346.6 MB, free: 500 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008115/0.1275, allocations: 0.541 MB / 347.1 MB, free: 15.93 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.563e-05/0.1276, allocations: 33.7 kB / 347.1 MB, free: 15.89 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002399/0.1278, allocations: 320.2 kB / 347.4 MB, free: 15.58 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001878/0.128, allocations: 204.9 kB / 347.6 MB, free: 15.38 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002121/0.1282, allocations: 110.3 kB / 347.7 MB, free: 15.26 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000186/0.1284, allocations: 370.8 kB / 348.1 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005716/0.129, allocations: 245.2 kB / 348.3 MB, free: 14.65 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0006237/0.1296, allocations: 348.4 kB / 348.7 MB, free: 14.28 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001203/0.1308, allocations: 0.6059 MB / 349.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.505e-06/0.1309, allocations: 0 / 349.3 MB, free: 13.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001577/0.1324, allocations: 0.7412 MB / 350 MB, free: 12.89 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/0.1325, allocations: 8 kB / 350 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.097e-06/0.1325, allocations: 4 kB / 350 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001861/0.1327, allocations: 32.83 kB / 350.1 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008439/0.1335, allocations: 171.8 kB / 350.2 MB, free: 12.67 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001129/0.1347, allocations: 1.329 MB / 351.6 MB, free: 11.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006421/0.1353, allocations: 40.05 kB / 351.6 MB, free: 11.17 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.379e-05/0.1354, allocations: 27.92 kB / 351.6 MB, free: 11.14 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.0003036/0.1357, allocations: 205.6 kB / 351.8 MB, free: 10.93 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001315/0.1358, allocations: 55.34 kB / 351.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001811/0.1377, allocations: 0.8413 MB / 352.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.101e-06/0.1377, allocations: 8 kB / 352.7 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.496e-06/0.1377, allocations: 4 kB / 352.7 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.665e-06/0.1377, allocations: 3.984 kB / 352.8 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003651/0.1414, allocations: 1.854 MB / 354.6 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.789e-06/0.1414, allocations: 0 / 354.6 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000557/0.142, allocations: 107.9 kB / 354.7 MB, free: 7.988 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002437/0.1444, allocations: 480.3 kB / 355.2 MB, free: 7.516 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.588e-05/0.1445, allocations: 12 kB / 355.2 MB, free: 7.504 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004668/0.1492, allocations: 2.878 MB / 358.1 MB, free: 4.496 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.348e-06/0.1492, allocations: 4 kB / 358.1 MB, free: 4.492 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00295/0.1521, allocations: 1.37 MB / 359.4 MB, free: 3.098 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004156/0.1526, allocations: 208.3 kB / 359.6 MB, free: 2.875 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.6e-05/0.1527, allocations: 19.94 kB / 359.7 MB, free: 2.855 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006246/0.1533, allocations: 39.97 kB / 359.7 MB, free: 2.816 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.00015/0.1535, allocations: 48.48 kB / 359.8 MB, free: 2.77 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.586e-05/0.1535, allocations: 23.94 kB / 359.8 MB, free: 2.746 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004652/0.154, allocations: 390.8 kB / 360.2 MB, free: 2.367 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.154, allocations: 0 / 360.2 MB, free: 2.367 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006961/0.1547, allocations: 184 kB / 360.3 MB, free: 2.188 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.0002801/0.155, allocations: 143.2 kB / 360.5 MB, free: 2.039 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.00144/0.1564, allocations: 0.7365 MB / 361.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.1565, allocations: 0 / 361.2 MB, free: 1.293 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008749/0.1573, allocations: 0.5178 MB / 361.7 MB, free: 0.7617 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007711/0.1581, allocations: 89.84 kB / 361.8 MB, free: 0.6719 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003014/0.1611, allocations: 1.748 MB / 363.6 MB, free: 14.89 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004785/0.1616, allocations: 0.9007 MB / 364.5 MB, free: 13.96 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0003743/0.162, allocations: 72.8 kB / 364.5 MB, free: 13.89 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001958/0.1622, allocations: 51.42 kB / 364.6 MB, free: 13.84 MB / 318.1 MB Notification: Performance of SimCode: time 6.42e-07/0.1622, allocations: 0 / 364.6 MB, free: 13.84 MB / 318.1 MB Notification: Performance of Templates: time 0.01751/0.1798, allocations: 9.667 MB / 374.3 MB, free: 4.172 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches