Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.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.002291/0.002291, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.002389/0.002389, allocations: 199.3 kB / 20.74 MB, free: 2.32 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.492/1.492, allocations: 230.6 MB / 254.1 MB, free: 15.09 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.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001651/0.001651, allocations: 51.92 kB / 373 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1121/0.1138, allocations: 53.33 MB / 426.3 MB, free: 4.793 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.006804/0.1206, allocations: 4.398 MB / 430.7 MB, free: 380 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2392/0.3597, allocations: 1.651 MB / 432.4 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004028/0.3601, allocations: 12.34 kB / 432.4 MB, free: 7.547 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003834/0.3605, allocations: 129.8 kB / 432.5 MB, free: 7.543 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008474/0.3614, allocations: 363.1 kB / 432.9 MB, free: 7.426 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000429/0.3618, allocations: 247 kB / 433.1 MB, free: 7.414 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0008788/0.3627, allocations: 0.9857 MB / 434.1 MB, free: 7.227 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002748/0.363, allocations: 156 kB / 434.2 MB, free: 7.203 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006224/0.3636, allocations: 390.3 kB / 434.6 MB, free: 7.133 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000532/0.3641, allocations: 424 kB / 435 MB, free: 7.051 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001467/0.3643, allocations: 97.41 kB / 435.1 MB, free: 7.051 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004726/0.3647, allocations: 221 kB / 435.3 MB, free: 7.051 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000183/0.3649, allocations: 194.5 kB / 435.5 MB, free: 7.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003741/0.3653, allocations: 423.3 kB / 435.9 MB, free: 6.758 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001665/0.3669, allocations: 1.175 MB / 437.1 MB, free: 6.34 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.262e-06/0.367, allocations: 3.938 kB / 437.1 MB, free: 6.34 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.014e-06/0.367, allocations: 0 / 437.1 MB, free: 6.34 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.933e-05/0.367, allocations: 0 / 437.1 MB, free: 6.34 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002557/0.3695, allocations: 1.119 MB / 438.2 MB, free: 5.59 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.473e-05/0.3696, allocations: 8.438 kB / 438.2 MB, free: 5.59 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001299/0.3697, allocations: 98.92 kB / 438.3 MB, free: 5.516 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003039/0.37, allocations: 89.95 kB / 438.4 MB, free: 5.477 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009923/0.371, allocations: 0.5263 MB / 439 MB, free: 5.07 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001073/0.3711, allocations: 69.38 kB / 439 MB, free: 5.023 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002343/0.3714, allocations: 69.95 kB / 439.1 MB, free: 5 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00124/0.3726, allocations: 0.5988 MB / 439.7 MB, free: 4.727 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.221e-05/0.3726, allocations: 11.48 kB / 439.7 MB, free: 4.719 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.76e-05/0.3727, allocations: 21.66 kB / 439.7 MB, free: 4.703 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.213e-05/0.3727, allocations: 14.12 kB / 439.7 MB, free: 4.703 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001277/0.374, allocations: 0.5248 MB / 440.3 MB, free: 4.52 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003813/0.3778, allocations: 2.3 MB / 442.6 MB, free: 3.055 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001123/0.3789, allocations: 452.6 kB / 443 MB, free: 2.84 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005825/0.3795, allocations: 246.9 kB / 443.2 MB, free: 2.734 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.874e-05/0.3795, allocations: 11.44 kB / 443.3 MB, free: 2.73 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.475e-05/0.3796, allocations: 42.62 kB / 443.3 MB, free: 2.684 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.184e-06/0.3796, allocations: 0 / 443.3 MB, free: 2.684 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.01383/0.3934, allocations: 3.552 MB / 446.9 MB, free: 1.234 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.121e-05/0.3934, allocations: 84.98 kB / 446.9 MB, free: 1.137 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000915/0.3944, allocations: 0.5384 MB / 447.5 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 5.522e-05/0.3944, allocations: 36.02 kB / 447.5 MB, free: 0.832 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002018/0.3946, allocations: 321.4 kB / 447.8 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001723/0.3948, allocations: 217.4 kB / 448 MB, free: 420 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002197/0.395, allocations: 121.7 kB / 448.2 MB, free: 352 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001185/0.3951, allocations: 370.7 kB / 448.5 MB, free: 4 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007824/0.3959, allocations: 265.1 kB / 448.8 MB, free: 0 / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0008877/0.3968, allocations: 375 kB / 449.1 MB, free: 15.89 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001265/0.3981, allocations: 0.6064 MB / 449.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3981, allocations: 1.438 kB / 449.7 MB, free: 15.54 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001713/0.3998, allocations: 0.7443 MB / 450.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.232e-05/0.3998, allocations: 6.75 kB / 450.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.418e-06/0.3998, allocations: 2.719 kB / 450.5 MB, free: 15.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001907/0.4, allocations: 31.33 kB / 450.5 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008276/0.4008, allocations: 171.5 kB / 450.7 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001359/0.4022, allocations: 1.429 MB / 452.1 MB, free: 13.74 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006123/0.4028, allocations: 39.05 kB / 452.2 MB, free: 13.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.751e-05/0.4029, allocations: 24.36 kB / 452.2 MB, free: 13.72 MB / 366.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.0003216/0.4032, allocations: 203.5 kB / 452.4 MB, free: 13.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001437/0.4033, allocations: 65.16 kB / 452.5 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002031/0.4054, allocations: 0.8336 MB / 453.3 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.308e-05/0.4054, allocations: 12.09 kB / 453.3 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.565e-06/0.4054, allocations: 0 / 453.3 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.353e-05/0.4054, allocations: 4.766 kB / 453.3 MB, free: 13.13 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003882/0.4093, allocations: 1.841 MB / 455.1 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.127e-06/0.4093, allocations: 1.188 kB / 455.1 MB, free: 12.21 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005263/0.4098, allocations: 108.4 kB / 455.3 MB, free: 12.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002478/0.4123, allocations: 468.4 kB / 455.7 MB, free: 12.12 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.488e-05/0.4123, allocations: 19.03 kB / 455.7 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005874/0.4182, allocations: 3.154 MB / 458.9 MB, free: 9.578 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.086e-06/0.4182, allocations: 1.25 kB / 458.9 MB, free: 9.578 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003455/0.4217, allocations: 1.366 MB / 460.2 MB, free: 8.754 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004795/0.4222, allocations: 214.3 kB / 460.5 MB, free: 8.547 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001012/0.4223, allocations: 12.34 kB / 460.5 MB, free: 8.539 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.00063/0.4229, allocations: 46.41 kB / 460.5 MB, free: 8.516 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001603/0.423, allocations: 50.64 kB / 460.6 MB, free: 8.488 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.823e-05/0.4231, allocations: 20.78 kB / 460.6 MB, free: 8.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005836/0.4237, allocations: 387.8 kB / 461 MB, free: 8.25 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4237, allocations: 0 / 461 MB, free: 8.25 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008894/0.4246, allocations: 194.2 kB / 461.2 MB, free: 8.219 MB / 366.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.003793/0.4284, allocations: 1.956 MB / 463.1 MB, free: 6.844 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001722/0.4301, allocations: 0.7026 MB / 463.8 MB, free: 6.449 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.247e-06/0.4301, allocations: 5.062 kB / 463.8 MB, free: 6.445 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001022/0.4311, allocations: 0.5007 MB / 464.3 MB, free: 6.125 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007749/0.4319, allocations: 93.31 kB / 464.4 MB, free: 6.074 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01025/0.4421, allocations: 5.942 MB / 470.4 MB, free: 2.195 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006107/0.4427, allocations: 0.9009 MB / 471.3 MB, free: 1.402 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003923/0.4431, allocations: 75.02 kB / 471.3 MB, free: 1.367 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004202/0.4436, allocations: 238 kB / 471.6 MB, free: 1.168 MB / 366.1 MB Notification: Performance of SimCode: time 1.303e-06/0.4436, allocations: 0 / 471.6 MB, free: 1.168 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05401/0.4976, allocations: 15.89 MB / 487.4 MB, free: 2.434 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.16/13.65, allocations: 0 / 487.4 MB, free: 2.434 MB / 382.1 MB " [Timeout remaining time 646] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2_fmu --startTime=0 --stopTime=0.1 --stepSize=2e-05 --timeout=50 --tolerance=0.0001 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis2/SinglePhaseTransformerWithHysteresis2.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_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: 16.488057497888803]