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.00131/0.00131, allocations: 102.5 kB / 17.73 MB, free: 5.371 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.001349/0.001349, allocations: 191 kB / 18.66 MB, free: 4.445 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.407/1.407, allocations: 205.1 MB / 224.5 MB, free: 12.24 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.00117/0.00117, allocations: 55.92 kB / 328 MB, free: 3.824 MB / 270.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07818/0.07936, allocations: 46.62 MB / 374.6 MB, free: 5.094 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002605/0.082, allocations: 1.659 MB / 376.3 MB, free: 3.422 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008505/0.08287, allocations: 0.5314 MB / 376.8 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.929e-05/0.083, allocations: 0 / 376.8 MB, free: 2.883 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001024/0.08312, allocations: 19.8 kB / 376.8 MB, free: 2.863 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 7.637e-05/0.0832, allocations: 19.8 kB / 376.9 MB, free: 2.844 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001595/0.08337, allocations: 47.94 kB / 376.9 MB, free: 2.797 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001755/0.08356, allocations: 119.6 kB / 377 MB, free: 2.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000116/0.08368, allocations: 29.39 kB / 377.1 MB, free: 2.652 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.093e-05/0.08375, allocations: 43.78 kB / 377.1 MB, free: 2.609 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.718e-05/0.08384, allocations: 47.72 kB / 377.1 MB, free: 2.562 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 2.079e-05/0.08387, allocations: 8 kB / 377.2 MB, free: 2.555 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.512e-05/0.08389, allocations: 4 kB / 377.2 MB, free: 2.551 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 2.375e-05/0.08392, allocations: 27.86 kB / 377.2 MB, free: 2.523 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 4.443e-05/0.08397, allocations: 43.73 kB / 377.2 MB, free: 2.48 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001382/0.08411, allocations: 103.5 kB / 377.3 MB, free: 2.379 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.25e-06/0.08412, allocations: 4 kB / 377.3 MB, free: 2.375 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.253e-06/0.08413, allocations: 0 / 377.3 MB, free: 2.375 MB / 318.1 MB Notification: Performance of Transformations before backend: time 5.06e-06/0.08414, allocations: 0 / 377.3 MB, free: 2.375 MB / 318.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.0005409/0.08468, allocations: 423 kB / 377.7 MB, free: 1.914 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.579e-05/0.08473, allocations: 8.031 kB / 377.8 MB, free: 1.906 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.32e-05/0.08478, allocations: 42.75 kB / 377.8 MB, free: 1.855 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.506e-05/0.08482, allocations: 12.75 kB / 377.8 MB, free: 1.844 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002674/0.08509, allocations: 216.6 kB / 378 MB, free: 1.594 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.429e-05/0.08511, allocations: 12.36 kB / 378 MB, free: 1.582 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.815e-05/0.08514, allocations: 11.94 kB / 378 MB, free: 1.57 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003027/0.08546, allocations: 132.1 kB / 378.2 MB, free: 1.426 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.533e-05/0.08548, allocations: 0 / 378.2 MB, free: 1.426 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.15e-05/0.08551, allocations: 11.94 kB / 378.2 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.972e-06/0.08552, allocations: 0 / 378.2 MB, free: 1.414 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002062/0.08573, allocations: 63.95 kB / 378.2 MB, free: 1.352 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008342/0.08657, allocations: 0.5514 MB / 378.8 MB, free: 0.7422 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003573/0.08694, allocations: 130.5 kB / 378.9 MB, free: 0.6055 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001428/0.0871, allocations: 64.75 kB / 379 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.124e-05/0.08712, allocations: 0 / 379 MB, free: 0.5391 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.184e-05/0.08714, allocations: 30.56 kB / 379 MB, free: 0.5 MB / 318.1 MB Notification: Performance of pre-optimization done (n=10): time 1.292e-06/0.08715, allocations: 0 / 379 MB, free: 0.5 MB / 318.1 MB Notification: Performance of matching and sorting (n=12): time 0.1554/0.2425, allocations: 0.5062 MB / 379.5 MB, free: 13.1 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.234e-05/0.2426, allocations: 54.55 kB / 379.6 MB, free: 13.04 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001273/0.2427, allocations: 154.8 kB / 379.7 MB, free: 12.93 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 1.076e-05/0.2427, allocations: 30 kB / 379.8 MB, free: 12.9 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.015e-05/0.2428, allocations: 113 kB / 379.9 MB, free: 12.82 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.787e-05/0.2428, allocations: 43.11 kB / 379.9 MB, free: 12.8 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.041e-05/0.2429, allocations: 32.31 kB / 379.9 MB, free: 12.79 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 4.533e-05/0.2429, allocations: 323.7 kB / 380.3 MB, free: 12.47 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001473/0.2431, allocations: 54.14 kB / 380.3 MB, free: 12.47 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001553/0.2433, allocations: 87.73 kB / 380.4 MB, free: 12.44 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002827/0.2435, allocations: 131.9 kB / 380.5 MB, free: 12.4 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.603e-06/0.2435, allocations: 4.078 kB / 380.5 MB, free: 12.4 MB / 318.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003724/0.2439, allocations: 175.7 kB / 380.7 MB, free: 12.37 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.728e-05/0.244, allocations: 14.34 kB / 380.7 MB, free: 12.37 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.244, allocations: 3.656 kB / 380.7 MB, free: 12.37 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.593e-05/0.244, allocations: 3.359 kB / 380.7 MB, free: 12.37 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001694/0.2442, allocations: 34.92 kB / 380.8 MB, free: 12.37 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.754e-06/0.2442, allocations: 2.516 kB / 380.8 MB, free: 12.37 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.481e-05/0.2443, allocations: 16.64 kB / 380.8 MB, free: 12.37 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.146e-05/0.2443, allocations: 4.922 kB / 380.8 MB, free: 12.37 MB / 318.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 6.42e-05/0.2444, allocations: 120.5 kB / 380.9 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.456e-05/0.2444, allocations: 19.33 kB / 380.9 MB, free: 12.25 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.935e-05/0.2444, allocations: 23.3 kB / 380.9 MB, free: 12.24 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.266e-06/0.2445, allocations: 1.375 kB / 380.9 MB, free: 12.24 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.578e-06/0.2445, allocations: 2.359 kB / 380.9 MB, free: 12.24 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.437e-06/0.2445, allocations: 0 / 380.9 MB, free: 12.24 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006957/0.2452, allocations: 0.4952 MB / 381.4 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.835e-06/0.2452, allocations: 0.6094 kB / 381.4 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001662/0.2454, allocations: 39.64 kB / 381.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.547e-06/0.2454, allocations: 1.375 kB / 381.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.198e-05/0.2454, allocations: 7.188 kB / 381.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.286e-06/0.2454, allocations: 2.125 kB / 381.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.2454, allocations: 1.375 kB / 381.5 MB, free: 11.93 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005066/0.2459, allocations: 322 kB / 381.8 MB, free: 11.77 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.009e-05/0.2459, allocations: 85.62 kB / 381.9 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.074e-05/0.246, allocations: 3.406 kB / 381.9 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001071/0.2461, allocations: 17.22 kB / 381.9 MB, free: 11.68 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.981e-05/0.2461, allocations: 13.11 kB / 381.9 MB, free: 11.67 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.624e-06/0.2462, allocations: 6.594 kB / 381.9 MB, free: 11.67 MB / 318.1 MB Notification: Performance of sorting global known variables: time 5.888e-05/0.2462, allocations: 117.2 kB / 382 MB, free: 11.6 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2462, allocations: 0 / 382 MB, free: 11.6 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0002429/0.2465, allocations: 23.81 kB / 382.1 MB, free: 11.59 MB / 318.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.0007202/0.2472, allocations: 0.8437 MB / 382.9 MB, free: 10.91 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.000394/0.2476, allocations: 127.3 kB / 383 MB, free: 10.91 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.2476, allocations: 7.938 kB / 383 MB, free: 10.9 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001996/0.2478, allocations: 64.61 kB / 383.1 MB, free: 10.9 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004133/0.2483, allocations: 35.33 kB / 383.1 MB, free: 10.9 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002042/0.2503, allocations: 1.952 MB / 385.1 MB, free: 9.547 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001383/0.2505, allocations: 0.712 MB / 385.8 MB, free: 8.844 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 5.676e-05/0.2505, allocations: 12.02 kB / 385.8 MB, free: 8.84 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.61e-05/0.2506, allocations: 39.06 kB / 385.9 MB, free: 8.816 MB / 318.1 MB Notification: Performance of SimCode: time 4.71e-07/0.2506, allocations: 1.125 kB / 385.9 MB, free: 8.816 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.3678/0.6184, allocations: 3.441 MB / 389.3 MB, free: 8.188 MB / 318.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.518/8.137, allocations: 12.73 kB / 389.3 MB, free: 8.176 MB / 318.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","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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