Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.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.001352/0.001352, allocations: 108.5 kB / 21.18 MB, free: 0.6992 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.001788/0.001788, allocations: 216.7 kB / 24.5 MB, free: 4.027 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.626/1.626, allocations: 207.6 MB / 235.3 MB, free: 10.02 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1,fileNamePrefix="Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001776/0.001776, allocations: 51.94 kB / 347.2 MB, free: 10.13 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3048/0.3065, allocations: 49.16 MB / 396.3 MB, free: 8.984 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.004656/0.3112, allocations: 3.379 MB / 399.7 MB, free: 6.641 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.002349/0.3135, allocations: 1.427 MB / 401.2 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002681/0.3138, allocations: 6.438 kB / 401.2 MB, free: 5.715 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00374/0.3176, allocations: 2.665 MB / 403.8 MB, free: 5.457 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006781/0.3182, allocations: 176.1 kB / 404 MB, free: 5.336 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008907/0.3191, allocations: 284.4 kB / 404.3 MB, free: 5.184 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.002733/0.3219, allocations: 1.803 MB / 406.1 MB, free: 4.746 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002476/0.3221, allocations: 106.4 kB / 406.2 MB, free: 4.672 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005375/0.3226, allocations: 318.1 kB / 406.5 MB, free: 4.504 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004726/0.3231, allocations: 358.9 kB / 406.8 MB, free: 4.289 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001027/0.3232, allocations: 47.53 kB / 406.9 MB, free: 4.285 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002284/0.3234, allocations: 73.19 kB / 407 MB, free: 4.273 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0007736/0.3242, allocations: 0.8486 MB / 407.8 MB, free: 3.824 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000646/0.3249, allocations: 0.9332 MB / 408.7 MB, free: 3.051 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.002678/0.3275, allocations: 2.619 MB / 411.4 MB, free: 1.25 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.672e-06/0.3276, allocations: 1.219 kB / 411.4 MB, free: 1.25 MB / 318.1 MB Notification: Performance of FrontEnd: time 3.537e-06/0.3276, allocations: 0 / 411.4 MB, free: 1.25 MB / 318.1 MB Notification: Performance of Transformations before backend: time 3.658e-05/0.3276, allocations: 0 / 411.4 MB, free: 1.25 MB / 318.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.004938/0.3325, allocations: 2.816 MB / 414.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.943e-05/0.3326, allocations: 14.11 kB / 414.2 MB, free: 15.14 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001132/0.3327, allocations: 74.41 kB / 414.3 MB, free: 15.07 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0006207/0.3333, allocations: 302.4 kB / 414.6 MB, free: 14.9 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.002914/0.3362, allocations: 1.793 MB / 416.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001254/0.3364, allocations: 116.6 kB / 416.5 MB, free: 13.67 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001889/0.3366, allocations: 45.27 kB / 416.5 MB, free: 13.65 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007691/0.3373, allocations: 392.8 kB / 416.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.845e-05/0.3373, allocations: 0 / 416.9 MB, free: 13.41 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.411e-05/0.3374, allocations: 19.64 kB / 416.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.294e-05/0.3374, allocations: 8.438 kB / 416.9 MB, free: 13.39 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007214/0.3381, allocations: 328.5 kB / 417.2 MB, free: 13.24 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.005796/0.3439, allocations: 2.861 MB / 420.1 MB, free: 11.27 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007319/0.3446, allocations: 296.3 kB / 420.4 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003493/0.345, allocations: 153.6 kB / 420.5 MB, free: 10.89 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.795e-05/0.345, allocations: 11.98 kB / 420.6 MB, free: 10.88 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.303e-05/0.3451, allocations: 42.5 kB / 420.6 MB, free: 10.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=37): time 2.043e-06/0.3451, allocations: 0 / 420.6 MB, free: 10.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=48): time 0.005424/0.3505, allocations: 2.358 MB / 423 MB, free: 8.422 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.981e-05/0.3506, allocations: 81.55 kB / 423 MB, free: 8.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.007969/0.3586, allocations: 5.439 MB / 428.5 MB, free: 2.879 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001304/0.3587, allocations: 37.7 kB / 428.5 MB, free: 2.836 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.00128/0.36, allocations: 1.199 MB / 429.7 MB, free: 1.629 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002672/0.3602, allocations: 182.4 kB / 429.9 MB, free: 1.449 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001563/0.3604, allocations: 94.17 kB / 430 MB, free: 1.352 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001613/0.3606, allocations: 322 kB / 430.3 MB, free: 1.031 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003707/0.3609, allocations: 140.9 kB / 430.4 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003946/0.3613, allocations: 221 kB / 430.6 MB, free: 0.6523 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008075/0.3621, allocations: 384.3 kB / 431 MB, free: 256 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.3621, allocations: 7.938 kB / 431 MB, free: 248 kB / 334.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.001682/0.3638, allocations: 0.6938 MB / 431.7 MB, free: 15.54 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.653e-05/0.3638, allocations: 4 kB / 431.7 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.004e-05/0.3639, allocations: 4 kB / 431.7 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.594e-05/0.3639, allocations: 7.984 kB / 431.7 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000546/0.3644, allocations: 119.8 kB / 431.9 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.296e-05/0.3644, allocations: 7.75 kB / 431.9 MB, free: 15.4 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005287/0.365, allocations: 23.94 kB / 431.9 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.287e-05/0.365, allocations: 16 kB / 431.9 MB, free: 15.36 MB / 350.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.001548/0.3665, allocations: 0.9192 MB / 432.8 MB, free: 14.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003792/0.3669, allocations: 282.1 kB / 433.1 MB, free: 14.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001548/0.3685, allocations: 0.7746 MB / 433.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.727e-06/0.3685, allocations: 7.938 kB / 433.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.3685, allocations: 0 / 433.9 MB, free: 13.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.103e-05/0.3685, allocations: 7.984 kB / 433.9 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002191/0.3707, allocations: 1.444 MB / 435.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.929e-06/0.3707, allocations: 0 / 435.3 MB, free: 11.86 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004702/0.3712, allocations: 95.88 kB / 435.4 MB, free: 11.77 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003607/0.3715, allocations: 80.8 kB / 435.5 MB, free: 11.68 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.31e-05/0.3716, allocations: 12 kB / 435.5 MB, free: 11.67 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.000725/0.3723, allocations: 0.6383 MB / 436.2 MB, free: 11.01 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.052e-06/0.3723, allocations: 8.016 kB / 436.2 MB, free: 11 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002178/0.3745, allocations: 1.071 MB / 437.2 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.001261/0.3757, allocations: 430 kB / 437.7 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0003937/0.3761, allocations: 12 kB / 437.7 MB, free: 9.477 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006867/0.3768, allocations: 15.98 kB / 437.7 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.115e-05/0.3769, allocations: 32.38 kB / 437.7 MB, free: 9.43 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.98e-05/0.3769, allocations: 12 kB / 437.7 MB, free: 9.418 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.007904/0.3848, allocations: 3.974 MB / 441.7 MB, free: 5.453 MB / 350.1 MB Notification: Performance of sort global known variables: time 5.51e-07/0.3848, allocations: 0 / 441.7 MB, free: 5.453 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.001498/0.3863, allocations: 211.9 kB / 441.9 MB, free: 5.246 MB / 350.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.004572/0.3909, allocations: 1.922 MB / 443.8 MB, free: 3.289 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009296/0.3918, allocations: 369.1 kB / 444.2 MB, free: 2.93 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.969e-06/0.3918, allocations: 0 / 444.2 MB, free: 2.93 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005583/0.3924, allocations: 198.4 kB / 444.4 MB, free: 2.734 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002269/0.3947, allocations: 191.1 kB / 444.6 MB, free: 2.543 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.05339/0.4481, allocations: 19.36 MB / 463.9 MB, free: 15 MB / 382.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.002565/0.4506, allocations: 1.818 MB / 465.7 MB, free: 13.15 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0009929/0.4516, allocations: 271.6 kB / 466 MB, free: 12.88 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001811/0.4534, allocations: 0.9366 MB / 466.9 MB, free: 11.94 MB / 382.1 MB Notification: Performance of SimCode: time 1.082e-06/0.4534, allocations: 0 / 466.9 MB, free: 11.94 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1047/0.5581, allocations: 39.09 MB / 0.4942 GB, free: 4.672 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 19.07/19.63, allocations: 3.953 kB / 0.4942 GB, free: 4.668 MB / 414.1 MB " [Timeout remaining time 640] (rm -f Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; mkfifo Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe >> ../files/Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1_fmu --startTime=0 --stopTime=0.02 --stepSize=4e-06 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_SinglePhaseTransformerWithHysteresis1.fmu > Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_3.2.3_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/SinglePhaseTransformerWithHysteresis1/SinglePhaseTransformerWithHysteresis1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_3.2.3_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.6878306819126]