Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002086/0.002086, allocations: 120.1 kB / 18.5 MB, free: 4.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001839/0.001839, allocations: 222.3 kB / 21.46 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.639/1.639, allocations: 230.4 MB / 254.7 MB, free: 15.03 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001946/0.001946, allocations: 63.89 kB / 373.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1352/0.1371, allocations: 53.37 MB / 427.1 MB, free: 4.617 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.003325/0.1404, allocations: 1.701 MB / 428.8 MB, free: 2.91 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001074/0.1415, allocations: 0.5143 MB / 429.3 MB, free: 2.391 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.951e-05/0.1416, allocations: 7.938 kB / 429.3 MB, free: 2.383 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001394/0.1417, allocations: 11.86 kB / 429.3 MB, free: 2.371 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.858e-05/0.1418, allocations: 31.73 kB / 429.3 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001803/0.142, allocations: 43.94 kB / 429.4 MB, free: 2.297 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00021/0.1422, allocations: 111.6 kB / 429.5 MB, free: 2.188 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001379/0.1424, allocations: 21.11 kB / 429.5 MB, free: 2.164 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.648e-05/0.1425, allocations: 47.73 kB / 429.5 MB, free: 2.117 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001125/0.1426, allocations: 51.7 kB / 429.6 MB, free: 2.066 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.154e-05/0.1426, allocations: 8 kB / 429.6 MB, free: 2.059 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.049e-05/0.1426, allocations: 8 kB / 429.6 MB, free: 2.051 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.485e-05/0.1426, allocations: 23.86 kB / 429.6 MB, free: 2.027 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 5.964e-05/0.1427, allocations: 43.73 kB / 429.7 MB, free: 1.984 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001834/0.1429, allocations: 91.52 kB / 429.8 MB, free: 1.895 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.629e-06/0.1429, allocations: 0 / 429.8 MB, free: 1.895 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.699e-05/0.1429, allocations: 3.984 kB / 429.8 MB, free: 1.891 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.417e-05/0.1429, allocations: 0 / 429.8 MB, free: 1.891 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 19 * Number of variables: 19 Notification: Performance of Generate backend data structure: time 0.000691/0.1436, allocations: 437.4 kB / 430.2 MB, free: 1.418 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.018e-05/0.1437, allocations: 12.03 kB / 430.2 MB, free: 1.406 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.669e-05/0.1437, allocations: 4.188 kB / 430.2 MB, free: 1.402 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.214e-05/0.1437, allocations: 38.75 kB / 430.2 MB, free: 1.355 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.261e-05/0.1438, allocations: 20.84 kB / 430.3 MB, free: 1.336 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003588/0.1441, allocations: 216.6 kB / 430.5 MB, free: 1.086 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.399e-05/0.1441, allocations: 12.08 kB / 430.5 MB, free: 1.074 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.863e-05/0.1442, allocations: 19.98 kB / 430.5 MB, free: 1.055 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003177/0.1445, allocations: 124.1 kB / 430.6 MB, free: 0.918 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.71e-05/0.1445, allocations: 4 kB / 430.6 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.286e-05/0.1445, allocations: 4 kB / 430.6 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.951e-06/0.1445, allocations: 0 / 430.6 MB, free: 0.9102 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002068/0.1447, allocations: 71.89 kB / 430.7 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007547/0.1455, allocations: 0.5477 MB / 431.3 MB, free: 240 kB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000366/0.1459, allocations: 130.4 kB / 431.4 MB, free: 100 kB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000151/0.146, allocations: 56.81 kB / 431.4 MB, free: 40 kB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.919e-05/0.146, allocations: 3.984 kB / 431.4 MB, free: 36 kB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.397e-05/0.1461, allocations: 38.61 kB / 431.5 MB, free: 15.98 MB / 366.1 MB Notification: Performance of pre-optimization done (n=10): time 1.002e-06/0.1461, allocations: 0 / 431.5 MB, free: 15.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=12): time 0.001263/0.1474, allocations: 0.5075 MB / 432 MB, free: 15.43 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.077e-05/0.1474, allocations: 51.41 kB / 432 MB, free: 15.36 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001489/0.1475, allocations: 150.2 kB / 432.2 MB, free: 15.21 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.041e-05/0.1476, allocations: 29.7 kB / 432.2 MB, free: 15.17 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.698e-05/0.1477, allocations: 116 kB / 432.3 MB, free: 15.05 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.244e-05/0.1477, allocations: 51.56 kB / 432.4 MB, free: 15 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.745e-05/0.1478, allocations: 37.7 kB / 432.4 MB, free: 14.96 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001644/0.1479, allocations: 322.8 kB / 432.7 MB, free: 14.64 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001604/0.1481, allocations: 56.03 kB / 432.8 MB, free: 14.58 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001687/0.1482, allocations: 79.38 kB / 432.9 MB, free: 14.49 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003216/0.1486, allocations: 134.3 kB / 433 MB, free: 14.35 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-06/0.1486, allocations: 0.9375 kB / 433 MB, free: 14.35 MB / 366.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003941/0.149, allocations: 181.4 kB / 433.2 MB, free: 14.17 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.006e-05/0.149, allocations: 15.92 kB / 433.2 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.222e-06/0.149, allocations: 0 / 433.2 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.876e-05/0.149, allocations: 4 kB / 433.2 MB, free: 14.15 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001695/0.1492, allocations: 31.98 kB / 433.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.983e-06/0.1492, allocations: 0 / 433.2 MB, free: 14.12 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.063e-05/0.1493, allocations: 16.08 kB / 433.2 MB, free: 14.1 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.07e-05/0.1493, allocations: 8 kB / 433.2 MB, free: 14.09 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 1 (positionSmoothed.local_reset) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (17): * Single equations (assignments): 17 * 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.0001224/0.1494, allocations: 125.8 kB / 433.4 MB, free: 13.96 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.369e-05/0.1494, allocations: 23.78 kB / 433.4 MB, free: 13.94 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.764e-05/0.1495, allocations: 12.72 kB / 433.4 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.1495, allocations: 4 kB / 433.4 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.292e-06/0.1495, allocations: 0 / 433.4 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.931e-06/0.1495, allocations: 0 / 433.4 MB, free: 13.92 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008227/0.1503, allocations: 496 kB / 433.9 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.1503, allocations: 4 kB / 433.9 MB, free: 13.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001615/0.1505, allocations: 31.98 kB / 433.9 MB, free: 13.34 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.635e-06/0.1505, allocations: 4.062 kB / 433.9 MB, free: 13.33 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.604e-05/0.1505, allocations: 8 kB / 433.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.613e-06/0.1505, allocations: 3.938 kB / 433.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.1505, allocations: 0 / 433.9 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006011/0.1511, allocations: 320.9 kB / 434.3 MB, free: 12.98 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.2e-05/0.1512, allocations: 93.02 kB / 434.3 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.458e-05/0.1512, allocations: 4 kB / 434.3 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001078/0.1513, allocations: 12.03 kB / 434.4 MB, free: 12.86 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.709e-05/0.1514, allocations: 15.92 kB / 434.4 MB, free: 12.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.067e-06/0.1514, allocations: 4 kB / 434.4 MB, free: 12.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001024/0.1515, allocations: 127.9 kB / 434.5 MB, free: 12.71 MB / 366.1 MB Notification: Performance of sort global known variables: time 6e-08/0.1515, allocations: 0 / 434.5 MB, free: 12.71 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002451/0.1517, allocations: 20 kB / 434.5 MB, free: 12.7 MB / 366.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 3 (v.u,positionSmoothed.y,a.u) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 12 * 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.0009024/0.1526, allocations: 0.8429 MB / 435.4 MB, free: 11.82 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003968/0.153, allocations: 120 kB / 435.5 MB, free: 11.7 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.094e-06/0.153, allocations: 0 / 435.5 MB, free: 11.7 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001663/0.1532, allocations: 63.89 kB / 435.5 MB, free: 11.64 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004397/0.1536, allocations: 40.52 kB / 435.6 MB, free: 11.6 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002544/0.1562, allocations: 1.938 MB / 437.5 MB, free: 9.547 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000381/0.1566, allocations: 0.72 MB / 438.2 MB, free: 8.801 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.172e-05/0.1566, allocations: 17.45 kB / 438.3 MB, free: 8.789 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.169e-05/0.1567, allocations: 39.42 kB / 438.3 MB, free: 8.75 MB / 366.1 MB Notification: Performance of SimCode: time 5.71e-07/0.1567, allocations: 0 / 438.3 MB, free: 8.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02328/0.18, allocations: 3.375 MB / 441.7 MB, free: 5.457 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.303/8.483, allocations: 8.062 kB / 441.7 MB, free: 5.449 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_SlewRateLimiter_fmu --startTime=0 --stopTime=1 --stepSize=0.001 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_SlewRateLimiter.fmu > Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/SlewRateLimiter/SlewRateLimiter.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,limit_a.y,limit_v.y,positionSmoothed.y Variables in the result:a.u,a.y,aLimited,aMax,der(a.u),der(limit_a.y),der(limit_v.y),der(positionSmoothed.y),der(v.u),limit_a.Falling,limit_a.Rising,limit_a.Td,limit_a.initType,limit_a.strict,limit_a.u,limit_a.y,limit_a.y_start,limit_v.Falling,limit_v.Rising,limit_v.Td,limit_v.initType,limit_v.strict,limit_v.u,limit_v.y,limit_v.y_start,positionSmoothed.initType,positionSmoothed.k,positionSmoothed.u,positionSmoothed.use_reset,positionSmoothed.use_set,positionSmoothed.y,positionSmoothed.y_start,positionStep.height,positionStep.offset,positionStep.startTime,positionStep.y,s,sSmoothed,time,v.u,v.y,vLimited,vMax [Calling sys.exit(0), Time elapsed: 11.43352155899629]