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.0007845/0.0007845, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008344/0.0008344, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8624/0.8624, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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.221/0.221, allocations: 32.79 MB / 293.5 MB, free: 1.242 MB / 266.7 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: Performance of FrontEnd - loaded program: time 2.014e-06/2.014e-06, allocations: 3.938 kB / 439.6 MB, free: 4.277 MB / 410.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.919e-05/2.12e-05, allocations: 3.547 kB / 439.6 MB, free: 4.273 MB / 410.7 MB Notification: Performance of NFInst.instantiate(ModelicaTest.Blocks.Hysteresis): time 0.002097/0.002118, allocations: 1.464 MB / 441 MB, free: 2.797 MB / 410.7 MB Notification: Performance of NFInst.instExpressions: time 0.000693/0.002811, allocations: 450.8 kB / 441.5 MB, free: 2.352 MB / 410.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.644e-05/0.002867, allocations: 4 kB / 441.5 MB, free: 2.348 MB / 410.7 MB Notification: Performance of NFTyping.typeComponents: time 2.795e-05/0.002895, allocations: 3.938 kB / 441.5 MB, free: 2.344 MB / 410.7 MB Notification: Performance of NFTyping.typeBindings: time 4.422e-05/0.002939, allocations: 7.938 kB / 441.5 MB, free: 2.336 MB / 410.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002392/0.003179, allocations: 31.83 kB / 441.5 MB, free: 2.305 MB / 410.7 MB Notification: Performance of NFFlatten.flatten: time 9.51e-05/0.003274, allocations: 39.86 kB / 441.6 MB, free: 2.266 MB / 410.7 MB Notification: Performance of NFFlatten.resolveConnections: time 8.233e-05/0.003356, allocations: 0 / 441.6 MB, free: 2.266 MB / 410.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001136/0.00347, allocations: 27.97 kB / 441.6 MB, free: 2.238 MB / 410.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.28e-05/0.003523, allocations: 19.92 kB / 441.6 MB, free: 2.219 MB / 410.7 MB Notification: Performance of NFPackage.collectConstants: time 1.369e-05/0.003536, allocations: 0 / 441.6 MB, free: 2.219 MB / 410.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.899e-05/0.003575, allocations: 15.98 kB / 441.6 MB, free: 2.203 MB / 410.7 MB Notification: Performance of NFScalarize.scalarize: time 1.114e-05/0.003586, allocations: 7.938 kB / 441.6 MB, free: 2.195 MB / 410.7 MB Notification: Performance of NFVerifyModel.verify: time 1.812e-05/0.003604, allocations: 4 kB / 441.6 MB, free: 2.191 MB / 410.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001046/0.003709, allocations: 47.81 kB / 441.7 MB, free: 2.145 MB / 410.7 MB Notification: Performance of FrontEnd - DAE generated: time 1.854e-06/0.003711, allocations: 0 / 441.7 MB, free: 2.145 MB / 410.7 MB Notification: Performance of FrontEnd: time 8.51e-07/0.003712, allocations: 0 / 441.7 MB, free: 2.145 MB / 410.7 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.003716, allocations: 0 / 441.7 MB, free: 2.145 MB / 410.7 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.0003459/0.004061, allocations: 274.2 kB / 441.9 MB, free: 1.848 MB / 410.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.954e-05/0.004101, allocations: 12.02 kB / 442 MB, free: 1.836 MB / 410.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.693e-05/0.004128, allocations: 30.75 kB / 442 MB, free: 1.797 MB / 410.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001189/0.004247, allocations: 16.94 kB / 442 MB, free: 1.781 MB / 410.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001638/0.004411, allocations: 117.7 kB / 442.1 MB, free: 1.641 MB / 410.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.03e-05/0.004421, allocations: 4.375 kB / 442.1 MB, free: 1.637 MB / 410.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.526e-06/0.004429, allocations: 384 / 442.1 MB, free: 1.637 MB / 410.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0001401/0.00457, allocations: 97.59 kB / 442.2 MB, free: 1.523 MB / 410.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.793e-06/0.004576, allocations: 192 / 442.2 MB, free: 1.523 MB / 410.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.079e-05/0.004587, allocations: 4.125 kB / 442.2 MB, free: 1.52 MB / 410.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.708e-06/0.004592, allocations: 0 / 442.2 MB, free: 1.52 MB / 410.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.679e-05/0.004649, allocations: 19.98 kB / 442.2 MB, free: 1.5 MB / 410.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0002691/0.004918, allocations: 232 kB / 442.5 MB, free: 1.23 MB / 410.7 MB Notification: Performance of preOpt comSubExp (simulation): time 6.274e-05/0.00498, allocations: 38.48 kB / 442.5 MB, free: 1.184 MB / 410.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 3.33e-05/0.005014, allocations: 16.86 kB / 442.5 MB, free: 1.164 MB / 410.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.513e-05/0.005029, allocations: 7.938 kB / 442.5 MB, free: 1.156 MB / 410.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.902e-05/0.005048, allocations: 30.56 kB / 442.6 MB, free: 1.117 MB / 410.7 MB Notification: Performance of pre-optimization done (n=2): time 9.92e-07/0.005049, allocations: 0 / 442.6 MB, free: 1.117 MB / 410.7 MB Notification: Performance of matching and sorting (n=2): time 0.0001676/0.005216, allocations: 61.67 kB / 442.6 MB, free: 1.051 MB / 410.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.946e-05/0.005256, allocations: 89.17 kB / 442.7 MB, free: 0.9453 MB / 410.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.749e-05/0.005313, allocations: 105.8 kB / 442.8 MB, free: 0.832 MB / 410.7 MB Notification: Performance of collectPreVariables (initialization): time 1.26e-05/0.005326, allocations: 29.7 kB / 442.8 MB, free: 0.7969 MB / 410.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.632e-05/0.005362, allocations: 88.12 kB / 442.9 MB, free: 0.707 MB / 410.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.588e-05/0.005378, allocations: 7.938 kB / 442.9 MB, free: 0.6992 MB / 410.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.971e-05/0.005408, allocations: 17.72 kB / 442.9 MB, free: 0.6758 MB / 410.7 MB Notification: Performance of setup shared object (initialization): time 7.948e-05/0.005487, allocations: 318.8 kB / 443.3 MB, free: 364 kB / 410.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 3.1e-05/0.005518, allocations: 11.94 kB / 443.3 MB, free: 352 kB / 410.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 4.15e-05/0.00556, allocations: 55.41 kB / 443.3 MB, free: 284 kB / 410.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.85e-05/0.005608, allocations: 28.88 kB / 443.4 MB, free: 252 kB / 410.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.00561, allocations: 0 / 443.4 MB, free: 252 kB / 410.7 MB Notification: Performance of matching and sorting (n=3) (initialization): time 7.497e-05/0.005685, allocations: 57.62 kB / 443.4 MB, free: 188 kB / 410.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.434e-05/0.005699, allocations: 11.98 kB / 443.4 MB, free: 176 kB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.506e-06/0.005703, allocations: 0 / 443.4 MB, free: 176 kB / 410.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.314e-05/0.005716, allocations: 0 / 443.4 MB, free: 176 kB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.38e-05/0.00577, allocations: 4 kB / 443.4 MB, free: 172 kB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.409e-06/0.005774, allocations: 3.938 kB / 443.4 MB, free: 168 kB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.951e-05/0.005804, allocations: 11.94 kB / 443.4 MB, free: 156 kB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.41e-06/0.005809, allocations: 8 kB / 443.4 MB, free: 148 kB / 410.7 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 5.749e-05/0.005866, allocations: 106.5 kB / 443.6 MB, free: 32 kB / 410.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 1.597e-05/0.005882, allocations: 11.94 kB / 443.6 MB, free: 20 kB / 410.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 1.74e-05/0.0059, allocations: 3.625 kB / 443.6 MB, free: 16 kB / 410.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.884e-06/0.005902, allocations: 0 / 443.6 MB, free: 16 kB / 410.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.162e-06/0.005908, allocations: 8 kB / 443.6 MB, free: 8 kB / 410.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.514e-06/0.005915, allocations: 3.984 kB / 443.6 MB, free: 4 kB / 410.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.1597/0.1656, allocations: 126.1 kB / 443.7 MB, free: 46.23 MB / 410.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.616e-06/0.1656, allocations: 5.25 kB / 443.7 MB, free: 46.23 MB / 410.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.694e-05/0.1657, allocations: 2.75 kB / 443.7 MB, free: 46.23 MB / 410.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.097e-06/0.1657, allocations: 2.531 kB / 443.7 MB, free: 46.23 MB / 410.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.015e-06/0.1657, allocations: 0 / 443.7 MB, free: 46.23 MB / 410.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.504e-06/0.1657, allocations: 3.281 kB / 443.7 MB, free: 46.23 MB / 410.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.663e-06/0.1657, allocations: 3.094 kB / 443.7 MB, free: 46.23 MB / 410.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001381/0.1658, allocations: 153.8 kB / 443.9 MB, free: 46.1 MB / 410.7 MB Notification: Performance of postOpt removeConstants (simulation): time 9.197e-06/0.1658, allocations: 3.797 kB / 443.9 MB, free: 46.1 MB / 410.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.626e-05/0.1658, allocations: 8.156 kB / 443.9 MB, free: 46.1 MB / 410.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.902e-05/0.1659, allocations: 10.19 kB / 443.9 MB, free: 46.1 MB / 410.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.44e-05/0.1659, allocations: 3.188 kB / 443.9 MB, free: 46.1 MB / 410.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.629e-06/0.1659, allocations: 2.781 kB / 443.9 MB, free: 46.1 MB / 410.7 MB Notification: Performance of sorting global known variables: time 2.591e-05/0.166, allocations: 90.42 kB / 444 MB, free: 46.03 MB / 410.7 MB Notification: Performance of sort global known variables: time 9e-08/0.166, allocations: 0.5938 kB / 444 MB, free: 46.03 MB / 410.7 MB Notification: Performance of remove unused functions: time 0.000158/0.1661, allocations: 9.656 kB / 444 MB, free: 46.03 MB / 410.7 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.0002063/0.1663, allocations: 0.6775 MB / 444.7 MB, free: 45.38 MB / 410.7 MB Notification: Performance of simCode: created initialization part: time 0.0001103/0.1664, allocations: 29.55 kB / 444.7 MB, free: 45.38 MB / 410.7 MB Notification: Performance of simCode: created event and clocks part: time 1.693e-06/0.1664, allocations: 0.8438 kB / 444.7 MB, free: 45.38 MB / 410.7 MB Notification: Performance of simCode: created simulation system equations: time 2.564e-05/0.1665, allocations: 15.27 kB / 444.7 MB, free: 45.38 MB / 410.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0001708/0.1666, allocations: 8.078 kB / 444.7 MB, free: 45.38 MB / 410.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006875/0.1673, allocations: 1.269 MB / 446 MB, free: 44.24 MB / 410.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 3.1e-05/0.1673, allocations: 63.38 kB / 446.1 MB, free: 44.17 MB / 410.7 MB Notification: Performance of simCode: alias equations: time 2.952e-05/0.1674, allocations: 6.141 kB / 446.1 MB, free: 44.17 MB / 410.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.124e-05/0.1674, allocations: 15.84 kB / 446.1 MB, free: 44.17 MB / 410.7 MB Notification: Performance of SimCode: time 8.12e-07/0.1674, allocations: 0 / 446.1 MB, free: 44.17 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01507/0.1825, allocations: 2.227 MB / 448.3 MB, free: 43.32 MB / 410.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.971/7.154, allocations: 3.281 kB / 448.3 MB, free: 43.32 MB / 410.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/ModelicaTest/Blocks/Hysteresis/Hysteresis.csv","/var/lib/jenkins/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: 8.994268799200654]