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.001309/0.001309, 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.002007/0.002007, 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.532/1.532, allocations: 230.6 MB / 254.1 MB, free: 15.11 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.001529/0.001529, allocations: 47.92 kB / 373 MB, free: 10.24 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1141/0.1157, allocations: 53.33 MB / 426.3 MB, free: 4.816 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.006223/0.1219, allocations: 4.407 MB / 430.7 MB, free: 392 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.2638/0.3857, allocations: 1.648 MB / 432.4 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0005908/0.3863, allocations: 13.06 kB / 432.4 MB, free: 7.539 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004434/0.3868, allocations: 130.4 kB / 432.5 MB, free: 7.535 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.00107/0.3878, allocations: 369.8 kB / 432.9 MB, free: 7.422 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000538/0.3884, allocations: 240 kB / 433.1 MB, free: 7.414 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.001028/0.3894, allocations: 0.9776 MB / 434.1 MB, free: 7.23 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002814/0.3897, allocations: 165.8 kB / 434.2 MB, free: 7.203 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005749/0.3902, allocations: 382.7 kB / 434.6 MB, free: 7.137 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005075/0.3908, allocations: 430.1 kB / 435 MB, free: 7.055 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001424/0.3909, allocations: 97.53 kB / 435.1 MB, free: 7.055 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004471/0.3913, allocations: 222.5 kB / 435.3 MB, free: 7.051 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001547/0.3915, allocations: 199.5 kB / 435.5 MB, free: 7.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003884/0.3919, allocations: 414.9 kB / 435.9 MB, free: 6.785 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001737/0.3936, allocations: 1.178 MB / 437.1 MB, free: 6.367 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.202e-06/0.3936, allocations: 0 / 437.1 MB, free: 6.367 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.714e-06/0.3936, allocations: 0 / 437.1 MB, free: 6.367 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.883e-05/0.3936, allocations: 0 / 437.1 MB, free: 6.367 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.002809/0.3965, allocations: 1.12 MB / 438.2 MB, free: 5.617 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.766e-05/0.3965, allocations: 9.281 kB / 438.2 MB, free: 5.617 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001384/0.3967, allocations: 101.7 kB / 438.3 MB, free: 5.539 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003174/0.397, allocations: 88.89 kB / 438.4 MB, free: 5.5 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0008392/0.3978, allocations: 0.5192 MB / 439 MB, free: 5.105 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.676e-05/0.3979, allocations: 74.53 kB / 439 MB, free: 5.055 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002137/0.3981, allocations: 69.67 kB / 439.1 MB, free: 5.031 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001238/0.3994, allocations: 0.6071 MB / 439.7 MB, free: 4.75 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.261e-05/0.3994, allocations: 3.234 kB / 439.7 MB, free: 4.75 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.805e-05/0.3994, allocations: 22.45 kB / 439.7 MB, free: 4.734 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.947e-05/0.3995, allocations: 13.5 kB / 439.7 MB, free: 4.734 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001205/0.4007, allocations: 0.529 MB / 440.3 MB, free: 4.547 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004282/0.4049, allocations: 2.294 MB / 442.6 MB, free: 3.082 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001175/0.4061, allocations: 455.7 kB / 443 MB, free: 2.867 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006899/0.4068, allocations: 243.4 kB / 443.2 MB, free: 2.766 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.902e-05/0.4068, allocations: 4.625 kB / 443.2 MB, free: 2.766 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.081e-05/0.4069, allocations: 46.89 kB / 443.3 MB, free: 2.715 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 3.406e-06/0.4069, allocations: 0 / 443.3 MB, free: 2.715 MB / 350.1 MB Notification: Performance of matching and sorting (n=61): time 0.01397/0.4209, allocations: 3.554 MB / 446.8 MB, free: 1.266 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.947e-05/0.4209, allocations: 84.05 kB / 446.9 MB, free: 1.168 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009176/0.4218, allocations: 0.5421 MB / 447.5 MB, free: 0.8984 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 6.481e-05/0.4219, allocations: 37.92 kB / 447.5 MB, free: 0.8594 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002184/0.4221, allocations: 322.1 kB / 447.8 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001807/0.4223, allocations: 216.2 kB / 448 MB, free: 448 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002274/0.4225, allocations: 115.8 kB / 448.1 MB, free: 384 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001201/0.4226, allocations: 366.1 kB / 448.5 MB, free: 40 kB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0007627/0.4234, allocations: 257.1 kB / 448.8 MB, free: 0 / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007759/0.4242, allocations: 356.9 kB / 449.1 MB, free: 15.8 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001383/0.4255, allocations: 0.5986 MB / 449.7 MB, free: 15.46 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.4256, allocations: 1.828 kB / 449.7 MB, free: 15.46 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001842/0.4274, allocations: 0.7439 MB / 450.4 MB, free: 15.12 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.29e-05/0.4274, allocations: 6.906 kB / 450.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.018e-05/0.4274, allocations: 3.344 kB / 450.5 MB, free: 15.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0002142/0.4276, allocations: 40.88 kB / 450.5 MB, free: 15.1 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008277/0.4285, allocations: 163 kB / 450.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.001431/0.4299, allocations: 1.438 MB / 452.1 MB, free: 13.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0007087/0.4306, allocations: 43.67 kB / 452.1 MB, free: 13.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.053e-05/0.4307, allocations: 24.67 kB / 452.2 MB, free: 13.62 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.0004142/0.4311, allocations: 198.5 kB / 452.4 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001514/0.4312, allocations: 65.97 kB / 452.4 MB, free: 13.42 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002008/0.4332, allocations: 0.8337 MB / 453.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.719e-05/0.4333, allocations: 11.91 kB / 453.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.036e-06/0.4333, allocations: 0 / 453.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.867e-05/0.4333, allocations: 6.219 kB / 453.3 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003911/0.4372, allocations: 1.844 MB / 455.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.51e-06/0.4372, allocations: 1.156 kB / 455.1 MB, free: 12.11 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005464/0.4378, allocations: 107.2 kB / 455.2 MB, free: 12.1 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002507/0.4403, allocations: 473 kB / 455.7 MB, free: 12.02 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.569e-05/0.4404, allocations: 13.08 kB / 455.7 MB, free: 12.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005913/0.4463, allocations: 3.162 MB / 458.9 MB, free: 9.469 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.776e-06/0.4463, allocations: 0.875 kB / 458.9 MB, free: 9.469 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003455/0.4497, allocations: 1.367 MB / 460.2 MB, free: 8.641 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000549/0.4503, allocations: 214.9 kB / 460.4 MB, free: 8.434 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.352e-05/0.4504, allocations: 11.16 kB / 460.4 MB, free: 8.426 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006202/0.451, allocations: 41.64 kB / 460.5 MB, free: 8.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001897/0.4512, allocations: 53.42 kB / 460.5 MB, free: 8.379 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.319e-05/0.4512, allocations: 16.56 kB / 460.6 MB, free: 8.375 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0006904/0.4519, allocations: 389 kB / 460.9 MB, free: 8.145 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.4519, allocations: 3.938 kB / 460.9 MB, free: 8.141 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.001103/0.453, allocations: 190.4 kB / 461.1 MB, free: 8.113 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.003957/0.457, allocations: 1.962 MB / 463.1 MB, free: 6.734 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001792/0.4588, allocations: 0.7069 MB / 463.8 MB, free: 6.336 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.679e-06/0.4588, allocations: 4.188 kB / 463.8 MB, free: 6.332 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00109/0.4599, allocations: 0.4936 MB / 464.3 MB, free: 6.02 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000919/0.4608, allocations: 96.84 kB / 464.4 MB, free: 5.961 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01203/0.4728, allocations: 5.929 MB / 470.3 MB, free: 2.09 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007124/0.4735, allocations: 0.9036 MB / 471.2 MB, free: 1.293 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004734/0.474, allocations: 77.34 kB / 471.3 MB, free: 1.258 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004484/0.4745, allocations: 241.7 kB / 471.5 MB, free: 1.055 MB / 366.1 MB Notification: Performance of SimCode: time 1.433e-06/0.4745, allocations: 1.375 kB / 471.5 MB, free: 1.055 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.07347/0.5479, allocations: 15.89 MB / 487.4 MB, free: 2.332 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.28/13.83, allocations: 4.062 kB / 487.4 MB, free: 2.328 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv --start-time 0 --stop-time 0.1 --timeout 50 --relative-tolerance 0.0001 --interface-type ModelExchange --solver CVode --output-interval 2e-05 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.csv","/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] "Error: Could not read variable transformer.core.Hstat in file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv. Warning: Get data of variable transformer.core.Hstat from file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.753212151990738]