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.001687/0.001687, allocations: 117.2 kB / 17.78 MB, free: 5.383 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001681/0.001682, allocations: 200.6 kB / 18.73 MB, free: 4.441 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.483/1.483, allocations: 227.4 MB / 247 MB, free: 10.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001722/0.001722, allocations: 63.89 kB / 358.3 MB, free: 13.38 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2634/0.2651, allocations: 50.55 MB / 408.8 MB, free: 1.469 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.003016/0.2681, allocations: 1.689 MB / 410.5 MB, free: 15.78 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009117/0.2691, allocations: 0.5143 MB / 411 MB, free: 15.26 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.964e-05/0.2692, allocations: 3.938 kB / 411 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 7.094e-05/0.2692, allocations: 11.81 kB / 411 MB, free: 15.24 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 6.898e-05/0.2693, allocations: 27.73 kB / 411.1 MB, free: 15.21 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001338/0.2695, allocations: 47.92 kB / 411.1 MB, free: 15.17 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001626/0.2697, allocations: 111.6 kB / 411.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.749e-05/0.2698, allocations: 25.12 kB / 411.2 MB, free: 15.03 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.59e-05/0.2698, allocations: 43.77 kB / 411.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.373e-05/0.2699, allocations: 47.72 kB / 411.3 MB, free: 14.94 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.128e-05/0.2699, allocations: 8 kB / 411.3 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.937e-05/0.27, allocations: 8 kB / 411.3 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.286e-05/0.27, allocations: 19.86 kB / 411.4 MB, free: 14.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 5.344e-05/0.27, allocations: 51.67 kB / 411.4 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000141/0.2702, allocations: 90.67 kB / 411.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.287e-06/0.2702, allocations: 0 / 411.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.32e-07/0.2702, allocations: 0 / 411.5 MB, free: 14.77 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.474e-06/0.2702, allocations: 4 kB / 411.5 MB, free: 14.77 MB / 334.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.0005516/0.2708, allocations: 434.8 kB / 411.9 MB, free: 14.29 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.973e-05/0.2708, allocations: 8.031 kB / 411.9 MB, free: 14.28 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.986e-05/0.2709, allocations: 50.67 kB / 412 MB, free: 14.22 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.801e-05/0.2709, allocations: 12.84 kB / 412 MB, free: 14.21 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003123/0.2712, allocations: 216.7 kB / 412.2 MB, free: 13.96 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.736e-05/0.2713, allocations: 12.33 kB / 412.2 MB, free: 13.95 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.85e-05/0.2713, allocations: 15.94 kB / 412.2 MB, free: 13.93 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000278/0.2716, allocations: 122.6 kB / 412.4 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.427e-06/0.2716, allocations: 0 / 412.4 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.158e-05/0.2716, allocations: 8 kB / 412.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.931e-06/0.2716, allocations: 4 kB / 412.4 MB, free: 13.79 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002182/0.2718, allocations: 75.86 kB / 412.4 MB, free: 13.71 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006807/0.2725, allocations: 0.5477 MB / 413 MB, free: 13.11 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003589/0.2729, allocations: 130.4 kB / 413.1 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001634/0.2731, allocations: 60.81 kB / 413.2 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.481e-05/0.2731, allocations: 4 kB / 413.2 MB, free: 12.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.559e-05/0.2731, allocations: 30.56 kB / 413.2 MB, free: 12.87 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.092e-06/0.2731, allocations: 0 / 413.2 MB, free: 12.87 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.001159/0.2743, allocations: 0.5097 MB / 413.7 MB, free: 12.3 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.645e-05/0.2744, allocations: 55.41 kB / 413.8 MB, free: 12.24 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001478/0.2745, allocations: 150.2 kB / 413.9 MB, free: 12.08 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.474e-05/0.2745, allocations: 29.7 kB / 414 MB, free: 12.05 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.309e-05/0.2746, allocations: 108 kB / 414.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.027e-05/0.2747, allocations: 55.56 kB / 414.1 MB, free: 11.88 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.213e-05/0.2747, allocations: 30.66 kB / 414.1 MB, free: 11.85 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.2749, allocations: 322.8 kB / 414.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001702/0.2751, allocations: 51.95 kB / 414.5 MB, free: 11.47 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000175/0.2753, allocations: 85.64 kB / 414.6 MB, free: 11.38 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003095/0.2756, allocations: 138.8 kB / 414.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.41e-07/0.2756, allocations: 0 / 414.7 MB, free: 11.23 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003952/0.276, allocations: 181.4 kB / 414.9 MB, free: 11.05 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.502e-05/0.276, allocations: 7.938 kB / 414.9 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.276, allocations: 4 kB / 414.9 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.004e-05/0.276, allocations: 0 / 414.9 MB, free: 11.04 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001576/0.2762, allocations: 39.91 kB / 415 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.625e-06/0.2762, allocations: 4 kB / 415 MB, free: 11 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.676e-05/0.2763, allocations: 24.08 kB / 415 MB, free: 10.97 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.588e-06/0.2763, allocations: 4 kB / 415 MB, free: 10.97 MB / 334.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.0001002/0.2764, allocations: 121.8 kB / 415.1 MB, free: 10.84 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.585e-05/0.2765, allocations: 15.84 kB / 415.1 MB, free: 10.82 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.227e-05/0.2765, allocations: 20.7 kB / 415.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.683e-06/0.2765, allocations: 0 / 415.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.437e-06/0.2765, allocations: 0 / 415.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.719e-06/0.2765, allocations: 4 kB / 415.1 MB, free: 10.8 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008194/0.2774, allocations: 492 kB / 415.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.953e-06/0.2774, allocations: 3.938 kB / 415.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000164/0.2776, allocations: 40.03 kB / 415.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.086e-06/0.2776, allocations: 0 / 415.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.304e-05/0.2776, allocations: 4 kB / 415.7 MB, free: 10.21 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.496e-06/0.2776, allocations: 7.938 kB / 415.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.503e-06/0.2776, allocations: 0 / 415.7 MB, free: 10.2 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005938/0.2782, allocations: 313 kB / 416 MB, free: 9.871 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.694e-05/0.2783, allocations: 97.05 kB / 416.1 MB, free: 9.758 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.916e-05/0.2783, allocations: 0 / 416.1 MB, free: 9.758 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001134/0.2784, allocations: 11.98 kB / 416.1 MB, free: 9.746 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.356e-05/0.2785, allocations: 19.98 kB / 416.1 MB, free: 9.727 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.532e-06/0.2785, allocations: 3.938 kB / 416.1 MB, free: 9.723 MB / 334.1 MB Notification: Performance of sorting global known variables: time 9.545e-05/0.2786, allocations: 116.7 kB / 416.2 MB, free: 9.609 MB / 334.1 MB Notification: Performance of sort global known variables: time 2.054e-06/0.2786, allocations: 0 / 416.2 MB, free: 9.609 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002515/0.2789, allocations: 27.88 kB / 416.3 MB, free: 9.582 MB / 334.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.0009226/0.2798, allocations: 0.839 MB / 417.1 MB, free: 8.711 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003793/0.2802, allocations: 127.9 kB / 417.2 MB, free: 8.586 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.883e-06/0.2802, allocations: 96 / 417.2 MB, free: 8.586 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001744/0.2804, allocations: 67.84 kB / 417.3 MB, free: 8.52 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003995/0.2808, allocations: 44.45 kB / 417.3 MB, free: 8.477 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002585/0.2834, allocations: 1.948 MB / 419.3 MB, free: 6.414 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003552/0.2838, allocations: 0.7122 MB / 420 MB, free: 5.676 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.318e-05/0.2838, allocations: 17.42 kB / 420 MB, free: 5.66 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.827e-05/0.2839, allocations: 39.42 kB / 420 MB, free: 5.621 MB / 334.1 MB Notification: Performance of SimCode: time 6.22e-07/0.2839, allocations: 0 / 420 MB, free: 5.621 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05577/0.3397, allocations: 3.319 MB / 423.4 MB, free: 2.379 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.269/8.609, allocations: 14.34 kB / 423.4 MB, free: 2.367 MB / 334.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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_SlewRateLimiter_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_SlewRateLimiter.fmu > Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) "" 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