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.001234/0.001234, allocations: 116 kB / 17.33 MB, free: 6.008 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001405/0.001405, allocations: 205.8 kB / 18.27 MB, free: 5.09 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.262/1.262, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001568/0.001568, allocations: 72.34 kB / 306.6 MB, free: 0.8633 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09068/0.09227, allocations: 50.54 MB / 357.1 MB, free: 14.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.SlewRateLimiter): time 0.002889/0.09519, allocations: 1.729 MB / 358.8 MB, free: 12.59 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0008058/0.09602, allocations: 0.5104 MB / 359.3 MB, free: 12.08 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.752e-05/0.09613, allocations: 7.938 kB / 359.3 MB, free: 12.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001017/0.09624, allocations: 11.92 kB / 359.3 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000103/0.09637, allocations: 19.86 kB / 359.4 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001719/0.09655, allocations: 39.95 kB / 359.4 MB, free: 12 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001594/0.09673, allocations: 115.6 kB / 359.5 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001028/0.09684, allocations: 25.09 kB / 359.5 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.718e-05/0.0969, allocations: 43.8 kB / 359.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.949e-05/0.09699, allocations: 51.69 kB / 359.6 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.13e-05/0.09701, allocations: 8 kB / 359.6 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.782e-05/0.09705, allocations: 8 kB / 359.7 MB, free: 11.75 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.73e-05/0.09709, allocations: 19.94 kB / 359.7 MB, free: 11.73 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.038e-05/0.09715, allocations: 51.61 kB / 359.7 MB, free: 11.68 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001187/0.09727, allocations: 87.91 kB / 359.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.749e-06/0.09728, allocations: 4 kB / 359.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.163e-06/0.09729, allocations: 0 / 359.8 MB, free: 11.59 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.581e-06/0.0973, allocations: 0 / 359.8 MB, free: 11.59 MB / 302.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.0005349/0.09784, allocations: 426.9 kB / 360.2 MB, free: 11.12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.919e-05/0.09789, allocations: 12.03 kB / 360.2 MB, free: 11.11 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.869e-05/0.09796, allocations: 42.75 kB / 360.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.515e-05/0.09801, allocations: 8.844 kB / 360.3 MB, free: 11.05 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002027/0.09822, allocations: 217.5 kB / 360.5 MB, free: 10.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.56e-05/0.09824, allocations: 12.31 kB / 360.5 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.587e-05/0.09828, allocations: 15.94 kB / 360.5 MB, free: 10.78 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002655/0.09855, allocations: 124.1 kB / 360.7 MB, free: 10.64 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.254e-05/0.09857, allocations: 11.94 kB / 360.7 MB, free: 10.63 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.189e-05/0.09859, allocations: 4 kB / 360.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.0986, allocations: 0 / 360.7 MB, free: 10.62 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002232/0.09883, allocations: 67.94 kB / 360.7 MB, free: 10.56 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000717/0.09956, allocations: 0.5477 MB / 361.3 MB, free: 9.953 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004164/0.09999, allocations: 134.4 kB / 361.4 MB, free: 9.812 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001443/0.1001, allocations: 56.81 kB / 361.5 MB, free: 9.754 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.551e-05/0.1002, allocations: 3.984 kB / 361.5 MB, free: 9.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.353e-05/0.1002, allocations: 34.56 kB / 361.5 MB, free: 9.707 MB / 302.1 MB Notification: Performance of pre-optimization done (n=10): time 1.202e-06/0.1002, allocations: 0 / 361.5 MB, free: 9.707 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.001113/0.1013, allocations: 0.5096 MB / 362 MB, free: 9.145 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.891e-05/0.1014, allocations: 51.41 kB / 362.1 MB, free: 9.082 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001256/0.1015, allocations: 161.2 kB / 362.2 MB, free: 8.918 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.619e-05/0.1015, allocations: 29.7 kB / 362.3 MB, free: 8.883 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.182e-05/0.1016, allocations: 112 kB / 362.4 MB, free: 8.77 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.552e-05/0.1017, allocations: 39.36 kB / 362.4 MB, free: 8.73 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.335e-05/0.1017, allocations: 33.66 kB / 362.4 MB, free: 8.691 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001132/0.1018, allocations: 326.8 kB / 362.8 MB, free: 8.363 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001455/0.102, allocations: 51.95 kB / 362.8 MB, free: 8.312 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001517/0.1022, allocations: 87.33 kB / 362.9 MB, free: 8.215 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003503/0.1025, allocations: 135.3 kB / 363 MB, free: 8.07 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.312e-06/0.1025, allocations: 0 / 363 MB, free: 8.07 MB / 302.1 MB Notification: Performance of matching and sorting (n=17) (initialization): time 0.0004448/0.103, allocations: 176.9 kB / 363.2 MB, free: 7.895 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.711e-05/0.103, allocations: 11.94 kB / 363.2 MB, free: 7.883 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.841e-06/0.103, allocations: 4.094 kB / 363.2 MB, free: 7.879 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.284e-05/0.103, allocations: 0 / 363.2 MB, free: 7.879 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002129/0.1033, allocations: 39.91 kB / 363.2 MB, free: 7.84 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.163e-06/0.1033, allocations: 4 kB / 363.3 MB, free: 7.836 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.879e-05/0.1034, allocations: 15.98 kB / 363.3 MB, free: 7.82 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.149e-05/0.1034, allocations: 4 kB / 363.3 MB, free: 7.816 MB / 302.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.0001051/0.1035, allocations: 121.8 kB / 363.4 MB, free: 7.688 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.625e-05/0.1035, allocations: 19.84 kB / 363.4 MB, free: 7.668 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.426e-05/0.1036, allocations: 16.7 kB / 363.4 MB, free: 7.648 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.33e-06/0.1036, allocations: 4 kB / 363.4 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.979e-06/0.1036, allocations: 0 / 363.4 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.316e-06/0.1036, allocations: 0 / 363.4 MB, free: 7.645 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008222/0.1045, allocations: 0.493 MB / 363.9 MB, free: 7.09 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.365e-06/0.1045, allocations: 0 / 363.9 MB, free: 7.09 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001682/0.1046, allocations: 39.91 kB / 364 MB, free: 7.051 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.886e-06/0.1047, allocations: 0 / 364 MB, free: 7.051 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.431e-05/0.1047, allocations: 4 kB / 364 MB, free: 7.047 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.314e-06/0.1047, allocations: 96 / 364 MB, free: 7.047 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.324e-06/0.1047, allocations: 8 kB / 364 MB, free: 7.039 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005711/0.1053, allocations: 320.9 kB / 364.3 MB, free: 6.703 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.58e-05/0.1053, allocations: 92.95 kB / 364.4 MB, free: 6.594 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.801e-05/0.1054, allocations: 8 kB / 364.4 MB, free: 6.586 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001142/0.1055, allocations: 11.98 kB / 364.4 MB, free: 6.574 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.604e-05/0.1056, allocations: 11.98 kB / 364.4 MB, free: 6.562 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.874e-06/0.1056, allocations: 4 kB / 364.4 MB, free: 6.559 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001118/0.1057, allocations: 107.3 kB / 364.5 MB, free: 6.453 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1057, allocations: 0 / 364.5 MB, free: 6.453 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002885/0.106, allocations: 31.92 kB / 364.5 MB, free: 6.422 MB / 302.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.0008379/0.1068, allocations: 0.8466 MB / 365.4 MB, free: 5.539 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003621/0.1072, allocations: 127.8 kB / 365.5 MB, free: 5.414 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.545e-06/0.1072, allocations: 0 / 365.5 MB, free: 5.414 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002268/0.1075, allocations: 68.09 kB / 365.6 MB, free: 5.348 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004319/0.1079, allocations: 39.09 kB / 365.6 MB, free: 5.312 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002689/0.1106, allocations: 1.973 MB / 367.6 MB, free: 3.223 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003334/0.111, allocations: 0.7122 MB / 368.3 MB, free: 2.484 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 6.95e-05/0.111, allocations: 17.59 kB / 368.3 MB, free: 2.469 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.914e-05/0.1111, allocations: 39.42 kB / 368.4 MB, free: 2.43 MB / 302.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1111, allocations: 4 kB / 368.4 MB, free: 2.426 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1906/0.3017, allocations: 3.073 MB / 371.4 MB, free: 20.52 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001359/0.3019, allocations: 185.4 kB / 371.6 MB, free: 20.27 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.784/2.086, allocations: 4.641 kB / 371.6 MB, free: 20.27 MB / 302.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