Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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.001375/0.001375, allocations: 120.4 kB / 20.44 MB, free: 1.461 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.001521/0.001521, allocations: 212.1 kB / 23.74 MB, free: 4.695 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.455/1.455, allocations: 230.5 MB / 257.4 MB, free: 8.188 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.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001878/0.001878, allocations: 59.91 kB / 377.8 MB, free: 3.043 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2656/0.2674, allocations: 53.4 MB / 431.2 MB, free: 6.715 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.005647/0.2731, allocations: 3.484 MB / 434.7 MB, free: 3.219 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003263/0.2763, allocations: 1.675 MB / 436.3 MB, free: 1.535 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004368/0.2768, allocations: 8 kB / 436.4 MB, free: 1.527 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003619/0.2804, allocations: 2.671 MB / 439 MB, free: 14.85 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008675/0.2813, allocations: 234.5 kB / 439.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009443/0.2822, allocations: 318.6 kB / 439.6 MB, free: 14.31 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.002366/0.2846, allocations: 1.821 MB / 441.4 MB, free: 12.49 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002545/0.2848, allocations: 96.36 kB / 441.5 MB, free: 12.39 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005515/0.2854, allocations: 329 kB / 441.8 MB, free: 12.07 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004976/0.2859, allocations: 362.6 kB / 442.2 MB, free: 11.71 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.465e-05/0.286, allocations: 44 kB / 442.2 MB, free: 11.67 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002375/0.2862, allocations: 95.97 kB / 442.3 MB, free: 11.57 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006831/0.2869, allocations: 0.8491 MB / 443.1 MB, free: 10.72 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008429/0.2877, allocations: 0.9346 MB / 444.1 MB, free: 9.781 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002726/0.2905, allocations: 2.657 MB / 446.7 MB, free: 7.117 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.623e-06/0.2905, allocations: 0 / 446.7 MB, free: 7.117 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.723e-06/0.2905, allocations: 0 / 446.7 MB, free: 7.117 MB / 350.1 MB Notification: Performance of Transformations before backend: time 3.943e-05/0.2905, allocations: 0 / 446.7 MB, free: 7.117 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.00494/0.2954, allocations: 2.84 MB / 449.6 MB, free: 4.227 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.119e-05/0.2955, allocations: 16.03 kB / 449.6 MB, free: 4.211 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.572e-05/0.2956, allocations: 74.72 kB / 449.7 MB, free: 4.129 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000532/0.2961, allocations: 306.9 kB / 450 MB, free: 3.828 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.003004/0.2991, allocations: 1.802 MB / 451.8 MB, free: 1.988 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001473/0.2993, allocations: 110.7 kB / 451.9 MB, free: 1.863 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001954/0.2995, allocations: 48.3 kB / 451.9 MB, free: 1.816 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007675/0.3002, allocations: 391 kB / 452.3 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.718e-05/0.3003, allocations: 0 / 452.3 MB, free: 1.422 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.832e-05/0.3003, allocations: 16 kB / 452.3 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.177e-05/0.3003, allocations: 8 kB / 452.3 MB, free: 1.398 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007193/0.301, allocations: 335.7 kB / 452.7 MB, free: 1.066 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004605/0.3056, allocations: 2.865 MB / 455.5 MB, free: 14.11 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006651/0.3063, allocations: 304.1 kB / 455.8 MB, free: 13.79 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003237/0.3066, allocations: 160.6 kB / 456 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.037e-05/0.3067, allocations: 7.984 kB / 456 MB, free: 13.62 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.57e-05/0.3067, allocations: 47.03 kB / 456 MB, free: 13.57 MB / 366.1 MB Notification: Performance of pre-optimization done (n=37): time 1.834e-06/0.3067, allocations: 0 / 456 MB, free: 13.57 MB / 366.1 MB Notification: Performance of matching and sorting (n=48): time 0.005188/0.3119, allocations: 2.394 MB / 458.4 MB, free: 11.13 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.181e-05/0.312, allocations: 81.55 kB / 458.5 MB, free: 11.04 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00738/0.3193, allocations: 5.452 MB / 464 MB, free: 5.582 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.839e-05/0.3194, allocations: 41.73 kB / 464 MB, free: 5.535 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001241/0.3207, allocations: 1.192 MB / 465.2 MB, free: 4.34 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001818/0.3209, allocations: 174.5 kB / 465.4 MB, free: 4.168 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001589/0.321, allocations: 94.12 kB / 465.4 MB, free: 4.07 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001536/0.3212, allocations: 322 kB / 465.8 MB, free: 3.75 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003883/0.3216, allocations: 144.9 kB / 465.9 MB, free: 3.609 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000394/0.322, allocations: 229 kB / 466.1 MB, free: 3.355 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007156/0.3227, allocations: 376.3 kB / 466.5 MB, free: 2.961 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.3227, allocations: 0 / 466.5 MB, free: 2.961 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001468/0.3241, allocations: 0.705 MB / 467.2 MB, free: 2.246 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.369e-05/0.3242, allocations: 8 kB / 467.2 MB, free: 2.238 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.032e-05/0.3242, allocations: 0 / 467.2 MB, free: 2.238 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.096e-05/0.3242, allocations: 4 kB / 467.2 MB, free: 2.234 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005135/0.3247, allocations: 119.9 kB / 467.3 MB, free: 2.117 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.668e-05/0.3247, allocations: 12.19 kB / 467.3 MB, free: 2.105 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005384/0.3253, allocations: 19.98 kB / 467.4 MB, free: 2.086 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.637e-05/0.3253, allocations: 20 kB / 467.4 MB, free: 2.066 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.001243/0.3265, allocations: 0.9115 MB / 468.3 MB, free: 1.145 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000387/0.3269, allocations: 286 kB / 468.6 MB, free: 0.8633 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001519/0.3285, allocations: 0.7943 MB / 469.4 MB, free: 56 kB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.063e-06/0.3285, allocations: 8 kB / 469.4 MB, free: 48 kB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.18e-06/0.3285, allocations: 0 / 469.4 MB, free: 48 kB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.757e-06/0.3285, allocations: 3.984 kB / 469.4 MB, free: 44 kB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001826/0.3303, allocations: 1.453 MB / 470.8 MB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.516e-06/0.3303, allocations: 0 / 470.8 MB, free: 14.55 MB / 382.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004484/0.3308, allocations: 91.88 kB / 470.9 MB, free: 14.46 MB / 382.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003954/0.3311, allocations: 100.7 kB / 471 MB, free: 14.36 MB / 382.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.309e-05/0.3312, allocations: 16 kB / 471 MB, free: 14.34 MB / 382.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000664/0.3318, allocations: 0.6382 MB / 471.7 MB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.994e-06/0.3318, allocations: 0 / 471.7 MB, free: 13.68 MB / 382.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001926/0.3338, allocations: 1.09 MB / 472.8 MB, free: 12.56 MB / 382.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0009845/0.3348, allocations: 430 kB / 473.2 MB, free: 12.14 MB / 382.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001716/0.3349, allocations: 12 kB / 473.2 MB, free: 12.13 MB / 382.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004603/0.3354, allocations: 23.98 kB / 473.2 MB, free: 12.11 MB / 382.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.22e-05/0.3355, allocations: 32.31 kB / 473.2 MB, free: 12.07 MB / 382.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.119e-05/0.3355, allocations: 16 kB / 473.3 MB, free: 12.06 MB / 382.1 MB Notification: Performance of sorting global known variables: time 0.005426/0.3409, allocations: 3.986 MB / 477.2 MB, free: 8.082 MB / 382.1 MB Notification: Performance of sort global known variables: time 1.7e-07/0.3409, allocations: 0 / 477.2 MB, free: 8.082 MB / 382.1 MB Notification: Performance of remove unused functions: time 0.0009497/0.3419, allocations: 207.9 kB / 477.4 MB, free: 7.879 MB / 382.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.003595/0.3455, allocations: 1.943 MB / 479.4 MB, free: 6.047 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.0008847/0.3464, allocations: 360.8 kB / 479.7 MB, free: 5.695 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 6.352e-06/0.3464, allocations: 4 kB / 479.7 MB, free: 5.691 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004777/0.3468, allocations: 206.9 kB / 480 MB, free: 5.492 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001372/0.3482, allocations: 183.3 kB / 480.1 MB, free: 5.309 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.04049/0.3887, allocations: 19.42 MB / 499.6 MB, free: 1.707 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001711/0.3904, allocations: 1.821 MB / 0.4896 GB, free: 15.85 MB / 414.1 MB Notification: Performance of simCode: alias equations: time 0.0006717/0.3911, allocations: 279.8 kB / 0.4899 GB, free: 15.57 MB / 414.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001216/0.3923, allocations: 0.9328 MB / 0.4908 GB, free: 14.64 MB / 414.1 MB Notification: Performance of SimCode: time 1.132e-06/0.3923, allocations: 0 / 0.4908 GB, free: 14.64 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08776/0.4801, allocations: 39.29 MB / 0.5292 GB, free: 7.465 MB / 446.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 18.97/19.45, allocations: 12.03 kB / 0.5292 GB, free: 7.453 MB / 446.1 MB " [Timeout remaining time 640] (rm -f Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & python3 -m fmpy simulate --output-file Modelica_trunk_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_trunk_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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: 22.53438880899921]