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.001759/0.001759, allocations: 122.8 kB / 17.79 MB, free: 5.258 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002203/0.002203, allocations: 201.2 kB / 18.74 MB, free: 4.312 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.572/1.572, allocations: 227.4 MB / 246.9 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001813/0.001813, allocations: 63.89 kB / 358.2 MB, free: 13.43 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2548/0.2567, allocations: 50.55 MB / 408.8 MB, free: 1.52 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002863/0.2596, allocations: 1.686 MB / 410.4 MB, free: 15.83 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009046/0.2605, allocations: 0.5104 MB / 411 MB, free: 15.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.875e-05/0.2606, allocations: 7.938 kB / 411 MB, free: 15.31 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001082/0.2607, allocations: 15.8 kB / 411 MB, free: 15.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 7.666e-05/0.2608, allocations: 27.73 kB / 411 MB, free: 15.27 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001555/0.261, allocations: 43.94 kB / 411 MB, free: 15.22 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002416/0.2612, allocations: 115.6 kB / 411.2 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001191/0.2613, allocations: 29.09 kB / 411.2 MB, free: 15.08 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.967e-05/0.2614, allocations: 39.8 kB / 411.2 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001002/0.2615, allocations: 47.72 kB / 411.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.029e-05/0.2615, allocations: 4 kB / 411.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.541e-05/0.2616, allocations: 8 kB / 411.3 MB, free: 14.98 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 2.99e-05/0.2616, allocations: 23.86 kB / 411.3 MB, free: 14.96 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.135e-05/0.2617, allocations: 55.66 kB / 411.4 MB, free: 14.9 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001467/0.2618, allocations: 86.67 kB / 411.4 MB, free: 14.82 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.7e-06/0.2618, allocations: 3.984 kB / 411.5 MB, free: 14.82 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.2618, allocations: 4 kB / 411.5 MB, free: 14.81 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.48e-06/0.2618, allocations: 0 / 411.5 MB, free: 14.81 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.0006072/0.2625, allocations: 430.8 kB / 411.9 MB, free: 14.34 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.933e-05/0.2625, allocations: 12.03 kB / 411.9 MB, free: 14.33 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.376e-05/0.2625, allocations: 34.75 kB / 411.9 MB, free: 14.29 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.673e-05/0.2626, allocations: 16.84 kB / 411.9 MB, free: 14.27 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002748/0.2629, allocations: 219.8 kB / 412.2 MB, free: 14.02 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.245e-05/0.2629, allocations: 16.27 kB / 412.2 MB, free: 14 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.272e-05/0.2629, allocations: 15.92 kB / 412.2 MB, free: 13.99 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002691/0.2632, allocations: 124.2 kB / 412.3 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.112e-05/0.2632, allocations: 0 / 412.3 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.411e-05/0.2633, allocations: 4 kB / 412.3 MB, free: 13.85 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.793e-06/0.2633, allocations: 8 kB / 412.3 MB, free: 13.84 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001883/0.2635, allocations: 63.89 kB / 412.4 MB, free: 13.78 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007073/0.2642, allocations: 0.5516 MB / 412.9 MB, free: 13.17 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003268/0.2645, allocations: 130.4 kB / 413.1 MB, free: 13.03 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001365/0.2647, allocations: 60.75 kB / 413.1 MB, free: 12.97 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.522e-05/0.2647, allocations: 8 kB / 413.1 MB, free: 12.96 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.695e-05/0.2647, allocations: 34.56 kB / 413.2 MB, free: 12.92 MB / 334.1 MB Notification: Performance of pre-optimization done (n=10): time 1.253e-06/0.2647, allocations: 0 / 413.2 MB, free: 12.92 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0011/0.2658, allocations: 0.5136 MB / 413.7 MB, free: 12.35 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.542e-05/0.2659, allocations: 55.41 kB / 413.7 MB, free: 12.29 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001521/0.266, allocations: 149.3 kB / 413.9 MB, free: 12.13 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.596e-05/0.2661, allocations: 33.7 kB / 413.9 MB, free: 12.09 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.663e-05/0.2662, allocations: 108 kB / 414 MB, free: 11.98 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.049e-05/0.2662, allocations: 47.58 kB / 414.1 MB, free: 11.94 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.605e-05/0.2663, allocations: 37.7 kB / 414.1 MB, free: 11.89 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001439/0.2664, allocations: 322.8 kB / 414.4 MB, free: 11.57 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001373/0.2666, allocations: 47.97 kB / 414.5 MB, free: 11.52 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001579/0.2667, allocations: 87.44 kB / 414.5 MB, free: 11.43 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002863/0.267, allocations: 131.3 kB / 414.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.32e-07/0.267, allocations: 0 / 414.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0003627/0.2674, allocations: 181.1 kB / 414.8 MB, free: 11.11 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.912e-05/0.2674, allocations: 15.86 kB / 414.9 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.689e-06/0.2675, allocations: 0 / 414.9 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.2675, allocations: 4 kB / 414.9 MB, free: 11.09 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00016/0.2676, allocations: 31.98 kB / 414.9 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.52e-06/0.2677, allocations: 4.094 kB / 414.9 MB, free: 11.05 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 7.962e-05/0.2677, allocations: 19.97 kB / 414.9 MB, free: 11.03 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.268e-06/0.2678, allocations: 4 kB / 414.9 MB, free: 11.03 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.0001143/0.2679, allocations: 129.8 kB / 415.1 MB, free: 10.89 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.547e-05/0.2679, allocations: 16.78 kB / 415.1 MB, free: 10.88 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.345e-05/0.268, allocations: 16.72 kB / 415.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.813e-06/0.268, allocations: 0 / 415.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.899e-06/0.268, allocations: 0 / 415.1 MB, free: 10.86 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.675e-06/0.268, allocations: 4 kB / 415.1 MB, free: 10.85 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0007848/0.2688, allocations: 0.4921 MB / 415.6 MB, free: 10.3 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.763e-06/0.2688, allocations: 8 kB / 415.6 MB, free: 10.29 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001593/0.269, allocations: 27.98 kB / 415.6 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.188e-06/0.269, allocations: 4 kB / 415.6 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.009e-05/0.269, allocations: 0 / 415.6 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.067e-06/0.269, allocations: 0 / 415.6 MB, free: 10.26 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.328e-06/0.269, allocations: 7.938 kB / 415.6 MB, free: 10.25 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005353/0.2695, allocations: 321 kB / 415.9 MB, free: 9.914 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.617e-05/0.2696, allocations: 89.02 kB / 416 MB, free: 9.809 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.298e-05/0.2696, allocations: 4 kB / 416 MB, free: 9.805 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001167/0.2698, allocations: 16.03 kB / 416 MB, free: 9.789 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.327e-05/0.2698, allocations: 15.98 kB / 416.1 MB, free: 9.773 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.333e-06/0.2698, allocations: 4 kB / 416.1 MB, free: 9.77 MB / 334.1 MB Notification: Performance of sorting global known variables: time 8.777e-05/0.2699, allocations: 111.2 kB / 416.2 MB, free: 9.66 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.954e-06/0.2699, allocations: 3.938 kB / 416.2 MB, free: 9.656 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002465/0.2702, allocations: 27.88 kB / 416.2 MB, free: 9.629 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.0008624/0.271, allocations: 0.847 MB / 417.1 MB, free: 8.75 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0003519/0.2714, allocations: 123.9 kB / 417.2 MB, free: 8.629 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.164e-06/0.2714, allocations: 0 / 417.2 MB, free: 8.629 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001681/0.2716, allocations: 67.89 kB / 417.2 MB, free: 8.562 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004045/0.272, allocations: 44.33 kB / 417.3 MB, free: 8.527 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002633/0.2746, allocations: 1.94 MB / 419.2 MB, free: 6.473 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003982/0.2751, allocations: 0.7122 MB / 419.9 MB, free: 5.734 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 6.057e-05/0.2751, allocations: 13.42 kB / 420 MB, free: 5.723 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.283e-05/0.2752, allocations: 43.42 kB / 420 MB, free: 5.68 MB / 334.1 MB Notification: Performance of SimCode: time 5.81e-07/0.2752, allocations: 0 / 420 MB, free: 5.68 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02599/0.3012, allocations: 3.333 MB / 423.3 MB, free: 2.422 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.025/8.327, allocations: 0 / 423.3 MB, free: 2.422 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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter_res.csv --start-time 0 --stop-time 1 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.001 Modelica_trunk_Modelica_Blocks_Examples_SlewRateLimiter.fmu > Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Blocks.Examples.SlewRateLimiter_res.csv","/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) Reference file matches