Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.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.001242/0.001242, 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.001305/0.001305, allocations: 188.4 kB / 24.49 MB, free: 3.957 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.374/1.374, 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.InductorWithHysteresis,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001441/0.001441, allocations: 39.94 kB / 371.2 MB, free: 9.73 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2578/0.2593, allocations: 52.19 MB / 423.4 MB, free: 14.44 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.00408/0.2634, allocations: 2.671 MB / 426 MB, free: 11.76 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001783/0.2651, allocations: 1.133 MB / 427.2 MB, free: 10.62 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001342/0.2653, allocations: 7.938 kB / 427.2 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002401/0.2655, allocations: 63.42 kB / 427.2 MB, free: 10.55 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005144/0.266, allocations: 230.7 kB / 427.5 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002417/0.2663, allocations: 115.8 kB / 427.6 MB, free: 10.21 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004681/0.2667, allocations: 471 kB / 428 MB, free: 9.742 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000159/0.2669, allocations: 64.84 kB / 428.1 MB, free: 9.68 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002443/0.2671, allocations: 187.4 kB / 428.3 MB, free: 9.496 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003022/0.2674, allocations: 223.1 kB / 428.5 MB, free: 9.277 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.301e-05/0.2675, allocations: 40 kB / 428.5 MB, free: 9.238 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002699/0.2678, allocations: 163.9 kB / 428.7 MB, free: 9.078 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.381e-05/0.2679, allocations: 87.72 kB / 428.8 MB, free: 8.992 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001631/0.268, allocations: 163.3 kB / 428.9 MB, free: 8.832 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005963/0.2686, allocations: 0.5059 MB / 429.4 MB, free: 8.324 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2686, allocations: 4 kB / 429.4 MB, free: 8.32 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.523e-06/0.2686, allocations: 0 / 429.4 MB, free: 8.32 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.273e-05/0.2687, allocations: 0 / 429.4 MB, free: 8.32 MB / 334.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.001589/0.2702, allocations: 0.6336 MB / 430.1 MB, free: 7.656 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.63e-05/0.2703, allocations: 12.03 kB / 430.1 MB, free: 7.645 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.296e-05/0.2703, allocations: 12.69 kB / 430.1 MB, free: 7.629 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.892e-05/0.2704, allocations: 66.66 kB / 430.2 MB, free: 7.555 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.527e-05/0.2705, allocations: 40.7 kB / 430.2 MB, free: 7.516 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004876/0.2709, allocations: 267.4 kB / 430.5 MB, free: 7.227 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001001/0.271, allocations: 102.3 kB / 430.6 MB, free: 7.109 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001584/0.2712, allocations: 40.11 kB / 430.6 MB, free: 7.07 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006332/0.2718, allocations: 347.2 kB / 430.9 MB, free: 6.715 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.353e-05/0.2718, allocations: 11.88 kB / 431 MB, free: 6.703 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.159e-05/0.2719, allocations: 8 kB / 431 MB, free: 6.695 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.108e-06/0.2719, allocations: 8 kB / 431 MB, free: 6.688 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006596/0.2725, allocations: 305.7 kB / 431.3 MB, free: 6.391 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001666/0.2742, allocations: 1.042 MB / 432.3 MB, free: 5.277 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006116/0.2748, allocations: 281 kB / 432.6 MB, free: 4.984 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003148/0.2751, allocations: 153.6 kB / 432.7 MB, free: 4.828 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.231e-05/0.2752, allocations: 4 kB / 432.7 MB, free: 4.824 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.617e-05/0.2752, allocations: 42.5 kB / 432.8 MB, free: 4.773 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.823e-06/0.2752, allocations: 0 / 432.8 MB, free: 4.773 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.009213/0.2844, allocations: 2.266 MB / 435.1 MB, free: 2.469 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.554e-05/0.2845, allocations: 89.05 kB / 435.1 MB, free: 2.363 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003383/0.2848, allocations: 289.1 kB / 435.4 MB, free: 2.074 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.024e-05/0.2848, allocations: 33.7 kB / 435.5 MB, free: 2.035 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001167/0.285, allocations: 168.6 kB / 435.6 MB, free: 1.863 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001283/0.2851, allocations: 154.7 kB / 435.8 MB, free: 1.711 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001468/0.2852, allocations: 78.11 kB / 435.8 MB, free: 1.625 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001459/0.2854, allocations: 342.8 kB / 436.2 MB, free: 1.281 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003872/0.2858, allocations: 164.8 kB / 436.3 MB, free: 1.121 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004278/0.2862, allocations: 226.7 kB / 436.6 MB, free: 0.8828 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008278/0.287, allocations: 407.5 kB / 437 MB, free: 476 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.663e-06/0.287, allocations: 0 / 437 MB, free: 476 kB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001011/0.288, allocations: 492.8 kB / 437.4 MB, free: 15.98 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.758e-05/0.288, allocations: 4 kB / 437.4 MB, free: 15.97 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.074e-05/0.2881, allocations: 7.984 kB / 437.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.76e-05/0.2881, allocations: 4 kB / 437.5 MB, free: 15.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005863/0.2887, allocations: 111.9 kB / 437.6 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.2887, allocations: 7.938 kB / 437.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003743/0.289, allocations: 36 kB / 437.6 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.305e-05/0.2891, allocations: 12 kB / 437.6 MB, free: 15.8 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.0001782/0.2893, allocations: 157.7 kB / 437.8 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000148/0.2894, allocations: 35.81 kB / 437.8 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001807/0.2912, allocations: 0.6485 MB / 438.5 MB, free: 14.94 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.659e-06/0.2912, allocations: 11.94 kB / 438.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.488e-06/0.2912, allocations: 0 / 438.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.119e-06/0.2912, allocations: 0 / 438.5 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00302/0.2943, allocations: 1.169 MB / 439.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.2943, allocations: 0 / 439.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004431/0.2947, allocations: 91.88 kB / 439.7 MB, free: 13.62 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001575/0.2963, allocations: 276.4 kB / 440 MB, free: 13.35 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.797e-05/0.2963, allocations: 15.98 kB / 440 MB, free: 13.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004004/0.3003, allocations: 2.297 MB / 442.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.734e-06/0.3003, allocations: 0 / 442.3 MB, free: 10.91 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002273/0.3026, allocations: 1.011 MB / 443.3 MB, free: 9.883 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001725/0.3028, allocations: 63.8 kB / 443.4 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.179e-05/0.3028, allocations: 12 kB / 443.4 MB, free: 9.809 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004736/0.3033, allocations: 35.97 kB / 443.4 MB, free: 9.773 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001194/0.3034, allocations: 36.36 kB / 443.5 MB, free: 9.738 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.477e-05/0.3035, allocations: 12 kB / 443.5 MB, free: 9.727 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002334/0.3037, allocations: 216.5 kB / 443.7 MB, free: 9.512 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3037, allocations: 0 / 443.7 MB, free: 9.512 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005413/0.3042, allocations: 115.9 kB / 443.8 MB, free: 9.398 MB / 350.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.002661/0.3069, allocations: 1.586 MB / 445.4 MB, free: 7.781 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0009372/0.3078, allocations: 418.4 kB / 445.8 MB, free: 7.375 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.166e-06/0.3078, allocations: 0 / 445.8 MB, free: 7.375 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00068/0.3085, allocations: 373 kB / 446.2 MB, free: 6.996 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004708/0.309, allocations: 44.31 kB / 446.2 MB, free: 6.953 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005572/0.3145, allocations: 3.858 MB / 450.1 MB, free: 2.965 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001781/0.3147, allocations: 187.1 kB / 450.2 MB, free: 2.754 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001973/0.3149, allocations: 46.94 kB / 450.3 MB, free: 2.711 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002298/0.3152, allocations: 119.4 kB / 450.4 MB, free: 2.594 MB / 350.1 MB Notification: Performance of SimCode: time 6.12e-07/0.3152, allocations: 0 / 450.4 MB, free: 2.594 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03498/0.3501, allocations: 9.765 MB / 460.2 MB, free: 9.031 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.47/12.82, allocations: 15.12 kB / 460.2 MB, free: 9.02 MB / 366.1 MB " [Timeout remaining time 647] (rm -f Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; mkfifo Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe >> ../files/Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis_fmu --startTime=0 --stopTime=0.02 --stepSize=4e-06 --timeout=50 --tolerance=0.0001 Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis.fmu > Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Magnetic/FluxTubes/Examples/Hysteresis/InductorWithHysteresis/InductorWithHysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.3607347169891]