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.001135/0.001135, allocations: 117.8 kB / 17.78 MB, free: 5.262 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001212/0.001212, allocations: 200.6 kB / 18.73 MB, free: 4.324 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.365/1.365, allocations: 227.4 MB / 246.9 MB, free: 10.48 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00136/0.00136, allocations: 64.08 kB / 358.2 MB, free: 13.45 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2636/0.2649, allocations: 50.55 MB / 408.8 MB, free: 1.535 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.003019/0.268, allocations: 1.677 MB / 410.4 MB, free: 15.86 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001027/0.2691, allocations: 0.5065 MB / 410.9 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001276/0.2692, allocations: 4 kB / 410.9 MB, free: 15.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001303/0.2694, allocations: 15.8 kB / 411 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001091/0.2695, allocations: 27.8 kB / 411 MB, free: 15.3 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001974/0.2697, allocations: 43.88 kB / 411 MB, free: 15.25 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000207/0.2699, allocations: 115.6 kB / 411.1 MB, free: 15.14 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001358/0.2701, allocations: 33.08 kB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 7.61e-05/0.2702, allocations: 43.78 kB / 411.2 MB, free: 15.06 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001026/0.2703, allocations: 47.72 kB / 411.3 MB, free: 15.02 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.371e-05/0.2703, allocations: 8 kB / 411.3 MB, free: 15.01 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.931e-05/0.2703, allocations: 8 kB / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.983e-05/0.2704, allocations: 15.92 kB / 411.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.972e-05/0.2704, allocations: 51.67 kB / 411.3 MB, free: 14.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001727/0.2706, allocations: 101.2 kB / 411.4 MB, free: 14.84 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.893e-06/0.2706, allocations: 4 kB / 411.4 MB, free: 14.83 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2706, allocations: 0 / 411.4 MB, free: 14.83 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.21e-05/0.2707, allocations: 0 / 411.4 MB, free: 14.83 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.0006523/0.2713, allocations: 423 kB / 411.9 MB, free: 14.37 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.64e-05/0.2714, allocations: 8.031 kB / 411.9 MB, free: 14.36 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.654e-05/0.2714, allocations: 42.73 kB / 411.9 MB, free: 14.31 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.388e-05/0.2715, allocations: 12.75 kB / 411.9 MB, free: 14.3 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003344/0.2718, allocations: 224.2 kB / 412.1 MB, free: 14.05 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.392e-05/0.2718, allocations: 16.31 kB / 412.2 MB, free: 14.03 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.384e-05/0.2719, allocations: 11.94 kB / 412.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002889/0.2722, allocations: 134.5 kB / 412.3 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.344e-05/0.2722, allocations: 0 / 412.3 MB, free: 13.88 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.312e-05/0.2722, allocations: 4 kB / 412.3 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.636e-06/0.2722, allocations: 4 kB / 412.3 MB, free: 13.87 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000185/0.2724, allocations: 67.94 kB / 412.4 MB, free: 13.8 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007053/0.2731, allocations: 0.5553 MB / 412.9 MB, free: 13.19 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003148/0.2735, allocations: 122.5 kB / 413 MB, free: 13.06 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001321/0.2736, allocations: 60.83 kB / 413.1 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.337e-05/0.2736, allocations: 0 / 413.1 MB, free: 13 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.093e-05/0.2737, allocations: 34.55 kB / 413.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.212e-06/0.2737, allocations: 0 / 413.1 MB, free: 12.95 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.001039/0.2747, allocations: 0.5096 MB / 413.6 MB, free: 12.39 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.713e-05/0.2748, allocations: 55.41 kB / 413.7 MB, free: 12.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001225/0.2749, allocations: 153.3 kB / 413.9 MB, free: 12.17 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.198e-05/0.2749, allocations: 29.7 kB / 413.9 MB, free: 12.13 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.448e-05/0.275, allocations: 115.9 kB / 414 MB, free: 12.02 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.273e-05/0.275, allocations: 39.39 kB / 414 MB, free: 11.98 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.997e-05/0.2751, allocations: 37.66 kB / 414.1 MB, free: 11.93 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.000108/0.2752, allocations: 322.8 kB / 414.4 MB, free: 11.61 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001403/0.2753, allocations: 55.86 kB / 414.4 MB, free: 11.55 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001456/0.2755, allocations: 80.33 kB / 414.5 MB, free: 11.46 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002771/0.2758, allocations: 142.8 kB / 414.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.072e-06/0.2758, allocations: 0 / 414.7 MB, free: 11.32 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003501/0.2761, allocations: 169.5 kB / 414.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.537e-05/0.2762, allocations: 7.938 kB / 414.8 MB, free: 11.14 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.434e-06/0.2762, allocations: 4 kB / 414.8 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.443e-05/0.2762, allocations: 96 / 414.8 MB, free: 11.13 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001617/0.2764, allocations: 43.91 kB / 414.9 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/0.2764, allocations: 4 kB / 414.9 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.666e-05/0.2765, allocations: 15.98 kB / 414.9 MB, free: 11.07 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.298e-06/0.2765, allocations: 7.938 kB / 414.9 MB, free: 11.06 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 9.652e-05/0.2766, allocations: 121.8 kB / 415 MB, free: 10.93 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.444e-05/0.2766, allocations: 15.75 kB / 415 MB, free: 10.92 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.221e-05/0.2767, allocations: 20.7 kB / 415.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.784e-06/0.2767, allocations: 4 kB / 415.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.348e-06/0.2767, allocations: 0 / 415.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.314e-06/0.2767, allocations: 3.984 kB / 415.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0006822/0.2774, allocations: 0.4959 MB / 415.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.144e-06/0.2774, allocations: 0 / 415.6 MB, free: 10.33 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001546/0.2776, allocations: 31.97 kB / 415.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.528e-06/0.2776, allocations: 4 kB / 415.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.027e-05/0.2776, allocations: 0 / 415.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.275e-05/0.2776, allocations: 11.98 kB / 415.6 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.2776, allocations: 0 / 415.6 MB, free: 10.28 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004908/0.2781, allocations: 320.9 kB / 415.9 MB, free: 9.945 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.368e-05/0.2782, allocations: 85.02 kB / 416 MB, free: 9.844 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.336e-05/0.2782, allocations: 8.031 kB / 416 MB, free: 9.836 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001075/0.2783, allocations: 15.98 kB / 416 MB, free: 9.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.937e-05/0.2784, allocations: 11.98 kB / 416 MB, free: 9.809 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.496e-06/0.2784, allocations: 4 kB / 416 MB, free: 9.805 MB / 334.1 MB Notification: Performance of sorting global known variables: time 7.145e-05/0.2784, allocations: 111.2 kB / 416.2 MB, free: 9.695 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.61e-07/0.2785, allocations: 0 / 416.2 MB, free: 9.695 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002864/0.2787, allocations: 23.94 kB / 416.2 MB, free: 9.672 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.0007493/0.2795, allocations: 0.8508 MB / 417 MB, free: 8.789 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003336/0.2799, allocations: 124 kB / 417.1 MB, free: 8.668 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.2799, allocations: 0 / 417.1 MB, free: 8.668 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001533/0.28, allocations: 71.92 kB / 417.2 MB, free: 8.598 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003891/0.2804, allocations: 43.19 kB / 417.3 MB, free: 8.559 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002156/0.2826, allocations: 1.932 MB / 419.2 MB, free: 6.512 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002355/0.2828, allocations: 0.7083 MB / 419.9 MB, free: 5.777 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 5.594e-05/0.2829, allocations: 13.42 kB / 419.9 MB, free: 5.766 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.028e-05/0.283, allocations: 47.42 kB / 420 MB, free: 5.719 MB / 334.1 MB Notification: Performance of SimCode: time 5.81e-07/0.283, allocations: 0 / 420 MB, free: 5.719 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02009/0.3031, allocations: 3.404 MB / 423.4 MB, free: 2.391 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.382/7.685, allocations: 0 / 423.4 MB, free: 2.391 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.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) "" 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