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.001442/0.001442, allocations: 117.7 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.001729/0.001729, allocations: 204.6 kB / 18.73 MB, free: 4.32 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.508/1.508, allocations: 227.4 MB / 246.9 MB, free: 10.46 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001271/0.001271, allocations: 63.89 kB / 358.2 MB, free: 13.4 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3768/0.3781, allocations: 50.53 MB / 408.8 MB, free: 1.543 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TickBasedRamp): time 0.002451/0.3806, allocations: 1.475 MB / 410.2 MB, free: 68 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.0002217/0.3808, allocations: 31.91 kB / 410.3 MB, free: 36 kB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.688e-05/0.3809, allocations: 3.938 kB / 410.3 MB, free: 32 kB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 2.741e-05/0.3809, allocations: 0 / 410.3 MB, free: 32 kB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 4.382e-05/0.381, allocations: 3.938 kB / 410.3 MB, free: 28 kB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002482/0.3812, allocations: 31.98 kB / 410.3 MB, free: 15.99 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 7.932e-05/0.3813, allocations: 35.97 kB / 410.3 MB, free: 15.96 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.078e-05/0.3814, allocations: 8 kB / 410.3 MB, free: 15.95 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 5.017e-05/0.3815, allocations: 19.86 kB / 410.4 MB, free: 15.93 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 4.231e-05/0.3815, allocations: 23.83 kB / 410.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 1.668e-05/0.3816, allocations: 4 kB / 410.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 9.728e-06/0.3816, allocations: 4 kB / 410.4 MB, free: 15.9 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 1.859e-05/0.3816, allocations: 7.938 kB / 410.4 MB, free: 15.89 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 4.064e-05/0.3816, allocations: 19.92 kB / 410.4 MB, free: 15.88 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 9.336e-05/0.3817, allocations: 47.81 kB / 410.5 MB, free: 15.83 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.338e-06/0.3817, allocations: 0 / 410.5 MB, free: 15.83 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.3818, allocations: 0 / 410.5 MB, free: 15.83 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.576e-06/0.3818, allocations: 0 / 410.5 MB, free: 15.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: 7 * Number of variables: 7 Notification: Performance of Generate backend data structure: time 0.0005113/0.3823, allocations: 357.1 kB / 410.8 MB, free: 15.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.803e-05/0.3823, allocations: 8.031 kB / 410.8 MB, free: 15.42 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.38e-05/0.3824, allocations: 34.75 kB / 410.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.628e-05/0.3824, allocations: 4.844 kB / 410.9 MB, free: 15.38 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001964/0.3826, allocations: 184.3 kB / 411 MB, free: 15.16 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.967e-05/0.3826, allocations: 4.375 kB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.143e-05/0.3826, allocations: 4.375 kB / 411.1 MB, free: 15.15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005447/0.3832, allocations: 155.7 kB / 411.2 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.022e-05/0.3832, allocations: 3.938 kB / 411.2 MB, free: 14.98 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.11e-05/0.3832, allocations: 11.98 kB / 411.2 MB, free: 14.97 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.388e-06/0.3832, allocations: 0 / 411.2 MB, free: 14.97 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002462/0.3835, allocations: 39.95 kB / 411.3 MB, free: 14.93 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001531/0.3837, allocations: 173.5 kB / 411.4 MB, free: 14.71 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003389/0.384, allocations: 82.45 kB / 411.5 MB, free: 14.62 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001402/0.3842, allocations: 36.91 kB / 411.5 MB, free: 14.58 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.252e-05/0.3842, allocations: 4 kB / 411.6 MB, free: 14.58 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.367e-05/0.3842, allocations: 30.56 kB / 411.6 MB, free: 14.54 MB / 334.1 MB Notification: Performance of pre-optimization done (n=4): time 1.252e-06/0.3842, allocations: 0 / 411.6 MB, free: 14.54 MB / 334.1 MB Notification: Performance of matching and sorting (n=4): time 0.0004947/0.3847, allocations: 129.6 kB / 411.7 MB, free: 14.41 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.173e-05/0.3848, allocations: 59.34 kB / 411.8 MB, free: 14.34 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.07e-05/0.3848, allocations: 105.8 kB / 411.9 MB, free: 14.22 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.587e-05/0.3849, allocations: 25.7 kB / 411.9 MB, free: 14.19 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 3.669e-05/0.3849, allocations: 88.14 kB / 412 MB, free: 14.1 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.26e-05/0.3849, allocations: 0 / 412 MB, free: 14.1 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.152e-05/0.385, allocations: 21.7 kB / 412 MB, free: 14.07 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 9.461e-05/0.3851, allocations: 310.8 kB / 412.3 MB, free: 13.76 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.447e-05/0.3851, allocations: 8 kB / 412.3 MB, free: 13.75 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.312e-05/0.3851, allocations: 31.42 kB / 412.3 MB, free: 13.71 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 4.357e-05/0.3852, allocations: 35.38 kB / 412.4 MB, free: 13.66 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.933e-06/0.3852, allocations: 4 kB / 412.4 MB, free: 13.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=5) (initialization): time 8.738e-05/0.3853, allocations: 65.53 kB / 412.4 MB, free: 13.59 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.5e-05/0.3853, allocations: 7.938 kB / 412.5 MB, free: 13.58 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.04e-06/0.3853, allocations: 7.938 kB / 412.5 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.165e-05/0.3853, allocations: 0 / 412.5 MB, free: 13.57 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.685e-05/0.3854, allocations: 8 kB / 412.5 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.421e-06/0.3854, allocations: 0 / 412.5 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.113e-05/0.3854, allocations: 4 kB / 412.5 MB, free: 13.56 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.046e-06/0.3854, allocations: 4.125 kB / 412.5 MB, free: 13.55 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: 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 7.648e-05/0.3855, allocations: 117.9 kB / 412.6 MB, free: 13.43 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002829/0.3858, allocations: 97.5 kB / 412.7 MB, free: 13.33 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.949e-05/0.3858, allocations: 7.906 kB / 412.7 MB, free: 13.31 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.577e-06/0.3858, allocations: 4 kB / 412.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.3859, allocations: 0 / 412.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.534e-06/0.3859, allocations: 0 / 412.7 MB, free: 13.3 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.968e-05/0.386, allocations: 161.6 kB / 412.9 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.386, allocations: 0 / 412.9 MB, free: 13.1 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001029/0.3861, allocations: 15.97 kB / 412.9 MB, free: 13.08 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.217e-06/0.3861, allocations: 11.94 kB / 412.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.556e-06/0.3861, allocations: 0 / 412.9 MB, free: 13.07 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.483e-06/0.3861, allocations: 7.875 kB / 412.9 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.52e-07/0.3861, allocations: 0 / 412.9 MB, free: 13.06 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002996/0.3864, allocations: 113.1 kB / 413 MB, free: 12.93 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.63e-05/0.3865, allocations: 81.02 kB / 413.1 MB, free: 12.84 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.734e-05/0.3865, allocations: 3.938 kB / 413.1 MB, free: 12.83 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.832e-05/0.3866, allocations: 11.98 kB / 413.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.31e-06/0.3866, allocations: 4 kB / 413.1 MB, free: 12.82 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.323e-06/0.3866, allocations: 7.938 kB / 413.1 MB, free: 12.81 MB / 334.1 MB Notification: Performance of sorting global known variables: time 4.462e-05/0.3867, allocations: 83.27 kB / 413.2 MB, free: 12.73 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3867, allocations: 0 / 413.2 MB, free: 12.73 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0001938/0.3869, allocations: 12 kB / 413.2 MB, free: 12.71 MB / 334.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.0007044/0.3876, allocations: 0.6788 MB / 413.9 MB, free: 12.01 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0001928/0.3878, allocations: 39.91 kB / 413.9 MB, free: 11.97 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.3878, allocations: 0 / 413.9 MB, free: 11.97 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 5.21e-07/0.3878, allocations: 0 / 413.9 MB, free: 11.97 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003479/0.3881, allocations: 43.98 kB / 414 MB, free: 11.93 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001052/0.3892, allocations: 1.193 MB / 415.2 MB, free: 10.63 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002343/0.3895, allocations: 0.6809 MB / 415.8 MB, free: 9.926 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 2.459e-05/0.3895, allocations: 0 / 415.8 MB, free: 9.926 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.132e-05/0.3895, allocations: 19.42 kB / 415.9 MB, free: 9.906 MB / 334.1 MB Notification: Performance of SimCode: time 2.1e-07/0.3895, allocations: 0 / 415.9 MB, free: 9.906 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01685/0.4064, allocations: 1.512 MB / 417.4 MB, free: 8.512 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.185/8.591, allocations: 19.88 kB / 417.4 MB, free: 8.492 MB / 334.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