Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedRamp",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedRamp",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001128/0.001128, allocations: 197.5 kB / 17.38 MB, free: 4.312 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.431/1.431, allocations: 226.5 MB / 244.7 MB, free: 6.375 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007669/0.000767, allocations: 108.3 kB / 296.7 MB, free: 6.664 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002563/0.0002567, allocations: 8 kB / 356.8 MB, free: 10.58 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3036/0.3039, allocations: 51.31 MB / 408.1 MB, free: 27.66 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp): time 0.00154/0.3055, allocations: 1.195 MB / 409.3 MB, free: 26.46 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006246/0.3061, allocations: 407.4 kB / 409.7 MB, free: 26.06 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 7.115e-05/0.3062, allocations: 0 / 409.7 MB, free: 26.06 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.037e-05/0.3062, allocations: 3.984 kB / 409.7 MB, free: 26.06 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 6.689e-05/0.3063, allocations: 5.625 kB / 409.7 MB, free: 26.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002612/0.3066, allocations: 27.16 kB / 409.8 MB, free: 26.03 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.757e-05/0.3067, allocations: 31.86 kB / 409.8 MB, free: 26 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001246/0.3068, allocations: 13.58 kB / 409.8 MB, free: 25.99 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 5.571e-05/0.3069, allocations: 7.938 kB / 409.8 MB, free: 25.98 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 4.02e-05/0.3069, allocations: 19.92 kB / 409.8 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.911e-05/0.3069, allocations: 0 / 409.8 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.081e-05/0.3069, allocations: 2.125 kB / 409.8 MB, free: 25.96 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.694e-05/0.307, allocations: 11.92 kB / 409.9 MB, free: 25.95 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.476e-05/0.307, allocations: 41.62 kB / 409.9 MB, free: 25.9 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.627e-05/0.3071, allocations: 19.95 kB / 409.9 MB, free: 25.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 7.545e-06/0.3071, allocations: 0 / 409.9 MB, free: 25.88 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.084e-06/0.3071, allocations: 4.812 kB / 409.9 MB, free: 25.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.3071, allocations: 0 / 409.9 MB, free: 25.88 MB / 298.7 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.000426/0.3075, allocations: 354.1 kB / 410.3 MB, free: 25.49 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.734e-05/0.3076, allocations: 8.844 kB / 410.3 MB, free: 25.48 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 2.89e-05/0.3076, allocations: 34.75 kB / 410.3 MB, free: 25.44 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.458e-05/0.3077, allocations: 7.188 kB / 410.3 MB, free: 25.43 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001485/0.3078, allocations: 172.4 kB / 410.5 MB, free: 25.23 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.168e-05/0.3078, allocations: 4.375 kB / 410.5 MB, free: 25.22 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.232e-05/0.3079, allocations: 384 / 410.5 MB, free: 25.22 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004415/0.3083, allocations: 168.9 kB / 410.7 MB, free: 25.05 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.366e-06/0.3083, allocations: 0 / 410.7 MB, free: 25.05 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.17e-05/0.3083, allocations: 4 kB / 410.7 MB, free: 25.05 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.891e-06/0.3084, allocations: 0 / 410.7 MB, free: 25.05 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001721/0.3085, allocations: 51.94 kB / 410.7 MB, free: 25 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001185/0.3087, allocations: 161.7 kB / 410.9 MB, free: 24.79 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002545/0.3089, allocations: 94.52 kB / 411 MB, free: 24.69 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.715e-05/0.309, allocations: 40.91 kB / 411 MB, free: 24.64 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.465e-05/0.3091, allocations: 0 / 411 MB, free: 24.64 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.036e-05/0.3091, allocations: 42.44 kB / 411 MB, free: 24.59 MB / 298.7 MB Notification: Performance of pre-optimization done (n=4): time 7.92e-07/0.3091, allocations: 0 / 411 MB, free: 24.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=4): time 0.0003388/0.3094, allocations: 113.6 kB / 411.2 MB, free: 24.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.87e-05/0.3095, allocations: 51.41 kB / 411.2 MB, free: 24.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.404e-05/0.3096, allocations: 105.8 kB / 411.3 MB, free: 24.3 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.846e-06/0.3096, allocations: 25.7 kB / 411.3 MB, free: 24.27 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.422e-05/0.3096, allocations: 84.14 kB / 411.4 MB, free: 24.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 7.044e-06/0.3096, allocations: 7.984 kB / 411.4 MB, free: 24.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.615e-06/0.3096, allocations: 0 / 411.4 MB, free: 24.18 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.433e-05/0.3097, allocations: 314.8 kB / 411.7 MB, free: 23.86 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.848e-06/0.3097, allocations: 8 kB / 411.7 MB, free: 23.85 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.043e-05/0.3097, allocations: 35.36 kB / 411.8 MB, free: 23.8 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 2.982e-05/0.3098, allocations: 27.38 kB / 411.8 MB, free: 23.77 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.3098, allocations: 4 kB / 411.8 MB, free: 23.76 MB / 298.7 MB Notification: Performance of matching and sorting (n=4) (initialization): time 6.269e-05/0.3098, allocations: 65.42 kB / 411.9 MB, free: 23.69 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.759e-05/0.3099, allocations: 11.98 kB / 411.9 MB, free: 23.68 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.1e-06/0.3099, allocations: 0 / 411.9 MB, free: 23.68 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.475e-05/0.3099, allocations: 0 / 411.9 MB, free: 23.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 5.484e-05/0.31, allocations: 8 kB / 411.9 MB, free: 23.67 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.234e-06/0.31, allocations: 0 / 411.9 MB, free: 23.67 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 1.723e-05/0.31, allocations: 0 / 411.9 MB, free: 23.67 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.25e-06/0.31, allocations: 8 kB / 411.9 MB, free: 23.66 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 4 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.266e-05/0.3101, allocations: 125.8 kB / 412 MB, free: 23.53 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001728/0.3102, allocations: 85.59 kB / 412.1 MB, free: 23.44 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.836e-05/0.3103, allocations: 3.906 kB / 412.1 MB, free: 23.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.905e-06/0.3103, allocations: 3.984 kB / 412.1 MB, free: 23.42 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.637e-06/0.3103, allocations: 7.938 kB / 412.1 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.427e-06/0.3103, allocations: 0 / 412.1 MB, free: 23.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 6.159e-05/0.3104, allocations: 157.7 kB / 412.3 MB, free: 23.21 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.202e-06/0.3104, allocations: 0 / 412.3 MB, free: 23.21 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.874e-05/0.3105, allocations: 15.92 kB / 412.3 MB, free: 23.2 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.475e-06/0.3105, allocations: 4 kB / 412.3 MB, free: 23.19 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.394e-06/0.3105, allocations: 0 / 412.3 MB, free: 23.19 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.302e-06/0.3105, allocations: 0 / 412.3 MB, free: 23.19 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.3105, allocations: 3.984 kB / 412.3 MB, free: 23.19 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001959/0.3107, allocations: 121.3 kB / 412.4 MB, free: 23.05 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.278e-05/0.3107, allocations: 81.09 kB / 412.5 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.502e-05/0.3107, allocations: 3.984 kB / 412.5 MB, free: 22.95 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 4.899e-05/0.3108, allocations: 15.98 kB / 412.5 MB, free: 22.93 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.506e-06/0.3108, allocations: 0 / 412.5 MB, free: 22.93 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.108e-06/0.3108, allocations: 0 / 412.5 MB, free: 22.93 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.145e-05/0.3108, allocations: 83.59 kB / 412.6 MB, free: 22.85 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.3109, allocations: 0 / 412.6 MB, free: 22.85 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001762/0.311, allocations: 8 kB / 412.6 MB, free: 22.84 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * 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 (4): * Single equations (assignments): 4 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0003901/0.3114, allocations: 0.6513 MB / 413.2 MB, free: 22.16 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001494/0.3116, allocations: 43.97 kB / 413.3 MB, free: 22.12 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.515e-06/0.3116, allocations: 0 / 413.3 MB, free: 22.12 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.41e-07/0.3116, allocations: 0 / 413.3 MB, free: 22.12 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003364/0.312, allocations: 39.3 kB / 413.3 MB, free: 22.09 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005415/0.3125, allocations: 423.1 kB / 413.7 MB, free: 21.61 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001136/0.3126, allocations: 0.6809 MB / 414.4 MB, free: 20.9 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.624e-05/0.3127, allocations: 23.36 kB / 414.4 MB, free: 20.88 MB / 298.7 MB Notification: Performance of SimCode: time 4.61e-07/0.3127, allocations: 4 kB / 414.5 MB, free: 20.88 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.425/2.738, allocations: 0.795 MB / 415.2 MB, free: 20.09 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedRamp_fmu --startTime=0 --stopTime=1 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_TimeBasedRamp.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/TimeBasedRamp/TimeBasedRamp.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.TimeBasedRamp.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,assignClock1.y Variables in the result:assignClock1.u,assignClock1.y,periodicClock1.period,periodicClock1.useSolver,ramp.duration,ramp.height,ramp.offset,ramp.simTime,ramp.startTime,ramp.y,time