Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.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.AssignClockToTriggerHold,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,fileNamePrefix="Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001405/0.001405, allocations: 195.8 kB / 17.38 MB, free: 4.43 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.427/1.427, allocations: 226.5 MB / 244.7 MB, free: 8.219 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0007514/0.0007514, allocations: 94.83 kB / 296.7 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002349/0.0002349, allocations: 8 kB / 356.8 MB, free: 10.8 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2605/0.2608, allocations: 51.28 MB / 408.1 MB, free: 27.7 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.00161/0.2624, allocations: 1.351 MB / 409.5 MB, free: 26.35 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007143/0.2632, allocations: 0.5004 MB / 410 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.955e-05/0.2633, allocations: 0 / 410 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.597e-05/0.2633, allocations: 7.922 kB / 410 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001347/0.2635, allocations: 12.67 kB / 410 MB, free: 25.82 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002795/0.2638, allocations: 49.67 kB / 410 MB, free: 25.78 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.715e-05/0.2639, allocations: 55.78 kB / 410.1 MB, free: 25.72 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001061/0.264, allocations: 32.22 kB / 410.1 MB, free: 25.69 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001615/0.2642, allocations: 28.97 kB / 410.2 MB, free: 25.66 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001094/0.2643, allocations: 19.86 kB / 410.2 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.391e-05/0.2643, allocations: 6.875 kB / 410.2 MB, free: 25.64 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.08e-05/0.2643, allocations: 4 kB / 410.2 MB, free: 25.63 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.798e-05/0.2644, allocations: 19.91 kB / 410.2 MB, free: 25.61 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.253e-05/0.2644, allocations: 53.45 kB / 410.3 MB, free: 25.55 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 9.262e-05/0.2645, allocations: 55.89 kB / 410.3 MB, free: 25.5 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.679e-06/0.2645, allocations: 0 / 410.3 MB, free: 25.5 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.783e-06/0.2646, allocations: 0 / 410.3 MB, free: 25.5 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.607e-06/0.2646, allocations: 0 / 410.3 MB, free: 25.5 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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0003972/0.265, allocations: 377.7 kB / 410.7 MB, free: 25.09 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.862e-05/0.265, allocations: 8.531 kB / 410.7 MB, free: 25.08 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.804e-05/0.2651, allocations: 43.58 kB / 410.7 MB, free: 25.03 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001865/0.2653, allocations: 20.56 kB / 410.8 MB, free: 25.01 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001443/0.2654, allocations: 206.2 kB / 411 MB, free: 24.77 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.172e-05/0.2655, allocations: 8.375 kB / 411 MB, free: 24.77 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.246e-05/0.2655, allocations: 4.375 kB / 411 MB, free: 24.76 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002663/0.2658, allocations: 146 kB / 411.1 MB, free: 24.6 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.458e-06/0.2658, allocations: 0 / 411.1 MB, free: 24.6 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.909e-06/0.2658, allocations: 0.9688 kB / 411.1 MB, free: 24.6 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.2658, allocations: 4 kB / 411.1 MB, free: 24.6 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000105/0.2659, allocations: 39.97 kB / 411.2 MB, free: 24.56 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004724/0.2664, allocations: 313.5 kB / 411.5 MB, free: 24.2 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001911/0.2666, allocations: 162.2 kB / 411.6 MB, free: 24 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.745e-05/0.2667, allocations: 37.8 kB / 411.7 MB, free: 23.96 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.9e-05/0.2667, allocations: 0 / 411.7 MB, free: 23.96 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001273/0.2668, allocations: 71.39 kB / 411.7 MB, free: 23.88 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.363e-06/0.2668, allocations: 0 / 411.7 MB, free: 23.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003477/0.2672, allocations: 117.5 kB / 411.8 MB, free: 23.76 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.294e-05/0.2673, allocations: 85.09 kB / 411.9 MB, free: 23.66 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.558e-05/0.2674, allocations: 141.8 kB / 412.1 MB, free: 23.51 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.001e-05/0.2674, allocations: 29.7 kB / 412.1 MB, free: 23.47 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.51e-05/0.2674, allocations: 99.97 kB / 412.2 MB, free: 23.37 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.518e-05/0.2675, allocations: 11.84 kB / 412.2 MB, free: 23.36 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.249e-06/0.2675, allocations: 4 kB / 412.2 MB, free: 23.36 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.042e-05/0.2675, allocations: 326.8 kB / 412.5 MB, free: 23.03 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.558e-05/0.2676, allocations: 19.98 kB / 412.5 MB, free: 23.01 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.284e-05/0.2677, allocations: 69.08 kB / 412.6 MB, free: 22.92 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001166/0.2678, allocations: 85.08 kB / 412.7 MB, free: 22.82 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.685e-06/0.2678, allocations: 4 kB / 412.7 MB, free: 22.82 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000167/0.268, allocations: 113.4 kB / 412.8 MB, free: 22.7 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.193e-05/0.268, allocations: 7.938 kB / 412.8 MB, free: 22.69 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.36e-06/0.268, allocations: 4 kB / 412.8 MB, free: 22.69 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.521e-05/0.268, allocations: 4.156 kB / 412.8 MB, free: 22.68 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.938e-05/0.2681, allocations: 23.92 kB / 412.9 MB, free: 22.66 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.178e-05/0.2682, allocations: 4 kB / 412.9 MB, free: 22.66 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.095e-05/0.2682, allocations: 8.219 kB / 412.9 MB, free: 22.65 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.295e-06/0.2683, allocations: 4 kB / 412.9 MB, free: 22.64 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * Number of states: 0 () * Number of discrete variables: 8 ($PRE.triggeredSampler.y,triggeredSampler.y,clockToTrigger.y2,$CLKPRE.clockToTrigger.y2,$whenCondition1,triggeredSampler.trigger,$PRE.clockToTrigger.y3,clockToTrigger.y3) * Number of discrete states: 0 () * Number of clocked states: 1 (clockToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for initialization (12): * Single equations (assignments): 12 * 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 7.433e-05/0.2683, allocations: 132.8 kB / 413 MB, free: 22.51 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.837e-05/0.2684, allocations: 49.73 kB / 413 MB, free: 22.45 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.924e-05/0.2684, allocations: 16.34 kB / 413.1 MB, free: 22.43 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.2684, allocations: 15.98 kB / 413.1 MB, free: 22.41 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.877e-06/0.2685, allocations: 0 / 413.1 MB, free: 22.41 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.965e-06/0.2685, allocations: 0 / 413.1 MB, free: 22.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002532/0.2687, allocations: 346.6 kB / 413.4 MB, free: 22.02 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.2687, allocations: 4 kB / 413.4 MB, free: 22.02 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.191e-05/0.2688, allocations: 15.92 kB / 413.4 MB, free: 22 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.525e-06/0.2688, allocations: 4 kB / 413.4 MB, free: 22 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.727e-06/0.2688, allocations: 0 / 413.4 MB, free: 22 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.2688, allocations: 7.938 kB / 413.4 MB, free: 21.99 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.383e-06/0.2688, allocations: 0 / 413.4 MB, free: 21.99 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002346/0.2691, allocations: 204.2 kB / 413.6 MB, free: 21.77 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.463e-05/0.2692, allocations: 96.84 kB / 413.7 MB, free: 21.66 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.911e-05/0.2692, allocations: 12 kB / 413.8 MB, free: 21.64 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.869e-05/0.2693, allocations: 3.938 kB / 413.8 MB, free: 21.64 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.119e-05/0.2693, allocations: 7.984 kB / 413.8 MB, free: 21.63 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.123e-06/0.2693, allocations: 4 kB / 413.8 MB, free: 21.63 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.112e-05/0.2694, allocations: 114.5 kB / 413.9 MB, free: 21.52 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.2e-07/0.2694, allocations: 96 / 413.9 MB, free: 21.52 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002177/0.2696, allocations: 15.94 kB / 413.9 MB, free: 21.5 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 5 (clockToTrigger.y2,triggeredSampler.trigger,$whenCondition1,triggeredSampler.y,clockToTrigger.y3) * Number of discrete states: 1 (clockToTrigger.y3) * Number of clocked states: 1 (clockToTrigger.y2) * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 8 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 1 * 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.0004868/0.2701, allocations: 0.764 MB / 414.7 MB, free: 20.71 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001864/0.2704, allocations: 72.09 kB / 414.7 MB, free: 20.64 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.024e-06/0.2704, allocations: 0 / 414.7 MB, free: 20.64 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.736e-05/0.2704, allocations: 23.98 kB / 414.8 MB, free: 20.62 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003211/0.2708, allocations: 27.95 kB / 414.8 MB, free: 20.59 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009081/0.2717, allocations: 0.6754 MB / 415.5 MB, free: 19.84 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001341/0.2718, allocations: 0.7004 MB / 416.2 MB, free: 19.11 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.011e-05/0.2719, allocations: 23.42 kB / 416.2 MB, free: 19.09 MB / 298.7 MB Notification: Performance of SimCode: time 2e-07/0.2719, allocations: 0 / 416.2 MB, free: 19.09 MB / 298.7 MB Notification: Performance of buildModelFMU: Generate C++ for platform static: time 2.503/2.775, allocations: 1.295 MB / 417.5 MB, free: 17.8 MB / 298.7 MB (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.sim & /home/hudson/saved_omc/OMSimulator/install/linux/bin/OMSimulator -r=Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat --tempDir=temp_Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_cpp_Modelica_Clocked_Examples_Elementary_RealSignals_AssignClockToTriggerHold.fmu > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/AssignClockToTriggerHold/AssignClockToTriggerHold.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:time,sample1.y,triggeredSampler.y Variables in the result:clockToTrigger.u,clockToTrigger.uu,clockToTrigger.y,clockToTrigger.y2,clockToTrigger.y3,clockToTrigger.y_start,periodicClock.factor,periodicClock.resolution,periodicClock.resolutionFactor,periodicClock.useSolver,previous(clockToTrigger.y2),sample1.u,sample1.y,sine.amplitude,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,time,triggeredSampler.trigger,triggeredSampler.u,triggeredSampler.y,triggeredSampler.y_start