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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001126/0.001126, allocations: 103.9 kB / 17.63 MB, free: 5.531 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001253/0.001253, allocations: 202.4 kB / 18.57 MB, free: 4.59 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.319/1.319, allocations: 227.4 MB / 246.8 MB, free: 10.62 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002569/0.002569, allocations: 59.88 kB / 307 MB, free: 0.5703 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1394/0.142, allocations: 50.53 MB / 357.6 MB, free: 14.04 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.00468/0.1468, allocations: 1.681 MB / 359.3 MB, free: 12.35 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001463/0.1483, allocations: 0.5159 MB / 359.8 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001234/0.1484, allocations: 7.938 kB / 359.8 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001311/0.1486, allocations: 11.86 kB / 359.8 MB, free: 11.81 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001319/0.1487, allocations: 27.78 kB / 359.8 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002375/0.149, allocations: 51.88 kB / 359.9 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002491/0.1492, allocations: 111.6 kB / 360 MB, free: 11.62 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001476/0.1494, allocations: 29.09 kB / 360 MB, free: 11.59 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.3e-05/0.1495, allocations: 39.8 kB / 360 MB, free: 11.55 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001605/0.1497, allocations: 47.72 kB / 360.1 MB, free: 11.51 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.265e-05/0.1497, allocations: 12 kB / 360.1 MB, free: 11.5 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.827e-05/0.1498, allocations: 8 kB / 360.1 MB, free: 11.49 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 4.004e-05/0.1498, allocations: 23.84 kB / 360.1 MB, free: 11.46 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 7.836e-05/0.1499, allocations: 47.67 kB / 360.2 MB, free: 11.42 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001875/0.1501, allocations: 91.92 kB / 360.3 MB, free: 11.33 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.167e-06/0.1501, allocations: 0 / 360.3 MB, free: 11.33 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.673e-06/0.1501, allocations: 0 / 360.3 MB, free: 11.33 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.1502, allocations: 0 / 360.3 MB, free: 11.33 MB / 302.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.0008412/0.151, allocations: 426.9 kB / 360.7 MB, free: 10.86 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.281e-05/0.1511, allocations: 12.03 kB / 360.7 MB, free: 10.85 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.8e-05/0.1512, allocations: 38.73 kB / 360.7 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.327e-05/0.1512, allocations: 16.78 kB / 360.8 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000328/0.1516, allocations: 212.6 kB / 361 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.551e-05/0.1516, allocations: 4.375 kB / 361 MB, free: 10.54 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.343e-05/0.1517, allocations: 15.88 kB / 361 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004764/0.1522, allocations: 142.5 kB / 361.1 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.442e-05/0.1522, allocations: 0 / 361.1 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.92e-05/0.1522, allocations: 4 kB / 361.1 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.182e-06/0.1522, allocations: 0 / 361.1 MB, free: 10.37 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003675/0.1526, allocations: 67.94 kB / 361.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001065/0.1537, allocations: 0.5515 MB / 361.7 MB, free: 9.691 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0006175/0.1543, allocations: 126.5 kB / 361.9 MB, free: 9.559 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002758/0.1546, allocations: 60.75 kB / 361.9 MB, free: 9.496 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.565e-05/0.1547, allocations: 0 / 361.9 MB, free: 9.496 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.968e-05/0.1547, allocations: 34.75 kB / 362 MB, free: 9.453 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.893e-06/0.1547, allocations: 7.938 kB / 362 MB, free: 9.445 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.001898/0.1566, allocations: 0.5018 MB / 362.5 MB, free: 8.891 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.867e-05/0.1567, allocations: 59.39 kB / 362.5 MB, free: 8.82 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002131/0.1569, allocations: 153.4 kB / 362.7 MB, free: 8.664 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.352e-05/0.157, allocations: 29.64 kB / 362.7 MB, free: 8.629 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.627e-05/0.1571, allocations: 108 kB / 362.8 MB, free: 8.52 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6.502e-05/0.1571, allocations: 47.36 kB / 362.9 MB, free: 8.473 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.814e-05/0.1572, allocations: 29.7 kB / 362.9 MB, free: 8.438 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001662/0.1574, allocations: 334.8 kB / 363.2 MB, free: 8.102 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002811/0.1577, allocations: 51.95 kB / 363.3 MB, free: 8.051 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003172/0.1581, allocations: 86.52 kB / 363.3 MB, free: 7.957 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005614/0.1586, allocations: 131.3 kB / 363.5 MB, free: 7.816 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.893e-06/0.1586, allocations: 0 / 363.5 MB, free: 7.816 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0007117/0.1594, allocations: 184.8 kB / 363.7 MB, free: 7.633 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.237e-05/0.1594, allocations: 12.03 kB / 363.7 MB, free: 7.621 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.773e-06/0.1594, allocations: 4 kB / 363.7 MB, free: 7.617 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.618e-05/0.1595, allocations: 0 / 363.7 MB, free: 7.617 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003073/0.1598, allocations: 39.91 kB / 363.7 MB, free: 7.578 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.363e-05/0.1598, allocations: 8 kB / 363.7 MB, free: 7.57 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001589/0.16, allocations: 11.98 kB / 363.7 MB, free: 7.559 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.992e-05/0.16, allocations: 8 kB / 363.7 MB, free: 7.551 MB / 302.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.0001404/0.1602, allocations: 121.8 kB / 363.9 MB, free: 7.422 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.393e-05/0.1602, allocations: 12.78 kB / 363.9 MB, free: 7.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.964e-05/0.1603, allocations: 16.72 kB / 363.9 MB, free: 7.391 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.524e-06/0.1603, allocations: 0 / 363.9 MB, free: 7.391 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.771e-06/0.1603, allocations: 3.938 kB / 363.9 MB, free: 7.387 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.634e-06/0.1604, allocations: 7.984 kB / 363.9 MB, free: 7.379 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001357/0.1617, allocations: 0.492 MB / 364.4 MB, free: 6.824 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.1618, allocations: 0 / 364.4 MB, free: 6.824 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003088/0.1621, allocations: 35.98 kB / 364.4 MB, free: 6.789 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.087e-06/0.1621, allocations: 0 / 364.4 MB, free: 6.789 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.944e-05/0.1621, allocations: 3.984 kB / 364.4 MB, free: 6.785 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.095e-06/0.1621, allocations: 8.062 kB / 364.4 MB, free: 6.777 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.923e-06/0.1622, allocations: 0 / 364.4 MB, free: 6.777 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009841/0.1632, allocations: 320.9 kB / 364.7 MB, free: 6.441 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.267e-05/0.1633, allocations: 88.92 kB / 364.8 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.298e-05/0.1633, allocations: 0 / 364.8 MB, free: 6.336 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002139/0.1635, allocations: 16.03 kB / 364.8 MB, free: 6.32 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.726e-05/0.1636, allocations: 11.98 kB / 364.9 MB, free: 6.309 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.375e-05/0.1636, allocations: 4 kB / 364.9 MB, free: 6.305 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001317/0.1638, allocations: 114.3 kB / 365 MB, free: 6.195 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.71e-07/0.1638, allocations: 4 kB / 365 MB, free: 6.191 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005087/0.1643, allocations: 27.94 kB / 365 MB, free: 6.164 MB / 302.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.00133/0.1657, allocations: 0.8429 MB / 365.9 MB, free: 5.285 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0006554/0.1663, allocations: 132 kB / 366 MB, free: 5.156 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.855e-06/0.1664, allocations: 4.188 kB / 366 MB, free: 5.152 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003155/0.1667, allocations: 67.89 kB / 366 MB, free: 5.086 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000731/0.1674, allocations: 44.12 kB / 366.1 MB, free: 5.043 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003926/0.1714, allocations: 1.924 MB / 368 MB, free: 3 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003887/0.1718, allocations: 0.7084 MB / 368.7 MB, free: 2.266 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001014/0.1719, allocations: 21.42 kB / 368.7 MB, free: 2.246 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001109/0.172, allocations: 39.42 kB / 368.8 MB, free: 2.207 MB / 302.1 MB Notification: Performance of SimCode: time 5.31e-07/0.172, allocations: 0 / 368.8 MB, free: 2.207 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1754/0.3475, allocations: 3.268 MB / 372.1 MB, free: 20.1 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.459/7.806, allocations: 10.55 kB / 372.1 MB, free: 20.1 MB / 302.1 MB (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Blocks_Examples_SlewRateLimiter.fmu > Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.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) Reference file matches