Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001381/0.001381, allocations: 120.5 kB / 17.79 MB, free: 5.133 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001419/0.001419, allocations: 215.2 kB / 20.75 MB, free: 2.18 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.504/1.504, allocations: 230.6 MB / 254.1 MB, free: 15.08 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001837/0.001837, allocations: 47.92 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1331/0.1349, allocations: 53.33 MB / 426.3 MB, free: 4.789 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.006364/0.1413, allocations: 3.459 MB / 429.8 MB, free: 1.312 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2774/0.4187, allocations: 1.652 MB / 431.4 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005413/0.4192, allocations: 9.094 kB / 431.4 MB, free: 7.551 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003757/0.423, allocations: 2.67 MB / 434.1 MB, free: 7.48 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009267/0.4239, allocations: 223.1 kB / 434.3 MB, free: 7.477 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009997/0.4249, allocations: 323 kB / 434.6 MB, free: 7.465 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002955/0.4279, allocations: 1.818 MB / 436.5 MB, free: 7.453 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002278/0.4281, allocations: 93.44 kB / 436.5 MB, free: 7.438 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005935/0.4287, allocations: 327.3 kB / 436.9 MB, free: 7.383 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004947/0.4292, allocations: 359.5 kB / 437.2 MB, free: 7.32 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001007/0.4293, allocations: 45.16 kB / 437.3 MB, free: 7.32 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002826/0.4296, allocations: 97 kB / 437.4 MB, free: 7.312 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009587/0.4305, allocations: 0.8451 MB / 438.2 MB, free: 7.199 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008054/0.4313, allocations: 0.9408 MB / 439.1 MB, free: 6.773 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003149/0.4345, allocations: 2.652 MB / 441.8 MB, free: 6.223 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.42e-06/0.4345, allocations: 0 / 441.8 MB, free: 6.223 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.954e-06/0.4345, allocations: 1.125 kB / 441.8 MB, free: 6.223 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.435e-05/0.4346, allocations: 3.938 kB / 441.8 MB, free: 6.219 MB / 350.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.005174/0.4397, allocations: 2.914 MB / 444.7 MB, free: 4.258 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.957e-05/0.4398, allocations: 9.781 kB / 444.7 MB, free: 4.258 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.94e-05/0.4399, allocations: 76.06 kB / 444.8 MB, free: 4.195 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006215/0.4405, allocations: 311 kB / 445.1 MB, free: 4.023 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002808/0.4433, allocations: 1.859 MB / 447 MB, free: 3.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7.668e-05/0.4434, allocations: 63.56 kB / 447 MB, free: 3.023 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.000188/0.4436, allocations: 46.69 kB / 447.1 MB, free: 3.008 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007533/0.4443, allocations: 400.5 kB / 447.5 MB, free: 2.824 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.737e-05/0.4443, allocations: 0 / 447.5 MB, free: 2.824 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.862e-05/0.4444, allocations: 15.84 kB / 447.5 MB, free: 2.812 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.412e-05/0.4444, allocations: 9.25 kB / 447.5 MB, free: 2.812 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007282/0.4451, allocations: 328.2 kB / 447.8 MB, free: 2.707 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004396/0.4495, allocations: 2.909 MB / 450.7 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006397/0.4501, allocations: 296.1 kB / 451 MB, free: 0.8008 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003131/0.4505, allocations: 152.5 kB / 451.2 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.325e-05/0.4505, allocations: 10.45 kB / 451.2 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.399e-05/0.4505, allocations: 41.55 kB / 451.2 MB, free: 0.668 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 2.014e-06/0.4505, allocations: 0 / 451.2 MB, free: 0.668 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.005225/0.4558, allocations: 2.475 MB / 453.7 MB, free: 15.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.284e-05/0.4558, allocations: 87.39 kB / 453.8 MB, free: 14.95 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.008843/0.4647, allocations: 5.463 MB / 459.2 MB, free: 12.59 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001301/0.4648, allocations: 31.11 kB / 459.3 MB, free: 12.56 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001385/0.4662, allocations: 1.191 MB / 460.4 MB, free: 11.55 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.00023/0.4664, allocations: 169.1 kB / 460.6 MB, free: 11.41 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001964/0.4666, allocations: 97.36 kB / 460.7 MB, free: 11.34 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001666/0.4668, allocations: 326.5 kB / 461 MB, free: 11.02 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003991/0.4672, allocations: 136.2 kB / 461.2 MB, free: 10.95 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004253/0.4676, allocations: 221.1 kB / 461.4 MB, free: 10.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007573/0.4684, allocations: 384.8 kB / 461.8 MB, free: 10.56 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.967e-06/0.4684, allocations: 0 / 461.8 MB, free: 10.56 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.002064/0.4704, allocations: 0.7008 MB / 462.5 MB, free: 10.18 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.226e-05/0.4704, allocations: 5.406 kB / 462.5 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.567e-06/0.4705, allocations: 3.562 kB / 462.5 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.577e-05/0.4705, allocations: 3.781 kB / 462.5 MB, free: 10.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005291/0.471, allocations: 124.2 kB / 462.6 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.2e-05/0.471, allocations: 4.031 kB / 462.6 MB, free: 10.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007631/0.4718, allocations: 16.78 kB / 462.6 MB, free: 10.14 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.848e-05/0.4718, allocations: 20.42 kB / 462.6 MB, free: 10.14 MB / 366.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.001854/0.4737, allocations: 0.9304 MB / 463.6 MB, free: 9.66 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000544/0.4742, allocations: 285.3 kB / 463.8 MB, free: 9.5 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001845/0.4761, allocations: 0.7943 MB / 464.6 MB, free: 9.086 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.938e-06/0.4761, allocations: 5.5 kB / 464.6 MB, free: 9.086 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.4761, allocations: 5.375 kB / 464.6 MB, free: 9.082 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.486e-06/0.4761, allocations: 3.984 kB / 464.6 MB, free: 9.078 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002324/0.4784, allocations: 1.481 MB / 466.1 MB, free: 7.883 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.22e-06/0.4784, allocations: 0 / 466.1 MB, free: 7.883 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004812/0.4789, allocations: 95.83 kB / 466.2 MB, free: 7.789 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0004072/0.4793, allocations: 100.3 kB / 466.3 MB, free: 7.691 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.386e-05/0.4793, allocations: 12 kB / 466.3 MB, free: 7.68 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006573/0.48, allocations: 0.6336 MB / 467 MB, free: 7.023 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.662e-06/0.48, allocations: 4.453 kB / 467 MB, free: 7.02 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002095/0.4821, allocations: 1.089 MB / 468.1 MB, free: 5.91 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001029/0.4831, allocations: 0.4991 MB / 468.6 MB, free: 5.391 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000221/0.4834, allocations: 8 kB / 468.6 MB, free: 5.383 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005236/0.4839, allocations: 27.98 kB / 468.6 MB, free: 5.355 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.629e-05/0.484, allocations: 21.34 kB / 468.6 MB, free: 5.336 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.515e-05/0.484, allocations: 15.98 kB / 468.6 MB, free: 5.32 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00698/0.491, allocations: 3.99 MB / 472.6 MB, free: 1.34 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.91e-07/0.491, allocations: 0 / 472.6 MB, free: 1.34 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001564/0.4926, allocations: 204 kB / 472.8 MB, free: 1.141 MB / 366.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.00383/0.4964, allocations: 1.948 MB / 474.8 MB, free: 15.35 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008963/0.4973, allocations: 360.9 kB / 475.1 MB, free: 15 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.146e-06/0.4973, allocations: 4 kB / 475.1 MB, free: 15 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004776/0.4978, allocations: 210.3 kB / 475.3 MB, free: 14.79 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001251/0.499, allocations: 188.4 kB / 475.5 MB, free: 14.61 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05018/0.5492, allocations: 19.42 MB / 494.9 MB, free: 11.03 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002293/0.5515, allocations: 1.825 MB / 496.8 MB, free: 9.168 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.000958/0.5525, allocations: 271.8 kB / 497 MB, free: 8.898 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001717/0.5542, allocations: 0.9484 MB / 498 MB, free: 7.949 MB / 398.1 MB Notification: Performance of SimCode: time 1.002e-06/0.5542, allocations: 0 / 498 MB, free: 7.949 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.09412/0.6483, allocations: 38.99 MB / 0.5244 GB, free: 1.238 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.29/17.94, allocations: 7.25 kB / 0.5244 GB, free: 1.234 MB / 430.1 MB " [Timeout remaining time 642] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1_fmu --startTime=0 --stopTime=0.02 --stepSize=4e-06 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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: 20.858650234062225]