Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001955/0.001955, allocations: 119 kB / 17.78 MB, free: 5.23 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002137/0.002137, allocations: 197.2 kB / 20.73 MB, free: 2.289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.465/1.465, allocations: 225.6 MB / 249.1 MB, free: 3.59 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001509/0.001509, allocations: 55.91 kB / 365.6 MB, free: 0.8359 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1093/0.1108, allocations: 52.14 MB / 417.8 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.006072/0.1169, allocations: 3.412 MB / 421.2 MB, free: 9.168 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002802/0.1197, allocations: 1.465 MB / 422.7 MB, free: 7.695 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003432/0.12, allocations: 7.938 kB / 422.7 MB, free: 7.688 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.004714/0.1247, allocations: 2.655 MB / 425.3 MB, free: 5.027 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.001154/0.1259, allocations: 178.7 kB / 425.5 MB, free: 4.852 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001296/0.1272, allocations: 303.2 kB / 425.8 MB, free: 4.559 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.004551/0.1317, allocations: 1.805 MB / 427.6 MB, free: 2.75 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003886/0.1321, allocations: 95.3 kB / 427.7 MB, free: 2.652 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007599/0.1329, allocations: 309.1 kB / 428 MB, free: 2.348 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0006317/0.1335, allocations: 362.7 kB / 428.3 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001223/0.1336, allocations: 44 kB / 428.4 MB, free: 1.949 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003127/0.1339, allocations: 87.97 kB / 428.5 MB, free: 1.863 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0009517/0.1349, allocations: 0.8413 MB / 429.3 MB, free: 1.02 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.001191/0.1361, allocations: 0.9385 MB / 430.3 MB, free: 76 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.004296/0.1404, allocations: 2.626 MB / 432.9 MB, free: 13.43 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.283e-06/0.1404, allocations: 0 / 432.9 MB, free: 13.43 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.866e-06/0.1404, allocations: 0 / 432.9 MB, free: 13.43 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.625e-05/0.1405, allocations: 0 / 432.9 MB, free: 13.43 MB / 366.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.007378/0.1478, allocations: 2.903 MB / 435.8 MB, free: 10.46 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.368e-05/0.1479, allocations: 15.89 kB / 435.8 MB, free: 10.45 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001396/0.148, allocations: 74.72 kB / 435.9 MB, free: 10.37 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006769/0.1487, allocations: 299 kB / 436.2 MB, free: 10.07 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.004801/0.1535, allocations: 1.846 MB / 438 MB, free: 8.176 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001275/0.1536, allocations: 59.02 kB / 438.1 MB, free: 8.109 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0003225/0.154, allocations: 47.98 kB / 438.1 MB, free: 8.062 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001261/0.1552, allocations: 399 kB / 438.5 MB, free: 7.656 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.752e-05/0.1553, allocations: 3.938 kB / 438.5 MB, free: 7.652 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.17e-05/0.1553, allocations: 12 kB / 438.5 MB, free: 7.641 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.614e-05/0.1553, allocations: 8 kB / 438.5 MB, free: 7.633 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001353/0.1567, allocations: 327.8 kB / 438.9 MB, free: 7.312 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.007974/0.1647, allocations: 2.907 MB / 441.8 MB, free: 4.305 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001233/0.1659, allocations: 299.4 kB / 442.1 MB, free: 3.996 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006143/0.1665, allocations: 156.7 kB / 442.2 MB, free: 3.84 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.744e-05/0.1666, allocations: 11.98 kB / 442.2 MB, free: 3.828 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.441e-05/0.1666, allocations: 50.3 kB / 442.3 MB, free: 3.77 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 4.909e-06/0.1666, allocations: 0 / 442.3 MB, free: 3.77 MB / 366.1 MB Notification: Performance of matching and sorting (n=48): time 0.01024/0.1769, allocations: 2.451 MB / 444.7 MB, free: 1.258 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001102/0.177, allocations: 89.55 kB / 444.8 MB, free: 1.152 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.2338/0.4108, allocations: 5.426 MB / 450.2 MB, free: 28.34 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001043/0.4109, allocations: 33.83 kB / 450.3 MB, free: 28.31 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0009504/0.4118, allocations: 1.21 MB / 451.5 MB, free: 27.73 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001275/0.412, allocations: 176 kB / 451.6 MB, free: 27.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001756/0.4121, allocations: 87.19 kB / 451.7 MB, free: 27.66 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 6.691e-05/0.4122, allocations: 327.5 kB / 452 MB, free: 27.35 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004112/0.4126, allocations: 138.7 kB / 452.2 MB, free: 27.3 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004308/0.413, allocations: 224.1 kB / 452.4 MB, free: 27.17 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007395/0.4138, allocations: 385.1 kB / 452.8 MB, free: 26.97 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.857e-06/0.4138, allocations: 1.125 kB / 452.8 MB, free: 26.97 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001656/0.4154, allocations: 0.6978 MB / 453.5 MB, free: 26.8 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.993e-05/0.4155, allocations: 10.3 kB / 453.5 MB, free: 26.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.496e-06/0.4155, allocations: 1.281 kB / 453.5 MB, free: 26.8 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.141e-05/0.4155, allocations: 4.469 kB / 453.5 MB, free: 26.8 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005118/0.416, allocations: 122.3 kB / 453.6 MB, free: 26.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.117e-05/0.416, allocations: 4.406 kB / 453.6 MB, free: 26.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004811/0.4165, allocations: 17.92 kB / 453.6 MB, free: 26.79 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.086e-05/0.4165, allocations: 21.25 kB / 453.7 MB, free: 26.79 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.001217/0.4177, allocations: 0.9165 MB / 454.6 MB, free: 26.45 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003219/0.4181, allocations: 288.4 kB / 454.9 MB, free: 26.35 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001485/0.4195, allocations: 0.7891 MB / 455.6 MB, free: 26.06 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.546e-06/0.4196, allocations: 8.531 kB / 455.7 MB, free: 26.06 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.555e-06/0.4196, allocations: 11.09 kB / 455.7 MB, free: 26.05 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.336e-06/0.4196, allocations: 3.141 kB / 455.7 MB, free: 26.05 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001819/0.4214, allocations: 1.464 MB / 457.1 MB, free: 25.45 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.088e-06/0.4214, allocations: 1.75 kB / 457.1 MB, free: 25.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004537/0.4219, allocations: 100 kB / 457.2 MB, free: 25.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003905/0.4222, allocations: 95.47 kB / 457.3 MB, free: 25.42 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.18e-05/0.4223, allocations: 9.031 kB / 457.3 MB, free: 25.42 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0004941/0.4228, allocations: 0.6423 MB / 458 MB, free: 24.84 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.374e-06/0.4228, allocations: 0.5156 kB / 458 MB, free: 24.84 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001716/0.4245, allocations: 1.084 MB / 459.1 MB, free: 24.24 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0006601/0.4251, allocations: 0.4958 MB / 459.6 MB, free: 23.92 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001545/0.4253, allocations: 18.08 kB / 459.6 MB, free: 23.91 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000445/0.4257, allocations: 16.06 kB / 459.6 MB, free: 23.91 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.935e-05/0.4258, allocations: 29.38 kB / 459.6 MB, free: 23.9 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.076e-05/0.4259, allocations: 15.44 kB / 459.6 MB, free: 23.89 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00491/0.4308, allocations: 3.971 MB / 463.6 MB, free: 22.62 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.4308, allocations: 0 / 463.6 MB, free: 22.62 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0009322/0.4317, allocations: 208.7 kB / 463.8 MB, free: 22.6 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.003218/0.4349, allocations: 1.95 MB / 465.8 MB, free: 21.43 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0008682/0.4358, allocations: 364.8 kB / 466.1 MB, free: 21.32 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.777e-06/0.4358, allocations: 1.219 kB / 466.1 MB, free: 21.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004566/0.4363, allocations: 198.6 kB / 466.3 MB, free: 21.28 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001085/0.4373, allocations: 183.7 kB / 466.5 MB, free: 21.16 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0352/0.4725, allocations: 19.37 MB / 485.8 MB, free: 7.668 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001711/0.4742, allocations: 1.813 MB / 487.7 MB, free: 5.82 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006119/0.4749, allocations: 267.6 kB / 487.9 MB, free: 5.555 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001019/0.4759, allocations: 0.9366 MB / 488.9 MB, free: 4.621 MB / 366.1 MB Notification: Performance of SimCode: time 1.022e-06/0.4759, allocations: 0 / 488.9 MB, free: 4.621 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08789/0.5638, allocations: 38.8 MB / 0.5153 GB, free: 14.09 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.36/17.92, allocations: 7.844 kB / 0.5153 GB, free: 14.09 MB / 414.1 MB " [Timeout remaining time 642] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.csv --start-time 0 --stop-time 0.02 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 4e-06 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.896015407983214]