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.001312/0.001312, allocations: 113.1 kB / 20.43 MB, free: 1.457 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.001699/0.001699, allocations: 217.2 kB / 23.75 MB, free: 4.668 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.434/1.434, allocations: 230.6 MB / 257.5 MB, free: 7.98 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.001737/0.001737, allocations: 51.92 kB / 377.8 MB, free: 3.109 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3216/0.3233, allocations: 53.36 MB / 431.1 MB, free: 6.836 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis): time 0.005039/0.3283, allocations: 2.87 MB / 434 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002545/0.3309, allocations: 1.308 MB / 435.3 MB, free: 2.637 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002713/0.3312, allocations: 4 kB / 435.3 MB, free: 2.633 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003394/0.3315, allocations: 69.11 kB / 435.4 MB, free: 2.566 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006977/0.3322, allocations: 230.7 kB / 435.6 MB, free: 2.34 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003578/0.3326, allocations: 135.8 kB / 435.8 MB, free: 2.207 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006396/0.3332, allocations: 459.1 kB / 436.2 MB, free: 1.754 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001807/0.3334, allocations: 72.81 kB / 436.3 MB, free: 1.684 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003997/0.3338, allocations: 191.3 kB / 436.5 MB, free: 1.496 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004259/0.3342, allocations: 219.2 kB / 436.7 MB, free: 1.281 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001006/0.3343, allocations: 44 kB / 436.7 MB, free: 1.238 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003781/0.3347, allocations: 167.9 kB / 436.9 MB, free: 1.074 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001172/0.3348, allocations: 99.66 kB / 437 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002365/0.335, allocations: 179.2 kB / 437.2 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000702/0.3357, allocations: 0.5176 MB / 437.7 MB, free: 288 kB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.138e-06/0.3357, allocations: 0 / 437.7 MB, free: 288 kB / 334.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.3357, allocations: 0 / 437.7 MB, free: 288 kB / 334.1 MB Notification: Performance of Transformations before backend: time 1.237e-05/0.3358, allocations: 0 / 437.7 MB, free: 288 kB / 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.001707/0.3375, allocations: 0.6375 MB / 438.3 MB, free: 15.61 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.224e-05/0.3375, allocations: 16.03 kB / 438.3 MB, free: 15.6 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.587e-05/0.3376, allocations: 62.72 kB / 438.4 MB, free: 15.53 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001825/0.3378, allocations: 40.75 kB / 438.4 MB, free: 15.49 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005187/0.3383, allocations: 287.2 kB / 438.7 MB, free: 15.18 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001044/0.3384, allocations: 106.3 kB / 438.8 MB, free: 15.06 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 0.0001522/0.3385, allocations: 40.23 kB / 438.8 MB, free: 15.02 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006229/0.3392, allocations: 325.6 kB / 439.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.482e-05/0.3392, allocations: 0 / 439.2 MB, free: 14.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.167e-05/0.3392, allocations: 12 kB / 439.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.203e-05/0.3392, allocations: 4 kB / 439.2 MB, free: 14.68 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0006765/0.3399, allocations: 305.7 kB / 439.5 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00185/0.3417, allocations: 1.116 MB / 440.6 MB, free: 13.19 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006205/0.3424, allocations: 277 kB / 440.9 MB, free: 12.9 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003747/0.3427, allocations: 157.6 kB / 441 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.043e-05/0.3428, allocations: 4 kB / 441 MB, free: 12.74 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.786e-05/0.3428, allocations: 42.56 kB / 441.1 MB, free: 12.69 MB / 350.1 MB Notification: Performance of pre-optimization done (n=31): time 1.513e-06/0.3428, allocations: 0 / 441.1 MB, free: 12.69 MB / 350.1 MB Notification: Performance of matching and sorting (n=42): time 0.009291/0.3521, allocations: 2.28 MB / 443.3 MB, free: 10.37 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.764e-05/0.3522, allocations: 89.05 kB / 443.4 MB, free: 10.26 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003839/0.3526, allocations: 293 kB / 443.7 MB, free: 9.969 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.213e-05/0.3526, allocations: 33.69 kB / 443.8 MB, free: 9.93 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001418/0.3527, allocations: 168.7 kB / 443.9 MB, free: 9.758 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001397/0.3529, allocations: 158.6 kB / 444.1 MB, free: 9.602 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001527/0.353, allocations: 82.09 kB / 444.2 MB, free: 9.512 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001775/0.3532, allocations: 342.8 kB / 444.5 MB, free: 9.168 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0003912/0.3536, allocations: 160.8 kB / 444.6 MB, free: 9.012 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0004432/0.3541, allocations: 230.7 kB / 444.9 MB, free: 8.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008521/0.3549, allocations: 403.8 kB / 445.3 MB, free: 8.355 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.014e-06/0.3549, allocations: 0 / 445.3 MB, free: 8.355 MB / 350.1 MB Notification: Performance of matching and sorting (n=52) (initialization): time 0.001025/0.3559, allocations: 484.7 kB / 445.7 MB, free: 7.875 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.125e-05/0.356, allocations: 7.984 kB / 445.7 MB, free: 7.867 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.799e-06/0.356, allocations: 4 kB / 445.7 MB, free: 7.863 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.841e-05/0.356, allocations: 4 kB / 445.8 MB, free: 7.859 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006146/0.3566, allocations: 120 kB / 445.9 MB, free: 7.742 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.303e-05/0.3566, allocations: 4 kB / 445.9 MB, free: 7.738 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003806/0.357, allocations: 31.98 kB / 445.9 MB, free: 7.707 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.574e-05/0.357, allocations: 15.98 kB / 445.9 MB, free: 7.691 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.0001915/0.3572, allocations: 153.7 kB / 446.1 MB, free: 7.531 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.69e-05/0.3573, allocations: 39.73 kB / 446.1 MB, free: 7.492 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0019/0.3592, allocations: 0.6525 MB / 446.8 MB, free: 6.836 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.398e-06/0.3592, allocations: 8 kB / 446.8 MB, free: 6.828 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.39e-06/0.3592, allocations: 0 / 446.8 MB, free: 6.828 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.282e-06/0.3592, allocations: 0 / 446.8 MB, free: 6.828 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.003208/0.3624, allocations: 1.247 MB / 448 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.316e-06/0.3624, allocations: 0 / 448 MB, free: 5.527 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004477/0.3629, allocations: 91.88 kB / 448.1 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 0.001561/0.3645, allocations: 260.6 kB / 448.4 MB, free: 5.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.662e-05/0.3645, allocations: 15.98 kB / 448.4 MB, free: 5.164 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 0.004276/0.3688, allocations: 2.344 MB / 450.7 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.3688, allocations: 96 / 450.7 MB, free: 2.695 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002338/0.3711, allocations: 1.019 MB / 451.7 MB, free: 1.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000197/0.3713, allocations: 71.72 kB / 451.8 MB, free: 1.59 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.88e-05/0.3714, allocations: 12 kB / 451.8 MB, free: 1.578 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000454/0.3718, allocations: 27.98 kB / 451.8 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000124/0.372, allocations: 40.36 kB / 451.9 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.302e-05/0.372, allocations: 12 kB / 451.9 MB, free: 1.5 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002613/0.3722, allocations: 216.5 kB / 452.1 MB, free: 1.285 MB / 350.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3722, allocations: 0 / 452.1 MB, free: 1.285 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000588/0.3728, allocations: 115.9 kB / 452.2 MB, free: 1.172 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.002914/0.3757, allocations: 1.59 MB / 453.8 MB, free: 15.55 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0009977/0.3767, allocations: 410 kB / 454.2 MB, free: 15.15 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.316e-06/0.3767, allocations: 0 / 454.2 MB, free: 15.15 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000725/0.3775, allocations: 377.2 kB / 454.6 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004967/0.378, allocations: 38.48 kB / 454.6 MB, free: 14.74 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.006367/0.3843, allocations: 3.871 MB / 458.5 MB, free: 10.74 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000464/0.3848, allocations: 0.797 MB / 459.3 MB, free: 9.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0002078/0.385, allocations: 38.95 kB / 459.3 MB, free: 9.875 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002377/0.3852, allocations: 115.4 kB / 459.4 MB, free: 9.762 MB / 366.1 MB Notification: Performance of SimCode: time 6.41e-07/0.3852, allocations: 0 / 459.4 MB, free: 9.762 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04591/0.4312, allocations: 10.09 MB / 469.5 MB, free: 15.84 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 13.41/13.84, allocations: 3.938 kB / 469.5 MB, free: 15.83 MB / 382.1 MB " [Timeout remaining time 646] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Magnetic.FluxTubes.Examples.Hysteresis.InductorWithHysteresis_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Magnetic_FluxTubes_Examples_Hysteresis_InductorWithHysteresis_fmu --startTime=0 --stopTime=0.02 --stepSize=4e-06 --timeout=50 --tolerance=0.0001 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.mat","/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: 16.429753359872848]