Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.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.001336/0.001336, allocations: 115.6 kB / 20.43 MB, free: 1.465 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.001596/0.001596, allocations: 212 kB / 23.74 MB, free: 4.688 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.489/1.489, allocations: 230.6 MB / 257.5 MB, free: 8.02 MB / 206.1 MB " [Timeout remaining time 178] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo): time 0.2698/0.2698, allocations: 44.92 MB / 358.8 MB, free: 6.305 MB / 286.1 MB " [Timeout remaining time 179] Using package ModelicaTest with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaTest 4.0.0+maint.om/package.mo) 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(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(ModelicaTest.Blocks.Hysteresis,fileNamePrefix="ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: ModelicaTest requested package Modelica of version 4.0.0. Modelica 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.002045/0.002045, allocations: 63.91 kB / 0.4931 GB, free: 10.75 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3361/0.3382, allocations: 65.47 MB / 0.557 GB, free: 7.527 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.003024/0.3412, allocations: 1.474 MB / 0.5584 GB, free: 6.305 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009181/0.3421, allocations: 494.7 kB / 0.5589 GB, free: 5.816 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.567e-05/0.3422, allocations: 4 kB / 0.5589 GB, free: 5.812 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.68e-05/0.3422, allocations: 0 / 0.5589 GB, free: 5.812 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 7.466e-05/0.3423, allocations: 7.875 kB / 0.5589 GB, free: 5.805 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002499/0.3425, allocations: 27.95 kB / 0.559 GB, free: 5.777 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001119/0.3426, allocations: 39.8 kB / 0.559 GB, free: 5.738 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.661e-05/0.3427, allocations: 11.98 kB / 0.559 GB, free: 5.727 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001165/0.3428, allocations: 15.98 kB / 0.559 GB, free: 5.711 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 6.222e-05/0.3429, allocations: 19.92 kB / 0.559 GB, free: 5.691 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.127e-05/0.3429, allocations: 4 kB / 0.559 GB, free: 5.688 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.712e-05/0.3429, allocations: 4 kB / 0.5591 GB, free: 5.684 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.431e-05/0.343, allocations: 19.86 kB / 0.5591 GB, free: 5.664 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.734e-05/0.343, allocations: 11.94 kB / 0.5591 GB, free: 5.652 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001164/0.3431, allocations: 41.64 kB / 0.5591 GB, free: 5.613 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.356e-06/0.3431, allocations: 0 / 0.5591 GB, free: 5.613 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.854e-06/0.3431, allocations: 0 / 0.5591 GB, free: 5.613 MB / 398.1 MB Notification: Performance of Transformations before backend: time 7.565e-06/0.3431, allocations: 4 kB / 0.5591 GB, free: 5.609 MB / 398.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 3 * Number of variables: 3 Notification: Performance of Generate backend data structure: time 0.0004754/0.3436, allocations: 278.2 kB / 0.5594 GB, free: 5.309 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.031e-05/0.3436, allocations: 15.97 kB / 0.5594 GB, free: 5.293 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.072e-05/0.3437, allocations: 30.75 kB / 0.5594 GB, free: 5.254 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001405/0.3438, allocations: 12.92 kB / 0.5594 GB, free: 5.242 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002016/0.344, allocations: 118.5 kB / 0.5596 GB, free: 5.102 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.05e-05/0.344, allocations: 384 / 0.5596 GB, free: 5.102 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.185e-05/0.344, allocations: 4.375 kB / 0.5596 GB, free: 5.098 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001665/0.3442, allocations: 67.45 kB / 0.5596 GB, free: 5.02 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.167e-06/0.3442, allocations: 0 / 0.5596 GB, free: 5.02 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.819e-06/0.3442, allocations: 0 / 0.5596 GB, free: 5.02 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.863e-06/0.3442, allocations: 4 kB / 0.5596 GB, free: 5.016 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.825e-05/0.3443, allocations: 15.98 kB / 0.5596 GB, free: 5 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003949/0.3447, allocations: 239.9 kB / 0.5599 GB, free: 4.723 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001/0.3448, allocations: 34.56 kB / 0.5599 GB, free: 4.68 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.163e-05/0.3449, allocations: 24.84 kB / 0.5599 GB, free: 4.652 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.825e-05/0.3449, allocations: 3.984 kB / 0.5599 GB, free: 4.648 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.101e-05/0.3449, allocations: 34.5 kB / 0.56 GB, free: 4.605 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.042e-06/0.3449, allocations: 0 / 0.56 GB, free: 4.605 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002742/0.3452, allocations: 57.67 kB / 0.56 GB, free: 4.543 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.27e-05/0.3453, allocations: 85.23 kB / 0.5601 GB, free: 4.441 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.66e-05/0.3454, allocations: 109.8 kB / 0.5602 GB, free: 4.324 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.364e-05/0.3454, allocations: 29.7 kB / 0.5602 GB, free: 4.289 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.888e-05/0.3454, allocations: 84.14 kB / 0.5603 GB, free: 4.203 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.516e-05/0.3455, allocations: 3.953 kB / 0.5603 GB, free: 4.199 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.854e-05/0.3455, allocations: 25.64 kB / 0.5603 GB, free: 4.168 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001453/0.3456, allocations: 318.8 kB / 0.5607 GB, free: 3.848 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.162e-05/0.3457, allocations: 11.98 kB / 0.5607 GB, free: 3.836 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.082e-05/0.3457, allocations: 25.72 kB / 0.5607 GB, free: 3.805 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 7.79e-05/0.3458, allocations: 24.84 kB / 0.5607 GB, free: 3.777 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.432e-06/0.3458, allocations: 0 / 0.5607 GB, free: 3.777 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001439/0.346, allocations: 61.67 kB / 0.5608 GB, free: 3.711 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.422e-05/0.346, allocations: 4 kB / 0.5608 GB, free: 3.707 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.737e-06/0.346, allocations: 4 kB / 0.5608 GB, free: 3.703 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.313e-05/0.346, allocations: 0 / 0.5608 GB, free: 3.703 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.854e-05/0.3461, allocations: 11.92 kB / 0.5608 GB, free: 3.691 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.759e-06/0.3461, allocations: 8.031 kB / 0.5608 GB, free: 3.684 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.785e-05/0.3461, allocations: 11.89 kB / 0.5608 GB, free: 3.672 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.86e-06/0.3461, allocations: 144 / 0.5608 GB, free: 3.672 MB / 398.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 2 (hysteresis.y,$PRE.hysteresis.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (3): * Single equations (assignments): 3 * 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 8.687e-05/0.3462, allocations: 117.8 kB / 0.5609 GB, free: 3.547 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.94e-05/0.3463, allocations: 7.984 kB / 0.5609 GB, free: 3.539 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.358e-05/0.3463, allocations: 7.625 kB / 0.5609 GB, free: 3.527 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.162e-06/0.3463, allocations: 0 / 0.5609 GB, free: 3.527 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.246e-06/0.3463, allocations: 0 / 0.5609 GB, free: 3.527 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.843e-06/0.3463, allocations: 4 kB / 0.5609 GB, free: 3.523 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001713/0.3465, allocations: 140.7 kB / 0.5611 GB, free: 3.344 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.52e-07/0.3465, allocations: 0 / 0.5611 GB, free: 3.344 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.81e-05/0.3465, allocations: 4 kB / 0.5611 GB, free: 3.34 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.643e-06/0.3465, allocations: 0 / 0.5611 GB, free: 3.34 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.728e-06/0.3465, allocations: 4.359 kB / 0.5611 GB, free: 3.336 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.062e-06/0.3465, allocations: 0 / 0.5611 GB, free: 3.336 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.082e-06/0.3465, allocations: 0 / 0.5611 GB, free: 3.336 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001943/0.3467, allocations: 159.4 kB / 0.5612 GB, free: 3.164 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.635e-06/0.3467, allocations: 3.938 kB / 0.5612 GB, free: 3.16 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.984e-05/0.3467, allocations: 3.984 kB / 0.5612 GB, free: 3.156 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.411e-05/0.3468, allocations: 8 kB / 0.5612 GB, free: 3.148 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.398e-05/0.3469, allocations: 7.984 kB / 0.5613 GB, free: 3.141 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.527e-06/0.3469, allocations: 0 / 0.5613 GB, free: 3.141 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.62e-05/0.3469, allocations: 91.27 kB / 0.5613 GB, free: 3.051 MB / 398.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3469, allocations: 0 / 0.5613 GB, free: 3.051 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002224/0.3471, allocations: 12.03 kB / 0.5614 GB, free: 3.039 MB / 398.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (hysteresis.y) * Number of discrete states: 1 (hysteresis.y) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (2): * Single equations (assignments): 2 * 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 Backend phase and start with SimCode phase: time 0.0005229/0.3477, allocations: 0.6772 MB / 0.562 GB, free: 2.336 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001651/0.3478, allocations: 27.92 kB / 0.562 GB, free: 2.309 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.3478, allocations: 4.031 kB / 0.562 GB, free: 2.305 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 4.88e-05/0.3479, allocations: 15.98 kB / 0.5621 GB, free: 2.289 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002188/0.3481, allocations: 6.812 kB / 0.5621 GB, free: 2.285 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001389/0.3495, allocations: 1.266 MB / 0.5633 GB, free: 0.9414 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003652/0.3499, allocations: 0.6807 MB / 0.564 GB, free: 240 kB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.253e-05/0.3499, allocations: 7.922 kB / 0.564 GB, free: 232 kB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.687e-05/0.3499, allocations: 19.44 kB / 0.564 GB, free: 212 kB / 398.1 MB Notification: Performance of SimCode: time 3.2e-07/0.3499, allocations: 0 / 0.564 GB, free: 212 kB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02556/0.3755, allocations: 1.653 MB / 0.5656 GB, free: 14.68 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.36/11.74, allocations: 5.391 kB / 0.5656 GB, free: 14.68 MB / 414.1 MB " [Timeout remaining time 648] (rm -f ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; mkfifo ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe ; head -c 1048576 < ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe >> ../files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat --tempDir=temp_ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis_fmu --startTime=0 --stopTime=3 --stepSize=0.000598325 --timeout=50 --tolerance=1e-06 ModelicaTest_4_0_0_ModelicaTest_Blocks_Hysteresis.fmu > ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.pipe 2>&1) [Timeout 52.5] diffSimulationResults("ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/ModelicaTest_4.0.0_ModelicaTest.Blocks.Hysteresis.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: 14.725901387166232]