Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.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.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008625/0.0008625, allocations: 90.59 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001002/0.001002, allocations: 199.6 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.235/1.235, allocations: 227.7 MB / 246.8 MB, free: 11.29 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002222/0.0002223, allocations: 11.98 kB / 307.8 MB, free: 0.7031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09033/0.09057, allocations: 51.52 MB / 359.4 MB, free: 13.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.001858/0.09248, allocations: 1.196 MB / 360.6 MB, free: 11.98 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.0001881/0.09269, allocations: 31.91 kB / 360.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.735e-05/0.09276, allocations: 0 / 360.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 1.886e-05/0.09279, allocations: 7.938 kB / 360.6 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 4.175e-05/0.09284, allocations: 0 / 360.6 MB, free: 11.94 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002506/0.0931, allocations: 27.91 kB / 360.6 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 7.383e-05/0.09318, allocations: 27.92 kB / 360.7 MB, free: 11.89 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001019/0.09329, allocations: 11.98 kB / 360.7 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.734e-05/0.09335, allocations: 15.94 kB / 360.7 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.287e-05/0.0934, allocations: 19.86 kB / 360.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.8e-05/0.09343, allocations: 3.938 kB / 360.7 MB, free: 11.84 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.21e-05/0.09345, allocations: 4 kB / 360.7 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 2.268e-05/0.09347, allocations: 15.91 kB / 360.7 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.679e-05/0.09354, allocations: 37.64 kB / 360.8 MB, free: 11.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 9.491e-05/0.09364, allocations: 35.88 kB / 360.8 MB, free: 11.74 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.177e-06/0.09365, allocations: 0 / 360.8 MB, free: 11.74 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.09365, allocations: 0 / 360.8 MB, free: 11.74 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.416e-06/0.09366, allocations: 3.938 kB / 360.8 MB, free: 11.73 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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0004469/0.09411, allocations: 354.1 kB / 361.1 MB, free: 11.34 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.204e-05/0.09416, allocations: 12.03 kB / 361.2 MB, free: 11.33 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.272e-05/0.09421, allocations: 30.75 kB / 361.2 MB, free: 11.29 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.157e-05/0.09425, allocations: 8.844 kB / 361.2 MB, free: 11.28 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001838/0.09444, allocations: 180.3 kB / 361.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.09447, allocations: 384 / 361.4 MB, free: 11.07 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.161e-05/0.09449, allocations: 4.375 kB / 361.4 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005674/0.09506, allocations: 175.7 kB / 361.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.027e-06/0.09508, allocations: 3.938 kB / 361.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.037e-05/0.09509, allocations: 0 / 361.5 MB, free: 10.88 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.214e-06/0.09511, allocations: 4 kB / 361.6 MB, free: 10.87 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002704/0.09538, allocations: 51.94 kB / 361.6 MB, free: 10.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001501/0.09554, allocations: 161.7 kB / 361.8 MB, free: 10.61 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003114/0.09586, allocations: 86.45 kB / 361.8 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001434/0.09601, allocations: 36.91 kB / 361.9 MB, free: 10.48 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.042e-05/0.09604, allocations: 11.98 kB / 361.9 MB, free: 10.47 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.867e-05/0.09606, allocations: 30.56 kB / 361.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of pre-optimization done (n=4): time 9.62e-07/0.09607, allocations: 0 / 361.9 MB, free: 10.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004812/0.09655, allocations: 121.7 kB / 362 MB, free: 10.3 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.145e-05/0.09661, allocations: 63.33 kB / 362.1 MB, free: 10.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.514e-05/0.0967, allocations: 105.8 kB / 362.2 MB, free: 10.12 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.436e-05/0.09673, allocations: 25.7 kB / 362.2 MB, free: 10.09 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.272e-05/0.09677, allocations: 92.08 kB / 362.3 MB, free: 9.992 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.339e-05/0.09678, allocations: 3.906 kB / 362.3 MB, free: 9.988 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.266e-05/0.09681, allocations: 17.7 kB / 362.3 MB, free: 9.965 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000101/0.09692, allocations: 314.8 kB / 362.7 MB, free: 9.648 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.188e-05/0.09694, allocations: 4 kB / 362.7 MB, free: 9.645 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.251e-05/0.09697, allocations: 31.42 kB / 362.7 MB, free: 9.602 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.519e-05/0.09702, allocations: 39.38 kB / 362.7 MB, free: 9.551 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.984e-06/0.09703, allocations: 0 / 362.7 MB, free: 9.551 MB / 302.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.424e-05/0.09712, allocations: 61.62 kB / 362.8 MB, free: 9.484 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.09714, allocations: 7.938 kB / 362.8 MB, free: 9.477 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.863e-06/0.09715, allocations: 4 kB / 362.8 MB, free: 9.473 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.062e-05/0.09717, allocations: 8.062 kB / 362.8 MB, free: 9.465 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.893e-05/0.09724, allocations: 11.94 kB / 362.8 MB, free: 9.453 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.07e-06/0.09725, allocations: 0 / 362.8 MB, free: 9.453 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.013e-05/0.09727, allocations: 4 kB / 362.8 MB, free: 9.449 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.727e-06/0.09728, allocations: 0 / 362.8 MB, free: 9.449 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: 2 ($CLKPRE.ramp.counter,ramp.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (ramp.counter) * Top-level inputs: 0 Notification: Strong component statistics for initialization (5): * Single equations (assignments): 5 * 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 8.202e-05/0.09737, allocations: 121.8 kB / 362.9 MB, free: 9.32 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002837/0.09766, allocations: 93.48 kB / 363 MB, free: 9.223 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.089e-05/0.09769, allocations: 7.906 kB / 363 MB, free: 9.207 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.633e-06/0.0977, allocations: 0 / 363 MB, free: 9.207 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5e-06/0.09771, allocations: 8 kB / 363 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.445e-06/0.09772, allocations: 0 / 363 MB, free: 9.199 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 8.805e-05/0.09781, allocations: 157.7 kB / 363.2 MB, free: 8.996 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.725e-06/0.09782, allocations: 7.922 kB / 363.2 MB, free: 8.988 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 9.86e-05/0.09792, allocations: 15.98 kB / 363.2 MB, free: 8.973 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.587e-06/0.09793, allocations: 3.938 kB / 363.2 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.563e-06/0.09795, allocations: 0 / 363.2 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.223e-06/0.09795, allocations: 0 / 363.2 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.032e-06/0.09796, allocations: 0 / 363.2 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003099/0.09827, allocations: 121.1 kB / 363.3 MB, free: 8.832 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.712e-05/0.09833, allocations: 88.89 kB / 363.4 MB, free: 8.727 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.668e-05/0.09835, allocations: 3.938 kB / 363.4 MB, free: 8.723 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.749e-05/0.09842, allocations: 12.11 kB / 363.4 MB, free: 8.711 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.645e-06/0.09843, allocations: 0 / 363.4 MB, free: 8.711 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.432e-06/0.09844, allocations: 4 kB / 363.5 MB, free: 8.707 MB / 302.1 MB Notification: Performance of sorting global known variables: time 4.292e-05/0.09849, allocations: 91.27 kB / 363.5 MB, free: 8.617 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.09849, allocations: 0 / 363.5 MB, free: 8.617 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0001772/0.09868, allocations: 4 kB / 363.5 MB, free: 8.613 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 1 (ramp.counter) * Number of discrete states: 0 () * Number of clocked states: 1 (ramp.counter) * Top-level inputs: 0 Notification: Strong component statistics for simulation (4): * Single equations (assignments): 4 * 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.0007219/0.0994, allocations: 0.6904 MB / 364.2 MB, free: 7.895 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0001873/0.0996, allocations: 43.91 kB / 364.3 MB, free: 7.852 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.09961, allocations: 0 / 364.3 MB, free: 7.852 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 5.11e-07/0.09962, allocations: 0 / 364.3 MB, free: 7.852 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003589/0.09998, allocations: 52.05 kB / 364.3 MB, free: 7.805 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001008/0.101, allocations: 1.192 MB / 365.5 MB, free: 6.508 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002277/0.1012, allocations: 0.6887 MB / 366.2 MB, free: 5.793 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 2.056e-05/0.1013, allocations: 288 / 366.2 MB, free: 5.793 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.875e-05/0.1013, allocations: 15.38 kB / 366.2 MB, free: 5.777 MB / 302.1 MB Notification: Performance of SimCode: time 3.4e-07/0.1013, allocations: 4 kB / 366.2 MB, free: 5.773 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01035/0.1117, allocations: 1.267 MB / 367.5 MB, free: 4.656 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002589/0.112, allocations: 210.2 kB / 367.7 MB, free: 4.402 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.582/1.694, allocations: 0 / 367.7 MB, free: 4.402 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_TickBasedRamp.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TickBasedRamp/TickBasedRamp.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches