Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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_4_0_0_Modelica_Blocks_Examples_SlewRateLimiter",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.SlewRateLimiter,fileNamePrefix="Modelica_4_0_0_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.001233/0.001233, allocations: 91.14 kB / 16.65 MB, free: 6.586 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.001597/0.001597, allocations: 180.3 kB / 17.56 MB, free: 6.203 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.506/1.506, allocations: 223.3 MB / 241.6 MB, free: 14.49 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00035/0.00035, allocations: 12 kB / 301.5 MB, free: 5.82 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.127/0.1274, allocations: 50.41 MB / 351.9 MB, free: 3.395 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002241/0.1297, allocations: 1.386 MB / 353.3 MB, free: 1.992 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00101/0.1307, allocations: 470.9 kB / 353.8 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001335/0.1309, allocations: 0 / 353.8 MB, free: 1.531 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001172/0.131, allocations: 15.8 kB / 353.8 MB, free: 1.516 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001056/0.1312, allocations: 19.86 kB / 353.8 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002091/0.1314, allocations: 51.94 kB / 353.9 MB, free: 1.445 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001989/0.1316, allocations: 111.5 kB / 354 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001413/0.1317, allocations: 29.09 kB / 354 MB, free: 1.305 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.953e-05/0.1318, allocations: 31.8 kB / 354 MB, free: 1.273 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001028/0.1319, allocations: 43.72 kB / 354.1 MB, free: 1.23 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 2.675e-05/0.132, allocations: 4 kB / 354.1 MB, free: 1.227 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.869e-05/0.132, allocations: 4 kB / 354.1 MB, free: 1.223 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 2.965e-05/0.132, allocations: 19.91 kB / 354.1 MB, free: 1.203 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 7.523e-05/0.1321, allocations: 69.39 kB / 354.2 MB, free: 1.129 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001467/0.1323, allocations: 83.83 kB / 354.3 MB, free: 1.047 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.1323, allocations: 0 / 354.3 MB, free: 1.047 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.414e-06/0.1323, allocations: 4 kB / 354.3 MB, free: 1.043 MB / 286.1 MB Notification: Performance of Transformations before backend: time 5.61e-06/0.1323, allocations: 0 / 354.3 MB, free: 1.043 MB / 286.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.000625/0.1329, allocations: 423 kB / 354.7 MB, free: 0.582 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.456e-05/0.133, allocations: 8.031 kB / 354.7 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.168e-05/0.133, allocations: 38.75 kB / 354.7 MB, free: 0.5273 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.967e-05/0.1331, allocations: 12.84 kB / 354.7 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002559/0.1333, allocations: 219.5 kB / 354.9 MB, free: 272 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.657e-05/0.1334, allocations: 8 kB / 355 MB, free: 264 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.708e-05/0.1334, allocations: 15.91 kB / 355 MB, free: 248 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000316/0.1337, allocations: 139 kB / 355.1 MB, free: 96 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.379e-05/0.1338, allocations: 0 / 355.1 MB, free: 96 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.563e-05/0.1338, allocations: 7.938 kB / 355.1 MB, free: 88 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.622e-06/0.1338, allocations: 4 kB / 355.1 MB, free: 84 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002161/0.134, allocations: 79.94 kB / 355.2 MB, free: 4 kB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008058/0.1348, allocations: 0.5556 MB / 355.8 MB, free: 15.39 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003799/0.1352, allocations: 154.4 kB / 355.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000179/0.1354, allocations: 72.81 kB / 356 MB, free: 15.16 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.396e-05/0.1354, allocations: 4 kB / 356 MB, free: 15.15 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.134e-05/0.1355, allocations: 34.5 kB / 356 MB, free: 15.11 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.143e-06/0.1355, allocations: 0 / 356 MB, free: 15.11 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.001268/0.1367, allocations: 0.5643 MB / 356.6 MB, free: 14.49 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.685e-05/0.1368, allocations: 51.41 kB / 356.6 MB, free: 14.43 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001458/0.1369, allocations: 154.2 kB / 356.8 MB, free: 14.27 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.744e-05/0.137, allocations: 29.7 kB / 356.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.432e-05/0.137, allocations: 112 kB / 356.9 MB, free: 14.12 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.52e-05/0.1371, allocations: 43.36 kB / 357 MB, free: 14.08 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.314e-05/0.1371, allocations: 17.72 kB / 357 MB, free: 14.05 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001351/0.1373, allocations: 326.8 kB / 357.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001681/0.1374, allocations: 55.95 kB / 357.3 MB, free: 13.67 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001917/0.1376, allocations: 99.33 kB / 357.4 MB, free: 13.56 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003353/0.138, allocations: 155.4 kB / 357.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.485e-06/0.138, allocations: 0 / 357.6 MB, free: 13.4 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004348/0.1384, allocations: 205.3 kB / 357.8 MB, free: 13.19 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.856e-05/0.1385, allocations: 4 kB / 357.8 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.005e-06/0.1385, allocations: 4 kB / 357.8 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.505e-05/0.1385, allocations: 0 / 357.8 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000178/0.1387, allocations: 47.97 kB / 357.9 MB, free: 13.14 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.073e-05/0.1387, allocations: 7.938 kB / 357.9 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001011/0.1388, allocations: 19.98 kB / 357.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.15e-05/0.1388, allocations: 4 kB / 357.9 MB, free: 13.11 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 9.829e-05/0.1389, allocations: 117.8 kB / 358 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.815e-05/0.139, allocations: 11.84 kB / 358 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.497e-05/0.139, allocations: 16.7 kB / 358 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.408e-06/0.139, allocations: 8 kB / 358 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.152e-06/0.139, allocations: 0 / 358 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.166e-06/0.1391, allocations: 0 / 358 MB, free: 12.94 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008734/0.1399, allocations: 0.5281 MB / 358.6 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.1399, allocations: 0 / 358.6 MB, free: 12.35 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000178/0.1401, allocations: 47.91 kB / 358.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.076e-06/0.1401, allocations: 0 / 358.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.376e-05/0.1402, allocations: 4 kB / 358.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.054e-06/0.1402, allocations: 0 / 358.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.443e-06/0.1402, allocations: 0 / 358.6 MB, free: 12.3 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006379/0.1408, allocations: 357.1 kB / 359 MB, free: 11.93 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.307e-05/0.1409, allocations: 96.89 kB / 359.1 MB, free: 11.82 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.382e-05/0.1409, allocations: 12 kB / 359.1 MB, free: 11.8 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001141/0.141, allocations: 15.98 kB / 359.1 MB, free: 11.79 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.268e-05/0.1411, allocations: 11.92 kB / 359.1 MB, free: 11.78 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.618e-06/0.1411, allocations: 8 kB / 359.1 MB, free: 11.77 MB / 302.1 MB Notification: Performance of sorting global known variables: time 9.548e-05/0.1412, allocations: 113.5 kB / 359.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of sort global known variables: time 2e-07/0.1412, allocations: 0 / 359.2 MB, free: 11.66 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002512/0.1415, allocations: 24 kB / 359.2 MB, free: 11.64 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.0009238/0.1424, allocations: 0.8778 MB / 360.1 MB, free: 10.73 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003959/0.1428, allocations: 152 kB / 360.3 MB, free: 10.58 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.1428, allocations: 0 / 360.3 MB, free: 10.58 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001892/0.143, allocations: 76.09 kB / 360.3 MB, free: 10.5 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004553/0.1435, allocations: 43.91 kB / 360.4 MB, free: 10.46 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002628/0.1461, allocations: 2.028 MB / 362.4 MB, free: 8.316 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003115/0.1465, allocations: 0.7126 MB / 363.1 MB, free: 7.578 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.085e-05/0.1465, allocations: 13.42 kB / 363.1 MB, free: 7.566 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.2e-05/0.1466, allocations: 39.42 kB / 363.2 MB, free: 7.527 MB / 302.1 MB Notification: Performance of SimCode: time 2.9e-07/0.1466, allocations: 0 / 363.2 MB, free: 7.527 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.014/0.1606, allocations: 2.94 MB / 366.1 MB, free: 4.711 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001969/0.1609, allocations: 189.5 kB / 366.3 MB, free: 4.457 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.946/2.107, allocations: 0 / 366.3 MB, free: 4.457 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_SlewRateLimiter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_SlewRateLimiter.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.SlewRateLimiter_res.mat","/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_4.0.0_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