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.00151/0.00151, allocations: 101.5 kB / 21.21 MB, free: 0.6523 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.001767/0.001767, allocations: 190.1 kB / 24.49 MB, free: 3.984 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.364/1.364, allocations: 225.7 MB / 253.3 MB, free: 12.86 MB / 206.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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 47.92 kB / 371.2 MB, free: 9.719 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2487/0.2501, allocations: 52.18 MB / 423.4 MB, free: 14.42 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.004902/0.255, allocations: 3.161 MB / 426.5 MB, free: 11.25 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002594/0.2576, allocations: 1.407 MB / 427.9 MB, free: 9.836 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000214/0.2578, allocations: 4 kB / 427.9 MB, free: 9.832 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003151/0.2609, allocations: 2.655 MB / 430.6 MB, free: 7.172 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005196/0.2615, allocations: 182.7 kB / 430.8 MB, free: 6.992 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007255/0.2622, allocations: 311 kB / 431.1 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.00177/0.264, allocations: 1.798 MB / 432.9 MB, free: 4.891 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002061/0.2642, allocations: 91.7 kB / 433 MB, free: 4.793 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003663/0.2645, allocations: 317 kB / 433.3 MB, free: 4.484 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004083/0.2649, allocations: 358.7 kB / 433.6 MB, free: 4.133 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.758e-05/0.265, allocations: 44 kB / 433.7 MB, free: 4.09 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001799/0.2652, allocations: 91.97 kB / 433.7 MB, free: 4 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006399/0.2658, allocations: 0.8452 MB / 434.6 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0005836/0.2664, allocations: 0.6589 MB / 435.2 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002375/0.2688, allocations: 2.661 MB / 437.9 MB, free: 15.81 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.2688, allocations: 0 / 437.9 MB, free: 15.81 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.643e-06/0.2688, allocations: 0 / 437.9 MB, free: 15.81 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.242e-05/0.2688, allocations: 0 / 437.9 MB, free: 15.81 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.003946/0.2728, allocations: 2.824 MB / 440.7 MB, free: 12.94 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.36e-05/0.2728, allocations: 12.02 kB / 440.7 MB, free: 12.93 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.072e-05/0.2728, allocations: 9.188 kB / 440.8 MB, free: 12.92 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.003e-05/0.2729, allocations: 78.66 kB / 440.8 MB, free: 12.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003533/0.2733, allocations: 295 kB / 441.1 MB, free: 12.55 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002429/0.2757, allocations: 1.79 MB / 442.9 MB, free: 10.72 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001091/0.2758, allocations: 118.2 kB / 443 MB, free: 10.59 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001811/0.276, allocations: 43.98 kB / 443.1 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008039/0.2768, allocations: 442.4 kB / 443.5 MB, free: 10.08 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.898e-05/0.2768, allocations: 7.938 kB / 443.5 MB, free: 10.07 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.025e-05/0.2769, allocations: 16 kB / 443.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.066e-05/0.2769, allocations: 8 kB / 443.5 MB, free: 10.05 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007113/0.2776, allocations: 335.7 kB / 443.9 MB, free: 9.723 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003851/0.2814, allocations: 2.619 MB / 446.5 MB, free: 7.004 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006466/0.2821, allocations: 313.7 kB / 446.8 MB, free: 6.68 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003153/0.2824, allocations: 150.2 kB / 446.9 MB, free: 6.527 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.593e-05/0.2824, allocations: 11.94 kB / 446.9 MB, free: 6.516 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.346e-05/0.2825, allocations: 42.41 kB / 447 MB, free: 6.465 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.834e-06/0.2825, allocations: 4 kB / 447 MB, free: 6.461 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.004781/0.2872, allocations: 2.387 MB / 449.4 MB, free: 4.027 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.821e-05/0.2873, allocations: 81.55 kB / 449.5 MB, free: 3.93 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006198/0.2935, allocations: 5.439 MB / 454.9 MB, free: 14.49 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 5.817e-05/0.2936, allocations: 29.7 kB / 454.9 MB, free: 14.45 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001261/0.2948, allocations: 1.215 MB / 456.1 MB, free: 13.23 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001861/0.295, allocations: 178.4 kB / 456.3 MB, free: 13.05 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001663/0.2952, allocations: 90.14 kB / 456.4 MB, free: 12.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.2953, allocations: 333.9 kB / 456.7 MB, free: 12.63 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003468/0.2957, allocations: 132.9 kB / 456.9 MB, free: 12.5 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003962/0.2961, allocations: 221.1 kB / 457.1 MB, free: 12.26 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007112/0.2968, allocations: 380.3 kB / 457.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.535e-06/0.2968, allocations: 0 / 457.4 MB, free: 11.86 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00122/0.298, allocations: 0.6972 MB / 458.1 MB, free: 11.15 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.95e-05/0.298, allocations: 11.94 kB / 458.2 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.217e-06/0.298, allocations: 4 kB / 458.2 MB, free: 11.14 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.993e-05/0.2981, allocations: 4 kB / 458.2 MB, free: 11.13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005058/0.2986, allocations: 120.1 kB / 458.3 MB, free: 11.02 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.395e-05/0.2986, allocations: 15.92 kB / 458.3 MB, free: 11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003923/0.299, allocations: 16 kB / 458.3 MB, free: 10.98 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.27e-05/0.299, allocations: 16 kB / 458.3 MB, free: 10.97 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.001052/0.3001, allocations: 0.9192 MB / 459.2 MB, free: 10.04 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003237/0.3004, allocations: 282.1 kB / 459.5 MB, free: 9.762 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001466/0.3019, allocations: 0.8019 MB / 460.3 MB, free: 8.949 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.344e-06/0.3019, allocations: 4 kB / 460.3 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.26e-06/0.3019, allocations: 0 / 460.3 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.591e-06/0.3019, allocations: 0 / 460.3 MB, free: 8.945 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001595/0.3035, allocations: 1.246 MB / 461.6 MB, free: 7.656 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.166e-06/0.3035, allocations: 0 / 461.6 MB, free: 7.656 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004572/0.3039, allocations: 91.88 kB / 461.7 MB, free: 7.566 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003537/0.3043, allocations: 88.8 kB / 461.7 MB, free: 7.477 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.486e-05/0.3043, allocations: 15.98 kB / 461.8 MB, free: 7.461 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0006008/0.3049, allocations: 0.6382 MB / 462.4 MB, free: 6.797 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.427e-06/0.3049, allocations: 4.031 kB / 462.4 MB, free: 6.793 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001713/0.3066, allocations: 1.09 MB / 463.5 MB, free: 5.68 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007393/0.3074, allocations: 426.1 kB / 463.9 MB, free: 5.262 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001752/0.3075, allocations: 8 kB / 463.9 MB, free: 5.254 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004494/0.308, allocations: 19.98 kB / 463.9 MB, free: 5.234 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.921e-05/0.3081, allocations: 36.36 kB / 464 MB, free: 5.199 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.931e-05/0.3081, allocations: 12 kB / 464 MB, free: 5.188 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.004654/0.3128, allocations: 3.974 MB / 468 MB, free: 1.223 MB / 366.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3128, allocations: 0 / 468 MB, free: 1.223 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006417/0.3134, allocations: 219.8 kB / 468.2 MB, free: 1.008 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.003451/0.3169, allocations: 1.955 MB / 470.1 MB, free: 15.21 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008409/0.3177, allocations: 356.9 kB / 470.5 MB, free: 14.86 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.3177, allocations: 3.938 kB / 470.5 MB, free: 14.85 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004607/0.3182, allocations: 202.4 kB / 470.7 MB, free: 14.66 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001013/0.3192, allocations: 209.4 kB / 470.9 MB, free: 14.46 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03569/0.3549, allocations: 19.35 MB / 490.2 MB, free: 10.93 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001452/0.3563, allocations: 1.241 MB / 491.5 MB, free: 9.648 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0005903/0.3569, allocations: 271.6 kB / 491.7 MB, free: 9.379 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00111/0.358, allocations: 0.9366 MB / 492.7 MB, free: 8.441 MB / 398.1 MB Notification: Performance of SimCode: time 7.31e-07/0.358, allocations: 0 / 492.7 MB, free: 8.441 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.078/0.436, allocations: 39.43 MB / 0.5196 GB, free: 1.363 MB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.11/17.55, allocations: 11.75 kB / 0.5196 GB, free: 1.355 MB / 430.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1_fmu --startTime=0 --stopTime=0.02 --stepSize=4e-06 --timeout=50 --tolerance=1e-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.mat","/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.269727666978724]