Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.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.001448/0.001448, allocations: 124.5 kB / 17.79 MB, free: 5.227 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.001595/0.001595, allocations: 207.2 kB / 20.75 MB, free: 2.273 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.556/1.556, allocations: 230.6 MB / 254.1 MB, free: 15.11 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+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.InductorWithHysteresis,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001494/0.001494, allocations: 47.94 kB / 373 MB, free: 10.21 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.109/0.1105, allocations: 53.34 MB / 426.3 MB, free: 4.785 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004513/0.115, allocations: 2.861 MB / 429.2 MB, free: 1.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002246/0.1172, allocations: 1.292 MB / 430.5 MB, free: 0.6094 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001898/0.1174, allocations: 8 kB / 430.5 MB, free: 0.6016 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002823/0.1177, allocations: 63.42 kB / 430.5 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005754/0.1183, allocations: 230.7 kB / 430.8 MB, free: 320 kB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003017/0.1186, allocations: 127.8 kB / 430.9 MB, free: 192 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.2227/0.3413, allocations: 460.1 kB / 431.3 MB, free: 7.297 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000266/0.3416, allocations: 62.12 kB / 431.4 MB, free: 7.289 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004911/0.3421, allocations: 198 kB / 431.6 MB, free: 7.281 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003084/0.3424, allocations: 222.3 kB / 431.8 MB, free: 7.246 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.152e-05/0.3425, allocations: 40.91 kB / 431.8 MB, free: 7.246 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0004174/0.3429, allocations: 171.3 kB / 432 MB, free: 7.246 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.888e-05/0.343, allocations: 95.2 kB / 432.1 MB, free: 7.234 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00019/0.3431, allocations: 183.6 kB / 432.3 MB, free: 7.188 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006681/0.3438, allocations: 0.5159 MB / 432.8 MB, free: 7.117 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.3438, allocations: 0.5625 kB / 432.8 MB, free: 7.117 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.713e-06/0.3438, allocations: 2.656 kB / 432.8 MB, free: 7.117 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.215e-06/0.3438, allocations: 0 / 432.8 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: 63 * Number of variables: 63 Notification: Performance of Generate backend data structure: time 0.001522/0.3453, allocations: 0.716 MB / 433.5 MB, free: 6.645 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.341e-05/0.3454, allocations: 9.969 kB / 433.5 MB, free: 6.645 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.626e-05/0.3455, allocations: 59.27 kB / 433.6 MB, free: 6.605 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0002218/0.3457, allocations: 48.67 kB / 433.6 MB, free: 6.59 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004744/0.3462, allocations: 330 kB / 434 MB, free: 6.359 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 7e-05/0.3463, allocations: 54.72 kB / 434 MB, free: 6.328 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001671/0.3464, allocations: 45.81 kB / 434.1 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005882/0.347, allocations: 322.4 kB / 434.4 MB, free: 6.258 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.64e-05/0.347, allocations: 0 / 434.4 MB, free: 6.258 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.308e-05/0.3471, allocations: 10.06 kB / 434.4 MB, free: 6.258 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.227e-06/0.3471, allocations: 5.531 kB / 434.4 MB, free: 6.258 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000726/0.3478, allocations: 306.4 kB / 434.7 MB, free: 6.258 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001784/0.3496, allocations: 1.163 MB / 435.8 MB, free: 5.684 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006232/0.3502, allocations: 280.7 kB / 436.1 MB, free: 5.637 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003277/0.3505, allocations: 156.9 kB / 436.3 MB, free: 5.621 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.073e-05/0.3506, allocations: 4.469 kB / 436.3 MB, free: 5.621 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.506e-05/0.3506, allocations: 37.06 kB / 436.3 MB, free: 5.582 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.633e-06/0.3506, allocations: 1.062 kB / 436.3 MB, free: 5.582 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.009928/0.3605, allocations: 2.419 MB / 438.7 MB, free: 5.051 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.387e-05/0.3606, allocations: 82.23 kB / 438.8 MB, free: 4.957 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003965/0.361, allocations: 292.7 kB / 439.1 MB, free: 4.852 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.162e-05/0.361, allocations: 34.27 kB / 439.1 MB, free: 4.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001007/0.3611, allocations: 170.7 kB / 439.3 MB, free: 4.703 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001144/0.3612, allocations: 153 kB / 439.5 MB, free: 4.605 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001698/0.3614, allocations: 76.14 kB / 439.5 MB, free: 4.566 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 9.207e-05/0.3615, allocations: 350.2 kB / 439.9 MB, free: 4.23 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0004108/0.3619, allocations: 158.4 kB / 440 MB, free: 4.176 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0005014/0.3624, allocations: 228.9 kB / 440.2 MB, free: 4.059 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008851/0.3633, allocations: 410.4 kB / 440.6 MB, free: 3.852 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.254e-06/0.3633, allocations: 0 / 440.6 MB, free: 3.852 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001297/0.3646, allocations: 491.8 kB / 441.1 MB, free: 3.656 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.888e-05/0.3646, allocations: 6 kB / 441.1 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.181e-05/0.3646, allocations: 2.25 kB / 441.1 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.625e-05/0.3646, allocations: 4.578 kB / 441.1 MB, free: 3.656 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000697/0.3653, allocations: 114.7 kB / 441.3 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.585e-05/0.3653, allocations: 6.812 kB / 441.3 MB, free: 3.652 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004515/0.3658, allocations: 36.33 kB / 441.3 MB, free: 3.641 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.902e-05/0.3658, allocations: 19.05 kB / 441.3 MB, free: 3.637 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * 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 (52): * Single equations (assignments): 52 * 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.0002142/0.3661, allocations: 156.3 kB / 441.5 MB, free: 3.492 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000113/0.3662, allocations: 31.06 kB / 441.5 MB, free: 3.477 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.002066/0.3682, allocations: 0.6495 MB / 442.1 MB, free: 3.219 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.448e-06/0.3683, allocations: 11.09 kB / 442.2 MB, free: 3.215 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.182e-06/0.3683, allocations: 0 / 442.2 MB, free: 3.215 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.669e-06/0.3683, allocations: 7.547 kB / 442.2 MB, free: 3.211 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003321/0.3716, allocations: 1.268 MB / 443.4 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.412e-06/0.3716, allocations: 1.438 kB / 443.4 MB, free: 2.578 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004818/0.3721, allocations: 93.12 kB / 443.5 MB, free: 2.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001674/0.3738, allocations: 277.7 kB / 443.8 MB, free: 2.516 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.67e-05/0.3738, allocations: 9.406 kB / 443.8 MB, free: 2.512 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.003708/0.3775, allocations: 2.441 MB / 446.2 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.915e-06/0.3775, allocations: 0.875 kB / 446.2 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002336/0.3798, allocations: 1.011 MB / 447.3 MB, free: 76 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002524/0.3801, allocations: 147.6 kB / 447.4 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.969e-05/0.3802, allocations: 9.688 kB / 447.4 MB, free: 15.94 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004506/0.3806, allocations: 26.22 kB / 447.4 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001253/0.3807, allocations: 35.25 kB / 447.5 MB, free: 15.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.452e-05/0.3808, allocations: 15.64 kB / 447.5 MB, free: 15.92 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002678/0.381, allocations: 212.9 kB / 447.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.381, allocations: 4 kB / 447.7 MB, free: 15.79 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006522/0.3817, allocations: 119.6 kB / 447.8 MB, free: 15.77 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 4 (winding.i,core.Hstat,core.B,core.MagRel) * 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 (40): * Single equations (assignments): 39 * 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,8)} Notification: Performance of Backend phase and start with SimCode phase: time 0.003003/0.3847, allocations: 1.595 MB / 449.4 MB, free: 14.72 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.001088/0.3858, allocations: 409.2 kB / 449.8 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.006e-06/0.3858, allocations: 0 / 449.8 MB, free: 14.59 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0008067/0.3866, allocations: 367.4 kB / 450.2 MB, free: 14.4 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005289/0.3871, allocations: 38.2 kB / 450.2 MB, free: 14.38 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006652/0.3938, allocations: 3.867 MB / 454.1 MB, free: 11.96 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004914/0.3943, allocations: 0.794 MB / 454.9 MB, free: 11.25 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002352/0.3945, allocations: 43.08 kB / 454.9 MB, free: 11.24 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002607/0.3948, allocations: 121.5 kB / 455 MB, free: 11.16 MB / 366.1 MB Notification: Performance of SimCode: time 1.442e-06/0.3948, allocations: 0 / 455 MB, free: 11.16 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04289/0.4377, allocations: 9.759 MB / 464.8 MB, free: 7.215 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.33/12.77, allocations: 5.031 kB / 464.8 MB, free: 7.215 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.csv --start-time 0 --stop-time 0.02 --timeout 50 --relative-tolerance 0.0001 --interface-type ModelExchange --solver CVode --output-interval 4e-06 Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.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: 15.52515048198984]