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.001369/0.001369, allocations: 112 kB / 20.43 MB, free: 1.309 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.001722/0.001722, allocations: 189.3 kB / 23.72 MB, free: 4.559 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.398/1.398, allocations: 225.6 MB / 252.5 MB, free: 13.03 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis,fileNamePrefix="Modelica_4_0_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00155/0.00155, allocations: 43.92 kB / 370.4 MB, free: 9.852 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3041/0.3056, allocations: 52.2 MB / 422.6 MB, free: 14.59 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.004464/0.3101, allocations: 2.852 MB / 425.5 MB, free: 11.72 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001991/0.3121, allocations: 1.238 MB / 426.7 MB, free: 10.48 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001533/0.3122, allocations: 4 kB / 426.7 MB, free: 10.47 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002972/0.3125, allocations: 71.36 kB / 426.8 MB, free: 10.4 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005483/0.3131, allocations: 230.7 kB / 427 MB, free: 10.18 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002654/0.3133, allocations: 115.8 kB / 427.1 MB, free: 10.06 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005724/0.3139, allocations: 471 kB / 427.6 MB, free: 9.598 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001694/0.3141, allocations: 53.89 kB / 427.7 MB, free: 9.547 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000286/0.3144, allocations: 191.4 kB / 427.8 MB, free: 9.359 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003316/0.3147, allocations: 223.1 kB / 428.1 MB, free: 9.141 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 7.059e-05/0.3148, allocations: 43.98 kB / 428.1 MB, free: 9.098 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003063/0.3151, allocations: 151.9 kB / 428.2 MB, free: 8.949 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.467e-05/0.3152, allocations: 103.7 kB / 428.4 MB, free: 8.848 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001866/0.3154, allocations: 183.2 kB / 428.5 MB, free: 8.668 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006697/0.316, allocations: 0.5091 MB / 429 MB, free: 8.16 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.388e-06/0.316, allocations: 0 / 429 MB, free: 8.16 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.947e-06/0.316, allocations: 4 kB / 429 MB, free: 8.156 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.458e-05/0.316, allocations: 0 / 429 MB, free: 8.156 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.001632/0.3177, allocations: 0.6375 MB / 429.7 MB, free: 7.488 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.025e-05/0.3177, allocations: 8.031 kB / 429.7 MB, free: 7.48 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.79e-05/0.3178, allocations: 62.72 kB / 429.7 MB, free: 7.41 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.303e-05/0.3179, allocations: 40.7 kB / 429.8 MB, free: 7.371 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000504/0.3184, allocations: 275.3 kB / 430.1 MB, free: 7.07 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001189/0.3185, allocations: 98.33 kB / 430.2 MB, free: 6.957 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001619/0.3187, allocations: 44.3 kB / 430.2 MB, free: 6.914 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006069/0.3193, allocations: 321.5 kB / 430.5 MB, free: 6.59 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.851e-05/0.3193, allocations: 4 kB / 430.5 MB, free: 6.586 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.051e-05/0.3193, allocations: 8 kB / 430.5 MB, free: 6.578 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.988e-06/0.3193, allocations: 8 kB / 430.5 MB, free: 6.57 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006585/0.32, allocations: 301.8 kB / 430.8 MB, free: 6.277 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001775/0.3218, allocations: 1.127 MB / 432 MB, free: 5.078 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000606/0.3224, allocations: 281.1 kB / 432.2 MB, free: 4.785 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003393/0.3227, allocations: 164.9 kB / 432.4 MB, free: 4.621 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.063e-05/0.3227, allocations: 7.938 kB / 432.4 MB, free: 4.613 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.949e-05/0.3228, allocations: 34.56 kB / 432.4 MB, free: 4.57 MB / 334.1 MB Notification: Performance of pre-optimization done (n=31): time 1.523e-06/0.3228, allocations: 3.938 kB / 432.4 MB, free: 4.566 MB / 334.1 MB Notification: Performance of matching and sorting (n=42): time 0.008949/0.3317, allocations: 2.269 MB / 434.7 MB, free: 2.262 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.355e-05/0.3318, allocations: 85.09 kB / 434.8 MB, free: 2.16 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000359/0.3322, allocations: 289.1 kB / 435.1 MB, free: 1.871 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.036e-05/0.3322, allocations: 37.7 kB / 435.1 MB, free: 1.828 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000126/0.3323, allocations: 168.6 kB / 435.3 MB, free: 1.656 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001318/0.3325, allocations: 154.7 kB / 435.4 MB, free: 1.504 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001368/0.3326, allocations: 78.11 kB / 435.5 MB, free: 1.418 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001502/0.3327, allocations: 338.8 kB / 435.8 MB, free: 1.078 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003846/0.3331, allocations: 164.8 kB / 436 MB, free: 0.918 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004765/0.3336, allocations: 238.6 kB / 436.2 MB, free: 0.668 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008093/0.3344, allocations: 403.6 kB / 436.6 MB, free: 260 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.372e-06/0.3344, allocations: 0 / 436.6 MB, free: 260 kB / 334.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001066/0.3355, allocations: 492.8 kB / 437.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.839e-05/0.3355, allocations: 4 kB / 437.1 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.3355, allocations: 4 kB / 437.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.3355, allocations: 0 / 437.1 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005978/0.3361, allocations: 120 kB / 437.2 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.979e-06/0.3361, allocations: 7.938 kB / 437.2 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003639/0.3365, allocations: 31.97 kB / 437.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.61e-05/0.3365, allocations: 16 kB / 437.3 MB, free: 15.58 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.000178/0.3367, allocations: 161.5 kB / 437.4 MB, free: 15.42 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.066e-05/0.3368, allocations: 35.81 kB / 437.5 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.001858/0.3387, allocations: 0.6447 MB / 438.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.203e-06/0.3387, allocations: 4 kB / 438.1 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.493e-06/0.3387, allocations: 4 kB / 438.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.151e-06/0.3387, allocations: 0 / 438.1 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003198/0.3419, allocations: 1.243 MB / 439.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.356e-06/0.3419, allocations: 4 kB / 439.4 MB, free: 13.43 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004443/0.3423, allocations: 87.88 kB / 439.5 MB, free: 13.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001564/0.3439, allocations: 272.5 kB / 439.7 MB, free: 13.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.838e-05/0.3439, allocations: 15.98 kB / 439.7 MB, free: 13.05 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004176/0.3481, allocations: 2.328 MB / 442.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.827e-06/0.3481, allocations: 4 kB / 442.1 MB, free: 10.6 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002314/0.3504, allocations: 1.019 MB / 443.1 MB, free: 9.562 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001697/0.3506, allocations: 63.75 kB / 443.2 MB, free: 9.5 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.788e-05/0.3506, allocations: 12 kB / 443.2 MB, free: 9.488 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004088/0.351, allocations: 27.98 kB / 443.2 MB, free: 9.461 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001184/0.3512, allocations: 36.36 kB / 443.2 MB, free: 9.426 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.347e-05/0.3512, allocations: 23.92 kB / 443.2 MB, free: 9.402 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002409/0.3514, allocations: 208.5 kB / 443.5 MB, free: 9.195 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3514, allocations: 0 / 443.5 MB, free: 9.195 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0005625/0.352, allocations: 123.9 kB / 443.6 MB, free: 9.074 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.002823/0.3548, allocations: 1.587 MB / 445.2 MB, free: 7.457 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.001055/0.3559, allocations: 418.1 kB / 445.6 MB, free: 7.051 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.354e-06/0.3559, allocations: 0 / 445.6 MB, free: 7.051 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007034/0.3566, allocations: 365.4 kB / 445.9 MB, free: 6.68 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004829/0.3571, allocations: 40.47 kB / 446 MB, free: 6.641 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00623/0.3633, allocations: 3.866 MB / 449.8 MB, free: 2.645 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005571/0.3639, allocations: 0.7892 MB / 450.6 MB, free: 1.824 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001877/0.364, allocations: 34.97 kB / 450.7 MB, free: 1.793 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002404/0.3643, allocations: 123.4 kB / 450.8 MB, free: 1.672 MB / 350.1 MB Notification: Performance of SimCode: time 6.32e-07/0.3643, allocations: 0 / 450.8 MB, free: 1.672 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04404/0.4083, allocations: 10.06 MB / 460.8 MB, free: 7.777 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.09/13.5, allocations: 0 / 460.8 MB, free: 7.777 MB / 366.1 MB " [Timeout remaining time 646] (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.97475978708826]