Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007786/0.0007786, allocations: 88.28 kB / 21.43 MB, free: 3.129 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.004057/0.004057, allocations: 154 kB / 24.7 MB, free: 9.418 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 0.8988/0.8988, allocations: 177 MB / 204.9 MB, free: 5.75 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transformer.core.B|transformer.core.MagRel|transformer.core.Hstat|transformer.winding1.i|transformer.winding2.i",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") translateModel(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,tolerance=0.0001,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|transformer.core.B|transformer.core.MagRel|transformer.core.Hstat|transformer.winding1.i|transformer.winding2.i",fileNamePrefix="Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.593e-06/1.593e-06, allocations: 0 / 325.8 MB, free: 15.4 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.099e-05/2.258e-05, allocations: 3.125 kB / 325.8 MB, free: 15.4 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.003927/0.00395, allocations: 3.984 MB / 329.8 MB, free: 11.39 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.002453/0.006403, allocations: 1.562 MB / 331.3 MB, free: 9.816 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002494/0.006652, allocations: 11.94 kB / 331.3 MB, free: 9.805 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002937/0.006946, allocations: 122.9 kB / 331.5 MB, free: 9.684 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0006087/0.007555, allocations: 385.3 kB / 331.8 MB, free: 9.305 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000327/0.007882, allocations: 243.5 kB / 332.1 MB, free: 9.066 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000649/0.008531, allocations: 1.017 MB / 333.1 MB, free: 8.047 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002156/0.008746, allocations: 142.1 kB / 333.2 MB, free: 7.91 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006361/0.009382, allocations: 0.5574 MB / 333.8 MB, free: 7.352 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003036/0.009686, allocations: 339 kB / 334.1 MB, free: 7.02 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 7.86e-05/0.009764, allocations: 96 kB / 334.2 MB, free: 6.926 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002247/0.009989, allocations: 211.9 kB / 334.4 MB, free: 6.719 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 9.708e-05/0.01009, allocations: 195.3 kB / 334.6 MB, free: 6.527 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001785/0.01026, allocations: 299.3 kB / 334.9 MB, free: 6.234 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0008235/0.01109, allocations: 1.215 MB / 336.1 MB, free: 5.016 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.923e-06/0.01109, allocations: 0 / 336.1 MB, free: 5.016 MB / 298.7 MB Notification: Performance of FrontEnd: time 8.72e-07/0.01109, allocations: 0 / 336.1 MB, free: 5.016 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.482e-06/0.0111, allocations: 0 / 336.1 MB, free: 5.016 MB / 298.7 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.001309/0.01241, allocations: 1.038 MB / 337.2 MB, free: 3.941 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.872e-05/0.01245, allocations: 11.98 kB / 337.2 MB, free: 3.93 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001653/0.01261, allocations: 96.41 kB / 337.3 MB, free: 3.836 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005101/0.01312, allocations: 464.7 kB / 337.7 MB, free: 3.355 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.174e-05/0.01321, allocations: 127 kB / 337.8 MB, free: 3.215 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001191/0.01333, allocations: 72.67 kB / 337.9 MB, free: 3.145 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007118/0.01404, allocations: 0.7068 MB / 338.6 MB, free: 2.395 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.76e-05/0.01406, allocations: 3.938 kB / 338.6 MB, free: 2.391 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.851e-05/0.0141, allocations: 28 kB / 338.6 MB, free: 2.363 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.889e-06/0.01411, allocations: 12 kB / 338.7 MB, free: 2.352 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006699/0.01478, allocations: 0.5204 MB / 339.2 MB, free: 1.832 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002247/0.01703, allocations: 1.984 MB / 341.2 MB, free: 15.75 MB / 314.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005897/0.01762, allocations: 457.2 kB / 341.6 MB, free: 15.29 MB / 314.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003117/0.01793, allocations: 246.1 kB / 341.8 MB, free: 15.04 MB / 314.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.359e-05/0.01795, allocations: 8 kB / 341.9 MB, free: 15.03 MB / 314.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.565e-05/0.01798, allocations: 42.55 kB / 341.9 MB, free: 14.98 MB / 314.7 MB Notification: Performance of pre-optimization done (n=45): time 1.954e-06/0.01798, allocations: 0 / 341.9 MB, free: 14.98 MB / 314.7 MB Notification: Performance of matching and sorting (n=61): time 0.006345/0.02432, allocations: 3.319 MB / 345.2 MB, free: 11.62 MB / 314.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.557e-05/0.02437, allocations: 89.61 kB / 345.3 MB, free: 11.51 MB / 314.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004492/0.02482, allocations: 0.5174 MB / 345.8 MB, free: 10.98 MB / 314.7 MB Notification: Performance of collectPreVariables (initialization): time 3.524e-05/0.02485, allocations: 37.64 kB / 345.9 MB, free: 10.94 MB / 314.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001642/0.02502, allocations: 320.8 kB / 346.2 MB, free: 10.62 MB / 314.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001167/0.02514, allocations: 214.1 kB / 346.4 MB, free: 10.41 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001446/0.02528, allocations: 114.3 kB / 346.5 MB, free: 10.3 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001149/0.02539, allocations: 366.7 kB / 346.9 MB, free: 9.93 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003391/0.02573, allocations: 245.2 kB / 347.1 MB, free: 9.691 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003881/0.02612, allocations: 352.5 kB / 347.4 MB, free: 9.312 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0009091/0.02703, allocations: 0.5993 MB / 348 MB, free: 8.684 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.02703, allocations: 0 / 348 MB, free: 8.684 MB / 314.7 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.0009118/0.02795, allocations: 0.7397 MB / 348.8 MB, free: 7.934 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.788e-05/0.02796, allocations: 4 kB / 348.8 MB, free: 7.93 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.796e-06/0.02797, allocations: 7.984 kB / 348.8 MB, free: 7.922 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001434/0.02812, allocations: 37.09 kB / 348.8 MB, free: 7.883 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003903/0.02851, allocations: 167.8 kB / 349 MB, free: 7.719 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0007553/0.02926, allocations: 1.288 MB / 350.3 MB, free: 6.328 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002409/0.0295, allocations: 44.05 kB / 350.3 MB, free: 6.285 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.134e-05/0.02953, allocations: 23.98 kB / 350.3 MB, free: 6.262 MB / 314.7 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.0001978/0.02973, allocations: 205.6 kB / 350.5 MB, free: 6.051 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.848e-05/0.02981, allocations: 63.61 kB / 350.6 MB, free: 5.988 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001057/0.03087, allocations: 0.8357 MB / 351.4 MB, free: 5.145 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.709e-06/0.03087, allocations: 8 kB / 351.4 MB, free: 5.137 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.315e-06/0.03087, allocations: 0 / 351.4 MB, free: 5.137 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.404e-06/0.03088, allocations: 3.984 kB / 351.5 MB, free: 5.133 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002021/0.0329, allocations: 1.602 MB / 353.1 MB, free: 3.484 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.575e-06/0.0329, allocations: 0 / 353.1 MB, free: 3.484 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002552/0.03316, allocations: 107.8 kB / 353.2 MB, free: 3.379 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001029/0.03419, allocations: 476.3 kB / 353.6 MB, free: 2.91 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.175e-05/0.03422, allocations: 19.98 kB / 353.6 MB, free: 2.891 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.002889/0.03711, allocations: 2.964 MB / 356.6 MB, free: 15.82 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.052e-06/0.03711, allocations: 0 / 356.6 MB, free: 15.82 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001607/0.03872, allocations: 1.362 MB / 358 MB, free: 14.44 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001681/0.03889, allocations: 123.6 kB / 358.1 MB, free: 14.32 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.298e-05/0.03893, allocations: 20 kB / 358.1 MB, free: 14.3 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002584/0.03919, allocations: 39.97 kB / 358.1 MB, free: 14.26 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.06e-05/0.03928, allocations: 56.48 kB / 358.2 MB, free: 14.21 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.424e-05/0.0393, allocations: 16 kB / 358.2 MB, free: 14.19 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0002714/0.03957, allocations: 371.1 kB / 358.6 MB, free: 13.83 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-08/0.03957, allocations: 0 / 358.6 MB, free: 13.83 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004375/0.04001, allocations: 192.1 kB / 358.8 MB, free: 13.64 MB / 330.7 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.0002255/0.04024, allocations: 154.8 kB / 358.9 MB, free: 13.48 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0008607/0.0411, allocations: 0.7031 MB / 359.6 MB, free: 12.77 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.853e-06/0.0411, allocations: 0 / 359.6 MB, free: 12.77 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005044/0.0416, allocations: 0.5067 MB / 360.1 MB, free: 12.25 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003969/0.042, allocations: 77.98 kB / 360.2 MB, free: 12.18 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001626/0.04363, allocations: 1.376 MB / 361.6 MB, free: 10.76 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001944/0.04382, allocations: 306.9 kB / 361.9 MB, free: 10.43 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001466/0.04397, allocations: 60.45 kB / 361.9 MB, free: 10.38 MB / 330.7 MB Notification: Performance of SimCode: time 5.51e-07/0.04397, allocations: 0 / 361.9 MB, free: 10.38 MB / 330.7 MB Notification: Performance of Templates: time 0.009172/0.05314, allocations: 11.93 MB / 373.9 MB, free: 14.48 MB / 346.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & ./Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.747370669618249]