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.001845/0.001845, allocations: 131.4 kB / 17.8 MB, free: 5.219 MB / 14.72 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.002306/0.002306, allocations: 211.6 kB / 20.75 MB, free: 2.27 MB / 14.72 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 1.705/1.705, allocations: 230.5 MB / 254 MB, free: 15.18 MB / 206.1 MB " [Timeout remaining time 178] 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: "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001876/0.001876, allocations: 63.91 kB / 373 MB, free: 10.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1125/0.1144, allocations: 53.37 MB / 426.4 MB, free: 4.645 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2): time 0.00617/0.1206, allocations: 4.403 MB / 430.8 MB, free: 224 kB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.003228/0.1238, allocations: 1.66 MB / 432.4 MB, free: 14.55 MB / 366.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003654/0.1242, allocations: 11.94 kB / 432.4 MB, free: 14.54 MB / 366.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004079/0.1246, allocations: 130.8 kB / 432.6 MB, free: 14.41 MB / 366.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008457/0.1254, allocations: 365.6 kB / 432.9 MB, free: 14.05 MB / 366.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004995/0.1259, allocations: 247.6 kB / 433.2 MB, free: 13.81 MB / 366.1 MB Notification: Performance of NFFlatten.flatten: time 0.001061/0.127, allocations: 0.9706 MB / 434.1 MB, free: 12.83 MB / 366.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002987/0.1273, allocations: 165.4 kB / 434.3 MB, free: 12.66 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005709/0.1279, allocations: 398.6 kB / 434.7 MB, free: 12.27 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005418/0.1284, allocations: 426.3 kB / 435.1 MB, free: 11.86 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001235/0.1285, allocations: 96 kB / 435.2 MB, free: 11.76 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003812/0.1289, allocations: 215.9 kB / 435.4 MB, free: 11.55 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001659/0.1291, allocations: 199.3 kB / 435.6 MB, free: 11.36 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000391/0.1295, allocations: 410.1 kB / 436 MB, free: 10.95 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.001453/0.1309, allocations: 1.179 MB / 437.2 MB, free: 9.77 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1309, allocations: 3.938 kB / 437.2 MB, free: 9.766 MB / 366.1 MB Notification: Performance of FrontEnd: time 2.004e-06/0.1309, allocations: 4 kB / 437.2 MB, free: 9.762 MB / 366.1 MB Notification: Performance of Transformations before backend: time 1.758e-05/0.131, allocations: 0 / 437.2 MB, free: 9.762 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: 138 * Number of variables: 138 Notification: Performance of Generate backend data structure: time 0.002627/0.1336, allocations: 1.117 MB / 438.3 MB, free: 8.594 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.172e-05/0.1336, allocations: 8.031 kB / 438.3 MB, free: 8.586 MB / 366.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001417/0.1338, allocations: 98.7 kB / 438.4 MB, free: 8.48 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003029/0.1341, allocations: 88.45 kB / 438.5 MB, free: 8.395 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0009297/0.135, allocations: 0.5266 MB / 439 MB, free: 7.824 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001/0.1351, allocations: 75.56 kB / 439.1 MB, free: 7.746 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0002/0.1353, allocations: 64.3 kB / 439.2 MB, free: 7.684 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001112/0.1364, allocations: 0.6019 MB / 439.8 MB, free: 7.062 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.732e-05/0.1364, allocations: 4 kB / 439.8 MB, free: 7.059 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 6.102e-05/0.1365, allocations: 27.98 kB / 439.8 MB, free: 7.031 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.888e-05/0.1365, allocations: 16 kB / 439.8 MB, free: 7.016 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001141/0.1377, allocations: 0.5243 MB / 440.3 MB, free: 6.492 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003687/0.1413, allocations: 2.287 MB / 442.6 MB, free: 4.098 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001027/0.1424, allocations: 460.1 kB / 443.1 MB, free: 3.629 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005452/0.1429, allocations: 258 kB / 443.3 MB, free: 3.371 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.183e-05/0.1429, allocations: 8 kB / 443.3 MB, free: 3.363 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.724e-05/0.143, allocations: 42.5 kB / 443.4 MB, free: 3.312 MB / 366.1 MB Notification: Performance of pre-optimization done (n=45): time 2.034e-06/0.143, allocations: 0 / 443.4 MB, free: 3.312 MB / 366.1 MB Notification: Performance of matching and sorting (n=61): time 0.2232/0.3661, allocations: 3.555 MB / 446.9 MB, free: 24.12 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.333e-05/0.3662, allocations: 84.02 kB / 447 MB, free: 24.02 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007981/0.367, allocations: 0.5395 MB / 447.5 MB, free: 23.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001018/0.3671, allocations: 37.67 kB / 447.6 MB, free: 23.88 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001817/0.3673, allocations: 316.5 kB / 447.9 MB, free: 23.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001391/0.3674, allocations: 225.9 kB / 448.1 MB, free: 23.71 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001938/0.3676, allocations: 107.7 kB / 448.2 MB, free: 23.69 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 8.699e-05/0.3677, allocations: 366.7 kB / 448.6 MB, free: 23.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0005227/0.3682, allocations: 248.7 kB / 448.8 MB, free: 23.38 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005719/0.3688, allocations: 353 kB / 449.2 MB, free: 23.29 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001152/0.3699, allocations: 0.5982 MB / 449.8 MB, free: 23.14 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.727e-06/0.37, allocations: 1.156 kB / 449.8 MB, free: 23.14 MB / 366.1 MB Notification: Performance of matching and sorting (n=78) (initialization): time 0.001538/0.3715, allocations: 0.7465 MB / 450.5 MB, free: 22.83 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.281e-05/0.3715, allocations: 6.719 kB / 450.5 MB, free: 22.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.758e-06/0.3715, allocations: 2.406 kB / 450.5 MB, free: 22.83 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 0.0001851/0.3717, allocations: 40.52 kB / 450.5 MB, free: 22.81 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0007989/0.3725, allocations: 160.9 kB / 450.7 MB, free: 22.81 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 0.0008664/0.3734, allocations: 1.429 MB / 452.1 MB, free: 21.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0006053/0.374, allocations: 44.2 kB / 452.2 MB, free: 21.37 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.811e-05/0.374, allocations: 25.72 kB / 452.2 MB, free: 21.37 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.0002638/0.3743, allocations: 196.5 kB / 452.4 MB, free: 21.2 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001288/0.3744, allocations: 61.66 kB / 452.5 MB, free: 21.17 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001813/0.3762, allocations: 0.8418 MB / 453.3 MB, free: 20.8 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.466e-06/0.3762, allocations: 6.844 kB / 453.3 MB, free: 20.8 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.3762, allocations: 1.953 kB / 453.3 MB, free: 20.8 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.061e-05/0.3763, allocations: 6.641 kB / 453.3 MB, free: 20.8 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003683/0.3799, allocations: 1.839 MB / 455.2 MB, free: 19.89 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.158e-06/0.3799, allocations: 0 / 455.2 MB, free: 19.89 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000529/0.3805, allocations: 110.5 kB / 455.3 MB, free: 19.88 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.002431/0.3829, allocations: 471.9 kB / 455.7 MB, free: 19.81 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.206e-05/0.383, allocations: 13.98 kB / 455.7 MB, free: 19.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.005112/0.3881, allocations: 3.158 MB / 458.9 MB, free: 17.48 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.913e-06/0.3881, allocations: 3.938 kB / 458.9 MB, free: 17.48 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003012/0.3911, allocations: 1.37 MB / 460.3 MB, free: 16.78 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003501/0.3914, allocations: 215.1 kB / 460.5 MB, free: 16.59 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.363e-05/0.3915, allocations: 12.11 kB / 460.5 MB, free: 16.59 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006005/0.3921, allocations: 44.08 kB / 460.5 MB, free: 16.57 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001824/0.3923, allocations: 48.17 kB / 460.6 MB, free: 16.57 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.728e-05/0.3924, allocations: 17.61 kB / 460.6 MB, free: 16.56 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0005209/0.3929, allocations: 390.5 kB / 461 MB, free: 16.38 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3929, allocations: 0 / 461 MB, free: 16.38 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007797/0.3937, allocations: 186.5 kB / 461.2 MB, free: 16.35 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.003122/0.3968, allocations: 1.956 MB / 463.1 MB, free: 15.11 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001561/0.3983, allocations: 0.7132 MB / 463.8 MB, free: 14.78 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.996e-06/0.3983, allocations: 1.406 kB / 463.8 MB, free: 14.78 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009019/0.3992, allocations: 0.4942 MB / 464.3 MB, free: 14.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006879/0.3999, allocations: 92.12 kB / 464.4 MB, free: 14.48 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.009073/0.409, allocations: 5.943 MB / 470.4 MB, free: 11.08 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004397/0.4094, allocations: 0.9006 MB / 471.3 MB, free: 10.38 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0003675/0.4098, allocations: 75.88 kB / 471.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003686/0.4102, allocations: 241 kB / 471.6 MB, free: 10.18 MB / 366.1 MB Notification: Performance of SimCode: time 1.493e-06/0.4102, allocations: 0 / 471.6 MB, free: 10.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.06029/0.4705, allocations: 15.87 MB / 487.4 MB, free: 2.664 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.2/13.67, allocations: 0 / 487.4 MB, free: 2.664 MB / 366.1 MB " [Timeout remaining time 646] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis2.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv. Warning: Get data of variable transformer.core.Hstat from file Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis2_res.csv failed! " [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 16.772884333040565]