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.001734/0.001734, allocations: 111.1 kB / 20.44 MB, free: 1.062 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.002177/0.002177, allocations: 215.8 kB / 23.73 MB, free: 4.156 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.512/1.512, allocations: 230.6 MB / 257.5 MB, free: 7.797 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.2395/0.2395, allocations: 44.94 MB / 358.8 MB, free: 6.043 MB / 286.1 MB " [Timeout remaining time 180] 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.002103/0.002103, allocations: 67.89 kB / 0.493 GB, free: 10.53 MB / 366.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3633/0.3654, allocations: 65.47 MB / 0.557 GB, free: 7.332 MB / 398.1 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002832/0.3682, allocations: 1.462 MB / 0.5584 GB, free: 6.047 MB / 398.1 MB Notification: Performance of NFInst.instExpressions: time 0.000913/0.3691, allocations: 450.9 kB / 0.5588 GB, free: 5.602 MB / 398.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.213e-05/0.3692, allocations: 0 / 0.5588 GB, free: 5.602 MB / 398.1 MB Notification: Performance of NFTyping.typeComponents: time 2.609e-05/0.3692, allocations: 4 kB / 0.5588 GB, free: 5.598 MB / 398.1 MB Notification: Performance of NFTyping.typeBindings: time 4.996e-05/0.3693, allocations: 11.86 kB / 0.5588 GB, free: 5.586 MB / 398.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000228/0.3695, allocations: 23.97 kB / 0.5589 GB, free: 5.562 MB / 398.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001072/0.3696, allocations: 43.8 kB / 0.5589 GB, free: 5.52 MB / 398.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.083e-05/0.3697, allocations: 7.984 kB / 0.5589 GB, free: 5.512 MB / 398.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000117/0.3698, allocations: 19.98 kB / 0.5589 GB, free: 5.492 MB / 398.1 MB Notification: Performance of NFSimplifyModel.simplify: time 5.649e-05/0.3699, allocations: 19.86 kB / 0.5589 GB, free: 5.473 MB / 398.1 MB Notification: Performance of NFPackage.collectConstants: time 1.488e-05/0.3699, allocations: 0 / 0.5589 GB, free: 5.473 MB / 398.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.335e-05/0.3699, allocations: 8 kB / 0.5589 GB, free: 5.465 MB / 398.1 MB Notification: Performance of NFScalarize.scalarize: time 1.742e-05/0.3699, allocations: 7.984 kB / 0.559 GB, free: 5.457 MB / 398.1 MB Notification: Performance of NFVerifyModel.verify: time 2.64e-05/0.37, allocations: 19.92 kB / 0.559 GB, free: 5.438 MB / 398.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001188/0.3701, allocations: 45.59 kB / 0.559 GB, free: 5.395 MB / 398.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.3701, allocations: 0 / 0.559 GB, free: 5.395 MB / 398.1 MB Notification: Performance of FrontEnd: time 1.133e-06/0.3701, allocations: 0 / 0.559 GB, free: 5.395 MB / 398.1 MB Notification: Performance of Transformations before backend: time 4.568e-06/0.3701, allocations: 0 / 0.559 GB, free: 5.395 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.0004522/0.3705, allocations: 270.2 kB / 0.5593 GB, free: 5.102 MB / 398.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.175e-05/0.3706, allocations: 12.03 kB / 0.5593 GB, free: 5.09 MB / 398.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.552e-05/0.3706, allocations: 34.75 kB / 0.5593 GB, free: 5.047 MB / 398.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001416/0.3708, allocations: 12.92 kB / 0.5593 GB, free: 5.035 MB / 398.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002092/0.371, allocations: 122.5 kB / 0.5594 GB, free: 4.891 MB / 398.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.094e-05/0.371, allocations: 8.312 kB / 0.5595 GB, free: 4.883 MB / 398.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.171e-05/0.371, allocations: 384 / 0.5595 GB, free: 4.883 MB / 398.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001824/0.3712, allocations: 93.22 kB / 0.5595 GB, free: 4.773 MB / 398.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.026e-05/0.3712, allocations: 3.938 kB / 0.5595 GB, free: 4.77 MB / 398.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.308e-06/0.3712, allocations: 0 / 0.5595 GB, free: 4.77 MB / 398.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.707e-06/0.3712, allocations: 3.938 kB / 0.5596 GB, free: 4.766 MB / 398.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 9.148e-05/0.3713, allocations: 19.98 kB / 0.5596 GB, free: 4.746 MB / 398.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000402/0.3717, allocations: 235.9 kB / 0.5598 GB, free: 4.473 MB / 398.1 MB Notification: Performance of preOpt comSubExp (simulation): time 9.689e-05/0.3718, allocations: 34.56 kB / 0.5598 GB, free: 4.43 MB / 398.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.906e-05/0.3719, allocations: 16.91 kB / 0.5598 GB, free: 4.41 MB / 398.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.841e-05/0.3719, allocations: 4 kB / 0.5598 GB, free: 4.406 MB / 398.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.271e-05/0.3719, allocations: 34.5 kB / 0.5599 GB, free: 4.363 MB / 398.1 MB Notification: Performance of pre-optimization done (n=2): time 1.123e-06/0.3719, allocations: 0 / 0.5599 GB, free: 4.363 MB / 398.1 MB Notification: Performance of matching and sorting (n=2): time 0.0002482/0.3722, allocations: 61.67 kB / 0.5599 GB, free: 4.297 MB / 398.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.706e-05/0.3722, allocations: 81.11 kB / 0.56 GB, free: 4.199 MB / 398.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001/0.3723, allocations: 110 kB / 0.5601 GB, free: 4.082 MB / 398.1 MB Notification: Performance of collectPreVariables (initialization): time 2.391e-05/0.3723, allocations: 33.7 kB / 0.5602 GB, free: 4.043 MB / 398.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.238e-05/0.3724, allocations: 80.14 kB / 0.5602 GB, free: 3.961 MB / 398.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.869e-05/0.3724, allocations: 7.953 kB / 0.5602 GB, free: 3.953 MB / 398.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.475e-05/0.3724, allocations: 17.7 kB / 0.5603 GB, free: 3.93 MB / 398.1 MB Notification: Performance of setup shared object (initialization): time 0.0001493/0.3726, allocations: 322.8 kB / 0.5606 GB, free: 3.605 MB / 398.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.879e-05/0.3726, allocations: 11.92 kB / 0.5606 GB, free: 3.594 MB / 398.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.424e-05/0.3727, allocations: 55.41 kB / 0.5606 GB, free: 3.527 MB / 398.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 8.209e-05/0.3728, allocations: 24.84 kB / 0.5607 GB, free: 3.5 MB / 398.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.643e-06/0.3728, allocations: 0 / 0.5607 GB, free: 3.5 MB / 398.1 MB Notification: Performance of matching and sorting (n=3) (initialization): time 0.0001371/0.3729, allocations: 61.7 kB / 0.5607 GB, free: 3.434 MB / 398.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.669e-05/0.373, allocations: 8 kB / 0.5607 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.829e-06/0.373, allocations: 0 / 0.5607 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.298e-05/0.373, allocations: 0 / 0.5607 GB, free: 3.426 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.11e-05/0.373, allocations: 7.984 kB / 0.5607 GB, free: 3.418 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.943e-06/0.3731, allocations: 3.938 kB / 0.5607 GB, free: 3.414 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.714e-05/0.3731, allocations: 7.953 kB / 0.5607 GB, free: 3.406 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.548e-06/0.3731, allocations: 4.375 kB / 0.5607 GB, free: 3.402 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 9.205e-05/0.3732, allocations: 121.8 kB / 0.5609 GB, free: 3.273 MB / 398.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.594e-05/0.3732, allocations: 4 kB / 0.5609 GB, free: 3.27 MB / 398.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.471e-05/0.3733, allocations: 3.625 kB / 0.5609 GB, free: 3.262 MB / 398.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.743e-06/0.3733, allocations: 3.938 kB / 0.5609 GB, free: 3.258 MB / 398.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.627e-06/0.3733, allocations: 0 / 0.5609 GB, free: 3.258 MB / 398.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.354e-06/0.3733, allocations: 4 kB / 0.5609 GB, free: 3.254 MB / 398.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001668/0.3734, allocations: 132.7 kB / 0.561 GB, free: 3.082 MB / 398.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.21e-07/0.3734, allocations: 3.938 kB / 0.561 GB, free: 3.078 MB / 398.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.088e-05/0.3735, allocations: 7.984 kB / 0.561 GB, free: 3.07 MB / 398.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.713e-06/0.3735, allocations: 0 / 0.561 GB, free: 3.07 MB / 398.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.017e-06/0.3735, allocations: 0 / 0.561 GB, free: 3.07 MB / 398.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.3735, allocations: 8 kB / 0.561 GB, free: 3.062 MB / 398.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.132e-06/0.3735, allocations: 0 / 0.561 GB, free: 3.062 MB / 398.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001869/0.3737, allocations: 151.4 kB / 0.5612 GB, free: 2.898 MB / 398.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.231e-05/0.3737, allocations: 7.984 kB / 0.5612 GB, free: 2.891 MB / 398.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.949e-05/0.3737, allocations: 4 kB / 0.5612 GB, free: 2.887 MB / 398.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.296e-05/0.3738, allocations: 4 kB / 0.5612 GB, free: 2.883 MB / 398.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.404e-05/0.3738, allocations: 11.98 kB / 0.5612 GB, free: 2.871 MB / 398.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.931e-06/0.3738, allocations: 3.984 kB / 0.5612 GB, free: 2.867 MB / 398.1 MB Notification: Performance of sorting global known variables: time 5.724e-05/0.3739, allocations: 87.28 kB / 0.5613 GB, free: 2.781 MB / 398.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3739, allocations: 4.031 kB / 0.5613 GB, free: 2.777 MB / 398.1 MB Notification: Performance of remove unused functions: time 0.0002324/0.3741, allocations: 4 kB / 0.5613 GB, free: 2.773 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.0004862/0.3746, allocations: 0.6812 MB / 0.5619 GB, free: 2.066 MB / 398.1 MB Notification: Performance of simCode: created initialization part: time 0.0001497/0.3748, allocations: 27.92 kB / 0.562 GB, free: 2.039 MB / 398.1 MB Notification: Performance of simCode: created event and clocks part: time 2.455e-06/0.3748, allocations: 0 / 0.562 GB, free: 2.039 MB / 398.1 MB Notification: Performance of simCode: created simulation system equations: time 5e-05/0.3748, allocations: 15.98 kB / 0.562 GB, free: 2.023 MB / 398.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002228/0.375, allocations: 12.67 kB / 0.562 GB, free: 2.016 MB / 398.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001348/0.3764, allocations: 1.262 MB / 0.5632 GB, free: 0.6758 MB / 398.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 5.85e-05/0.3765, allocations: 63.34 kB / 0.5633 GB, free: 0.5938 MB / 398.1 MB Notification: Performance of simCode: alias equations: time 3.615e-05/0.3765, allocations: 8.5 kB / 0.5633 GB, free: 0.5859 MB / 398.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.537e-05/0.3765, allocations: 15.42 kB / 0.5633 GB, free: 0.5703 MB / 398.1 MB Notification: Performance of SimCode: time 3.51e-07/0.3765, allocations: 3.938 kB / 0.5633 GB, free: 0.5664 MB / 398.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0273/0.4038, allocations: 2.086 MB / 0.5654 GB, free: 14.6 MB / 414.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.28/11.68, allocations: 6.234 kB / 0.5654 GB, free: 14.6 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.733181338757277]