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.001646/0.001646, allocations: 108.6 kB / 21.22 MB, free: 0.7422 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.002056/0.002056, allocations: 187.7 kB / 24.5 MB, free: 4.152 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.396/1.396, allocations: 225.6 MB / 253.3 MB, free: 13.04 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.001487/0.001487, allocations: 51.91 kB / 371.2 MB, free: 9.855 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2728/0.2743, allocations: 52.18 MB / 423.4 MB, free: 14.77 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.SinglePhaseTransformerWithHysteresis1): time 0.005348/0.2796, allocations: 3.467 MB / 426.9 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002682/0.2823, allocations: 1.465 MB / 428.3 MB, free: 9.812 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002942/0.2826, allocations: 7.938 kB / 428.3 MB, free: 9.805 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.003131/0.2857, allocations: 2.659 MB / 431 MB, free: 7.141 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007243/0.2865, allocations: 182.7 kB / 431.2 MB, free: 6.961 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009205/0.2874, allocations: 294.6 kB / 431.5 MB, free: 6.676 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.002594/0.29, allocations: 1.805 MB / 433.3 MB, free: 4.867 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002562/0.2902, allocations: 95.69 kB / 433.4 MB, free: 4.766 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005191/0.2907, allocations: 321 kB / 433.7 MB, free: 4.453 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004804/0.2912, allocations: 350.8 kB / 434 MB, free: 4.109 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 8.945e-05/0.2913, allocations: 44 kB / 434.1 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002209/0.2915, allocations: 83.97 kB / 434.2 MB, free: 3.984 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0006823/0.2922, allocations: 0.8491 MB / 435 MB, free: 3.133 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0008764/0.2931, allocations: 0.9385 MB / 435.9 MB, free: 2.188 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.003013/0.2961, allocations: 2.63 MB / 438.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.719e-06/0.2961, allocations: 0 / 438.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.204e-06/0.2961, allocations: 0 / 438.6 MB, free: 15.55 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.41e-05/0.2961, allocations: 0 / 438.6 MB, free: 15.55 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.004334/0.3005, allocations: 2.828 MB / 441.4 MB, free: 12.67 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.678e-05/0.3005, allocations: 12.03 kB / 441.4 MB, free: 12.66 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.555e-05/0.3005, allocations: 13.19 kB / 441.4 MB, free: 12.65 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.499e-05/0.3006, allocations: 74.72 kB / 441.5 MB, free: 12.57 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0003694/0.301, allocations: 295 kB / 441.8 MB, free: 12.28 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00262/0.3036, allocations: 1.786 MB / 443.6 MB, free: 10.45 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001086/0.3037, allocations: 114.2 kB / 443.7 MB, free: 10.32 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001598/0.3039, allocations: 47.98 kB / 443.7 MB, free: 10.28 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000722/0.3046, allocations: 395 kB / 444.1 MB, free: 9.871 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.543e-05/0.3046, allocations: 0 / 444.1 MB, free: 9.871 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.843e-05/0.3047, allocations: 16 kB / 444.1 MB, free: 9.855 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.013e-05/0.3047, allocations: 8 kB / 444.1 MB, free: 9.848 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007121/0.3054, allocations: 331.7 kB / 444.5 MB, free: 9.527 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.004306/0.3097, allocations: 2.861 MB / 447.3 MB, free: 6.566 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006484/0.3103, allocations: 309.4 kB / 447.6 MB, free: 6.25 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003171/0.3107, allocations: 162.2 kB / 447.8 MB, free: 6.086 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.953e-05/0.3107, allocations: 11.92 kB / 447.8 MB, free: 6.074 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.213e-05/0.3107, allocations: 42.42 kB / 447.8 MB, free: 6.023 MB / 350.1 MB Notification: Performance of pre-optimization done (n=37): time 1.603e-06/0.3107, allocations: 0 / 447.8 MB, free: 6.023 MB / 350.1 MB Notification: Performance of matching and sorting (n=48): time 0.004883/0.3156, allocations: 2.376 MB / 450.2 MB, free: 3.602 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.571e-05/0.3157, allocations: 85.55 kB / 450.3 MB, free: 3.5 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.006344/0.322, allocations: 5.431 MB / 455.7 MB, free: 14.07 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 7.81e-05/0.3221, allocations: 37.73 kB / 455.8 MB, free: 14.02 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.001164/0.3233, allocations: 1.211 MB / 457 MB, free: 12.8 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001638/0.3234, allocations: 170.5 kB / 457.1 MB, free: 12.64 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001518/0.3236, allocations: 98.06 kB / 457.2 MB, free: 12.54 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000142/0.3237, allocations: 325.9 kB / 457.6 MB, free: 12.21 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003341/0.324, allocations: 140.9 kB / 457.7 MB, free: 12.07 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003833/0.3244, allocations: 225.1 kB / 457.9 MB, free: 11.83 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0007101/0.3251, allocations: 380.3 kB / 458.3 MB, free: 11.43 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.094e-06/0.3251, allocations: 0 / 458.3 MB, free: 11.43 MB / 366.1 MB Notification: Performance of matching and sorting (n=62) (initialization): time 0.00125/0.3264, allocations: 0.6972 MB / 459 MB, free: 10.72 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.3264, allocations: 15.22 kB / 459 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.392e-06/0.3264, allocations: 0 / 459 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.621e-05/0.3264, allocations: 4 kB / 459 MB, free: 10.71 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0004985/0.3269, allocations: 119.9 kB / 459.1 MB, free: 10.59 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.084e-05/0.3269, allocations: 8.188 kB / 459.1 MB, free: 10.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004034/0.3273, allocations: 23.92 kB / 459.1 MB, free: 10.56 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.419e-05/0.3274, allocations: 20 kB / 459.2 MB, free: 10.54 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.001019/0.3284, allocations: 0.9192 MB / 460.1 MB, free: 9.609 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003294/0.3287, allocations: 282.1 kB / 460.4 MB, free: 9.332 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001436/0.3302, allocations: 0.7902 MB / 461.2 MB, free: 8.531 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.332e-06/0.3302, allocations: 4 kB / 461.2 MB, free: 8.527 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.642e-06/0.3302, allocations: 4 kB / 461.2 MB, free: 8.523 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.3302, allocations: 3.984 kB / 461.2 MB, free: 8.52 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001661/0.3318, allocations: 1.444 MB / 462.6 MB, free: 7.031 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.495e-06/0.3319, allocations: 0 / 462.6 MB, free: 7.031 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004435/0.3323, allocations: 95.88 kB / 462.7 MB, free: 6.938 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.0003585/0.3327, allocations: 96.78 kB / 462.8 MB, free: 6.84 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.129e-05/0.3327, allocations: 11.98 kB / 462.8 MB, free: 6.828 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.0005736/0.3333, allocations: 0.6343 MB / 463.4 MB, free: 6.168 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.152e-06/0.3333, allocations: 0 / 463.4 MB, free: 6.168 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001734/0.335, allocations: 1.086 MB / 464.5 MB, free: 5.059 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0007845/0.3358, allocations: 430 kB / 464.9 MB, free: 4.637 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001628/0.3359, allocations: 16 kB / 465 MB, free: 4.621 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004342/0.3364, allocations: 15.98 kB / 465 MB, free: 4.605 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.679e-05/0.3365, allocations: 32.38 kB / 465 MB, free: 4.574 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.721e-05/0.3365, allocations: 12 kB / 465 MB, free: 4.562 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.004669/0.3411, allocations: 3.977 MB / 469 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3411, allocations: 0 / 469 MB, free: 0.5938 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007386/0.3419, allocations: 211.8 kB / 469.2 MB, free: 396 kB / 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.0034/0.3453, allocations: 1.944 MB / 471.2 MB, free: 14.57 MB / 382.1 MB Notification: Performance of simCode: created initialization part: time 0.000879/0.3462, allocations: 356.9 kB / 471.5 MB, free: 14.21 MB / 382.1 MB Notification: Performance of simCode: created event and clocks part: time 2.374e-06/0.3462, allocations: 0 / 471.5 MB, free: 14.21 MB / 382.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004592/0.3466, allocations: 210.9 kB / 471.7 MB, free: 14.01 MB / 382.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001041/0.3477, allocations: 184.4 kB / 471.9 MB, free: 13.83 MB / 382.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.03878/0.3864, allocations: 19.36 MB / 491.2 MB, free: 10.3 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.001809/0.3883, allocations: 1.818 MB / 493.1 MB, free: 8.449 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 0.0006646/0.3889, allocations: 279.6 kB / 493.3 MB, free: 8.172 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.001305/0.3902, allocations: 0.9288 MB / 494.3 MB, free: 7.242 MB / 398.1 MB Notification: Performance of SimCode: time 8.82e-07/0.3902, allocations: 0 / 494.3 MB, free: 7.242 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.08333/0.4736, allocations: 39.12 MB / 0.5209 GB, free: 296 kB / 430.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 17.34/17.81, allocations: 14.44 kB / 0.5209 GB, free: 284 kB / 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.605248588020913]