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.00107/0.00107, allocations: 99.02 kB / 17.58 MB, free: 5.418 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.001087/0.001087, allocations: 192 kB / 18.51 MB, free: 4.508 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.26/1.26, allocations: 205.1 MB / 224.4 MB, free: 12.3 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.001279/0.001279, allocations: 47.94 kB / 280.7 MB, free: 3.078 MB / 222.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07156/0.07285, allocations: 46.63 MB / 327.4 MB, free: 4.383 MB / 270.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002581/0.07546, allocations: 1.659 MB / 329 MB, free: 2.699 MB / 270.1 MB Notification: Performance of NFInst.instExpressions: time 0.0007746/0.07625, allocations: 0.523 MB / 329.6 MB, free: 2.168 MB / 270.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.311e-05/0.07635, allocations: 7.938 kB / 329.6 MB, free: 2.16 MB / 270.1 MB Notification: Performance of NFTyping.typeComponents: time 9.42e-05/0.07645, allocations: 11.86 kB / 329.6 MB, free: 2.148 MB / 270.1 MB Notification: Performance of NFTyping.typeBindings: time 7.152e-05/0.07653, allocations: 23.73 kB / 329.6 MB, free: 2.125 MB / 270.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001441/0.07669, allocations: 47.94 kB / 329.6 MB, free: 2.078 MB / 270.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001533/0.07685, allocations: 119.6 kB / 329.8 MB, free: 1.961 MB / 270.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001077/0.07696, allocations: 32.84 kB / 329.8 MB, free: 1.93 MB / 270.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.557e-05/0.07702, allocations: 51.77 kB / 329.8 MB, free: 1.879 MB / 270.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.754e-05/0.07711, allocations: 47.66 kB / 329.9 MB, free: 1.832 MB / 270.1 MB Notification: Performance of NFPackage.collectConstants: time 2.049e-05/0.07713, allocations: 8 kB / 329.9 MB, free: 1.824 MB / 270.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.739e-05/0.07716, allocations: 8 kB / 329.9 MB, free: 1.816 MB / 270.1 MB Notification: Performance of NFScalarize.scalarize: time 2.518e-05/0.07719, allocations: 23.86 kB / 329.9 MB, free: 1.793 MB / 270.1 MB Notification: Performance of NFVerifyModel.verify: time 5.177e-05/0.07724, allocations: 43.73 kB / 330 MB, free: 1.75 MB / 270.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001146/0.07736, allocations: 91.86 kB / 330.1 MB, free: 1.66 MB / 270.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.957e-06/0.07737, allocations: 0 / 330.1 MB, free: 1.66 MB / 270.1 MB Notification: Performance of FrontEnd: time 1.263e-06/0.07738, allocations: 4 kB / 330.1 MB, free: 1.656 MB / 270.1 MB Notification: Performance of Transformations before backend: time 4.799e-06/0.07739, allocations: 0 / 330.1 MB, free: 1.656 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.0005102/0.07791, allocations: 430.9 kB / 330.5 MB, free: 1.188 MB / 270.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.296e-05/0.07795, allocations: 8.031 kB / 330.5 MB, free: 1.18 MB / 270.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.997e-05/0.07799, allocations: 42.73 kB / 330.5 MB, free: 1.129 MB / 270.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.288e-05/0.07803, allocations: 16.75 kB / 330.6 MB, free: 1.113 MB / 270.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001942/0.07823, allocations: 212.6 kB / 330.8 MB, free: 0.8672 MB / 270.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.645e-05/0.07825, allocations: 12.38 kB / 330.8 MB, free: 0.8555 MB / 270.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.41e-05/0.07828, allocations: 11.94 kB / 330.8 MB, free: 0.8438 MB / 270.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002579/0.07855, allocations: 124.2 kB / 330.9 MB, free: 0.707 MB / 270.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.283e-05/0.07857, allocations: 7.891 kB / 330.9 MB, free: 0.6992 MB / 270.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.181e-05/0.07859, allocations: 4 kB / 330.9 MB, free: 0.6953 MB / 270.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.503e-06/0.0786, allocations: 4 kB / 330.9 MB, free: 0.6914 MB / 270.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001968/0.0788, allocations: 71.88 kB / 331 MB, free: 0.6211 MB / 270.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006259/0.07943, allocations: 0.5516 MB / 331.5 MB, free: 12 kB / 270.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003465/0.07979, allocations: 122.4 kB / 331.7 MB, free: 15.88 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000147/0.07995, allocations: 60.81 kB / 331.7 MB, free: 15.82 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.11e-05/0.07997, allocations: 4 kB / 331.7 MB, free: 15.82 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.091e-05/0.08, allocations: 30.56 kB / 331.8 MB, free: 15.78 MB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 1.232e-06/0.08, allocations: 0 / 331.8 MB, free: 15.78 MB / 286.1 MB Notification: Performance of matching and sorting (n=12): time 0.001056/0.08106, allocations: 0.5143 MB / 332.3 MB, free: 15.21 MB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.463e-05/0.08111, allocations: 55.41 kB / 332.3 MB, free: 15.14 MB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001129/0.08123, allocations: 150.3 kB / 332.5 MB, free: 14.99 MB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.714e-05/0.08125, allocations: 29.89 kB / 332.5 MB, free: 14.95 MB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.627e-05/0.08131, allocations: 111.9 kB / 332.6 MB, free: 14.84 MB / 286.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.99e-05/0.08135, allocations: 51.28 kB / 332.7 MB, free: 14.79 MB / 286.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.029e-05/0.08141, allocations: 37.7 kB / 332.7 MB, free: 14.75 MB / 286.1 MB Notification: Performance of setup shared object (initialization): time 9.438e-05/0.08151, allocations: 322.8 kB / 333 MB, free: 14.42 MB / 286.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001522/0.08167, allocations: 51.95 kB / 333.1 MB, free: 14.37 MB / 286.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001573/0.08183, allocations: 79.39 kB / 333.1 MB, free: 14.28 MB / 286.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002973/0.08214, allocations: 131.3 kB / 333.3 MB, free: 14.14 MB / 286.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.443e-06/0.08215, allocations: 0 / 333.3 MB, free: 14.14 MB / 286.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003717/0.08253, allocations: 189.3 kB / 333.5 MB, free: 13.95 MB / 286.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.397e-05/0.08255, allocations: 11.06 kB / 333.5 MB, free: 13.94 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.152e-06/0.08256, allocations: 4 kB / 333.5 MB, free: 13.94 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.115e-05/0.08258, allocations: 0 / 333.5 MB, free: 13.94 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001585/0.08274, allocations: 35.97 kB / 333.5 MB, free: 13.9 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.381e-06/0.08276, allocations: 4.094 kB / 333.5 MB, free: 13.9 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.08286, allocations: 15.98 kB / 333.5 MB, free: 13.88 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.382e-05/0.08289, allocations: 4 kB / 333.5 MB, free: 13.88 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.0001073/0.08301, allocations: 125.8 kB / 333.6 MB, free: 13.75 MB / 286.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.495e-05/0.08305, allocations: 15.78 kB / 333.7 MB, free: 13.73 MB / 286.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.959e-05/0.08309, allocations: 16.72 kB / 333.7 MB, free: 13.71 MB / 286.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.814e-06/0.0831, allocations: 0 / 333.7 MB, free: 13.71 MB / 286.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.598e-06/0.08311, allocations: 3.984 kB / 333.7 MB, free: 13.71 MB / 286.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.206e-06/0.08312, allocations: 4 kB / 333.7 MB, free: 13.7 MB / 286.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007383/0.08386, allocations: 499.9 kB / 334.2 MB, free: 13.15 MB / 286.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.337e-06/0.08388, allocations: 4 kB / 334.2 MB, free: 13.15 MB / 286.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001599/0.08404, allocations: 31.97 kB / 334.2 MB, free: 13.12 MB / 286.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.334e-06/0.08406, allocations: 4 kB / 334.2 MB, free: 13.11 MB / 286.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.07e-05/0.08407, allocations: 4 kB / 334.2 MB, free: 13.11 MB / 286.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.11e-06/0.08408, allocations: 7.938 kB / 334.2 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.08409, allocations: 0 / 334.2 MB, free: 13.1 MB / 286.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005285/0.08462, allocations: 313.9 kB / 334.5 MB, free: 12.77 MB / 286.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.948e-05/0.08467, allocations: 92.86 kB / 334.6 MB, free: 12.66 MB / 286.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.09e-05/0.0847, allocations: 4 kB / 334.6 MB, free: 12.66 MB / 286.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001118/0.08481, allocations: 16.03 kB / 334.6 MB, free: 12.64 MB / 286.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.137e-05/0.08486, allocations: 15.92 kB / 334.7 MB, free: 12.63 MB / 286.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.56e-06/0.08488, allocations: 4 kB / 334.7 MB, free: 12.62 MB / 286.1 MB Notification: Performance of sorting global known variables: time 7.146e-05/0.08495, allocations: 116.2 kB / 334.8 MB, free: 12.51 MB / 286.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08496, allocations: 3.938 kB / 334.8 MB, free: 12.51 MB / 286.1 MB Notification: Performance of remove unused functions: time 0.0002532/0.08522, allocations: 23.94 kB / 334.8 MB, free: 12.48 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.0007384/0.08597, allocations: 0.8508 MB / 335.7 MB, free: 11.6 MB / 286.1 MB Notification: Performance of simCode: created initialization part: time 0.0003501/0.08633, allocations: 131.8 kB / 335.8 MB, free: 11.47 MB / 286.1 MB Notification: Performance of simCode: created event and clocks part: time 1.884e-06/0.08634, allocations: 0 / 335.8 MB, free: 11.47 MB / 286.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001647/0.08651, allocations: 63.89 kB / 335.8 MB, free: 11.41 MB / 286.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004325/0.08695, allocations: 44.27 kB / 335.9 MB, free: 11.36 MB / 286.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002203/0.08916, allocations: 1.94 MB / 337.8 MB, free: 9.316 MB / 286.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002449/0.08942, allocations: 0.7123 MB / 338.5 MB, free: 8.578 MB / 286.1 MB Notification: Performance of simCode: alias equations: time 5.035e-05/0.08948, allocations: 9.422 kB / 338.5 MB, free: 8.57 MB / 286.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.109e-05/0.08956, allocations: 39.42 kB / 338.6 MB, free: 8.531 MB / 286.1 MB Notification: Performance of SimCode: time 2.7e-07/0.08956, allocations: 4 kB / 338.6 MB, free: 8.527 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01977/0.1093, allocations: 3.308 MB / 341.9 MB, free: 5.164 MB / 286.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.24/10.35, allocations: 11.64 kB / 341.9 MB, free: 5.152 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","/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