Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_3_2_3_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001476/0.001476, allocations: 111.5 kB / 17.28 MB, free: 6.199 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001207/0.001207, allocations: 185.3 kB / 18.2 MB, free: 5.277 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.85/1.85, allocations: 205.1 MB / 224 MB, free: 12.44 MB / 190.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001145/0.001145, allocations: 52.12 kB / 280.2 MB, free: 3.391 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1428/0.144, allocations: 46.63 MB / 326.9 MB, free: 4.691 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.003809/0.1479, allocations: 1.725 MB / 328.6 MB, free: 2.945 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.001014/0.1489, allocations: 0.5114 MB / 329.1 MB, free: 2.426 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001238/0.1491, allocations: 4 kB / 329.1 MB, free: 2.422 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001773/0.1493, allocations: 11.86 kB / 329.1 MB, free: 2.41 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 9.988e-05/0.1494, allocations: 27.84 kB / 329.1 MB, free: 2.383 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001992/0.1496, allocations: 35.97 kB / 329.2 MB, free: 2.348 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002205/0.1498, allocations: 119.6 kB / 329.3 MB, free: 2.23 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000139/0.1499, allocations: 24.89 kB / 329.3 MB, free: 2.207 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.502e-05/0.15, allocations: 43.8 kB / 329.4 MB, free: 2.164 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.778e-05/0.1501, allocations: 43.72 kB / 329.4 MB, free: 2.121 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.775e-05/0.1501, allocations: 12 kB / 329.4 MB, free: 2.109 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.963e-05/0.1502, allocations: 8 kB / 329.4 MB, free: 2.102 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 3.392e-05/0.1502, allocations: 27.84 kB / 329.5 MB, free: 2.074 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 6.192e-05/0.1503, allocations: 47.73 kB / 329.5 MB, free: 2.027 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001491/0.1504, allocations: 95.8 kB / 329.6 MB, free: 1.934 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.314e-06/0.1504, allocations: 3.984 kB / 329.6 MB, free: 1.93 MB / 270.1 MB Notification: Performance of FrontEnd: time 2.625e-06/0.1505, allocations: 0 / 329.6 MB, free: 1.93 MB / 270.1 MB Notification: Performance of Transformations before backend: time 6.172e-06/0.1505, allocations: 0 / 329.6 MB, free: 1.93 MB / 270.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.0005747/0.151, allocations: 427 kB / 330 MB, free: 1.465 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.544e-05/0.1511, allocations: 8.031 kB / 330 MB, free: 1.457 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.589e-05/0.1511, allocations: 38.75 kB / 330.1 MB, free: 1.41 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.922e-05/0.1512, allocations: 16.75 kB / 330.1 MB, free: 1.395 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003029/0.1515, allocations: 216.6 kB / 330.3 MB, free: 1.145 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.117e-05/0.1515, allocations: 12.31 kB / 330.3 MB, free: 1.133 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.573e-05/0.1516, allocations: 11.94 kB / 330.3 MB, free: 1.121 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000299/0.1519, allocations: 128.2 kB / 330.4 MB, free: 0.9805 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.1519, allocations: 3.906 kB / 330.4 MB, free: 0.9766 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.429e-05/0.1519, allocations: 4 kB / 330.4 MB, free: 0.9727 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.762e-06/0.1519, allocations: 4 kB / 330.5 MB, free: 0.9688 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002052/0.1521, allocations: 67.88 kB / 330.5 MB, free: 0.9023 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009038/0.153, allocations: 0.5477 MB / 331.1 MB, free: 304 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003749/0.1534, allocations: 134.4 kB / 331.2 MB, free: 160 kB / 270.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001495/0.1536, allocations: 60.81 kB / 331.3 MB, free: 96 kB / 270.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.151e-05/0.1536, allocations: 0 / 331.3 MB, free: 96 kB / 270.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.337e-05/0.1537, allocations: 34.56 kB / 331.3 MB, free: 52 kB / 270.1 MB Notification: Performance of pre-optimization done (n=10): time 3.096e-06/0.1537, allocations: 3.984 kB / 331.3 MB, free: 48 kB / 270.1 MB Notification: Performance of matching and sorting (n=12): time 0.001369/0.1551, allocations: 0.5096 MB / 331.8 MB, free: 15.48 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.328e-05/0.1551, allocations: 59.41 kB / 331.9 MB, free: 15.41 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001831/0.1553, allocations: 154.2 kB / 332 MB, free: 15.25 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 4.383e-05/0.1554, allocations: 29.7 kB / 332 MB, free: 15.22 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001094/0.1555, allocations: 111.9 kB / 332.2 MB, free: 15.11 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.159e-05/0.1555, allocations: 39.36 kB / 332.2 MB, free: 15.07 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.755e-05/0.1556, allocations: 33.72 kB / 332.2 MB, free: 15.03 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 0.0001789/0.1558, allocations: 322.8 kB / 332.5 MB, free: 14.7 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001547/0.156, allocations: 55.95 kB / 332.6 MB, free: 14.65 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000164/0.1561, allocations: 76.33 kB / 332.7 MB, free: 14.56 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003091/0.1565, allocations: 139.3 kB / 332.8 MB, free: 14.41 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.213e-06/0.1565, allocations: 0 / 332.8 MB, free: 14.41 MB / 286.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003975/0.1569, allocations: 181.3 kB / 333 MB, free: 14.23 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.584e-05/0.1569, allocations: 11.06 kB / 333 MB, free: 14.22 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.826e-06/0.1569, allocations: 4 kB / 333 MB, free: 14.22 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.403e-05/0.157, allocations: 0 / 333 MB, free: 14.22 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001879/0.1571, allocations: 35.97 kB / 333 MB, free: 14.18 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.392e-05/0.1572, allocations: 4 kB / 333 MB, free: 14.18 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.631e-05/0.1573, allocations: 15.98 kB / 333.1 MB, free: 14.16 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.234e-05/0.1573, allocations: 11.88 kB / 333.1 MB, free: 14.15 MB / 286.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.0001412/0.1574, allocations: 125.8 kB / 333.2 MB, free: 14.02 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.368e-05/0.1575, allocations: 11.84 kB / 333.2 MB, free: 14.01 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.616e-05/0.1575, allocations: 20.7 kB / 333.2 MB, free: 13.98 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.944e-06/0.1575, allocations: 0 / 333.2 MB, free: 13.98 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.462e-06/0.1576, allocations: 0 / 333.2 MB, free: 13.98 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.208e-06/0.1576, allocations: 0 / 333.2 MB, free: 13.98 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007878/0.1584, allocations: 0.4921 MB / 333.7 MB, free: 13.43 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.553e-06/0.1584, allocations: 0 / 333.7 MB, free: 13.43 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001736/0.1586, allocations: 39.91 kB / 333.7 MB, free: 13.39 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.344e-06/0.1586, allocations: 0 / 333.7 MB, free: 13.39 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.312e-05/0.1586, allocations: 4.062 kB / 333.8 MB, free: 13.39 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.1586, allocations: 4 kB / 333.8 MB, free: 13.38 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.193e-06/0.1586, allocations: 0 / 333.8 MB, free: 13.38 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005944/0.1592, allocations: 324.9 kB / 334.1 MB, free: 13.04 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.036e-05/0.1593, allocations: 92.95 kB / 334.2 MB, free: 12.93 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.494e-05/0.1593, allocations: 4 kB / 334.2 MB, free: 12.93 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001202/0.1594, allocations: 15.98 kB / 334.2 MB, free: 12.91 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001032/0.1595, allocations: 15.98 kB / 334.2 MB, free: 12.9 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.3e-06/0.1595, allocations: 0 / 334.2 MB, free: 12.9 MB / 286.1 MB Notification: Performance of sorting global known variables: time 7.374e-05/0.1596, allocations: 123.9 kB / 334.3 MB, free: 12.78 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1596, allocations: 0 / 334.3 MB, free: 12.78 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002422/0.1599, allocations: 23.94 kB / 334.3 MB, free: 12.75 MB / 286.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.0009319/0.1608, allocations: 0.8427 MB / 335.2 MB, free: 11.88 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.000384/0.1612, allocations: 135.9 kB / 335.3 MB, free: 11.74 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 4.388e-06/0.1612, allocations: 8.062 kB / 335.3 MB, free: 11.73 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001694/0.1614, allocations: 67.98 kB / 335.4 MB, free: 11.67 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005581/0.162, allocations: 36.09 kB / 335.4 MB, free: 11.63 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002825/0.1648, allocations: 1.976 MB / 337.4 MB, free: 9.551 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003893/0.1652, allocations: 0.7123 MB / 338.1 MB, free: 8.812 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 7.309e-05/0.1653, allocations: 17.42 kB / 338.1 MB, free: 8.797 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.917e-05/0.1654, allocations: 39.44 kB / 338.2 MB, free: 8.758 MB / 286.1 MB Notification: Performance of SimCode: time 3.697e-06/0.1654, allocations: 0 / 338.2 MB, free: 8.758 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01802/0.1834, allocations: 3.111 MB / 341.3 MB, free: 5.637 MB / 286.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002354/0.1837, allocations: 186.8 kB / 341.5 MB, free: 5.379 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.11/2.294, allocations: 4 kB / 341.5 MB, free: 5.375 MB / 286.1 MB (rm -f Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; mkfifo Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe >> ../files/Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Blocks_Examples_SlewRateLimiter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Blocks_Examples_SlewRateLimiter.fmu > Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) diffSimulationResults("Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v3.2.3+build.4/Modelica/Blocks/Examples/SlewRateLimiter/SlewRateLimiter.csv","../files/Modelica_3.2.3_Modelica.Blocks.Examples.SlewRateLimiter.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" 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