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: translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|triggeredSampler.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold") translateModel(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|triggeredSampler.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001799/0.001799, allocations: 198.4 kB / 17.38 MB, free: 4.41 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 226.5 MB / 244.7 MB, free: 6.48 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0009303/0.0009302, allocations: 96.5 kB / 296.8 MB, free: 6.699 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002518/0.0002518, allocations: 4 kB / 356.8 MB, free: 10.71 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2325/0.2327, allocations: 51.3 MB / 408.1 MB, free: 27.71 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold): time 0.001577/0.2344, allocations: 1.345 MB / 409.4 MB, free: 26.36 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0007814/0.2352, allocations: 0.4996 MB / 409.9 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.598e-05/0.2353, allocations: 0 / 409.9 MB, free: 25.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 3.806e-05/0.2353, allocations: 10.7 kB / 409.9 MB, free: 25.85 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001477/0.2355, allocations: 7.938 kB / 409.9 MB, free: 25.84 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003409/0.2358, allocations: 47.89 kB / 410 MB, free: 25.79 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001023/0.2359, allocations: 63.77 kB / 410 MB, free: 25.73 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000114/0.2361, allocations: 16.23 kB / 410 MB, free: 25.71 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001122/0.2362, allocations: 28.8 kB / 410.1 MB, free: 25.68 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.216e-05/0.2363, allocations: 31.83 kB / 410.1 MB, free: 25.65 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.732e-05/0.2363, allocations: 1.219 kB / 410.1 MB, free: 25.65 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.449e-05/0.2363, allocations: 4 kB / 410.1 MB, free: 25.65 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.062e-05/0.2364, allocations: 19.92 kB / 410.1 MB, free: 25.63 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.125e-05/0.2364, allocations: 58.48 kB / 410.2 MB, free: 25.57 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000102/0.2366, allocations: 47.89 kB / 410.2 MB, free: 25.52 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.95e-06/0.2366, allocations: 0 / 410.2 MB, free: 25.52 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.573e-06/0.2366, allocations: 0.75 kB / 410.2 MB, free: 25.52 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.107e-06/0.2366, allocations: 4 kB / 410.2 MB, free: 25.52 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.0004692/0.2371, allocations: 380 kB / 410.6 MB, free: 25.1 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.893e-05/0.2371, allocations: 13.28 kB / 410.6 MB, free: 25.09 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001602/0.2373, allocations: 20.83 kB / 410.6 MB, free: 25.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001563/0.2374, allocations: 205.4 kB / 410.8 MB, free: 24.83 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.633e-05/0.2375, allocations: 8.312 kB / 410.8 MB, free: 24.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.504e-05/0.2375, allocations: 8.375 kB / 410.9 MB, free: 24.82 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003188/0.2378, allocations: 140.8 kB / 411 MB, free: 24.67 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.084e-05/0.2378, allocations: 3.984 kB / 411 MB, free: 24.66 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.363e-05/0.2379, allocations: 4 kB / 411 MB, free: 24.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.422e-06/0.2379, allocations: 4 kB / 411 MB, free: 24.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001245/0.238, allocations: 31.97 kB / 411 MB, free: 24.62 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004522/0.2385, allocations: 317.5 kB / 411.3 MB, free: 24.26 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002106/0.2387, allocations: 158.3 kB / 411.5 MB, free: 24.07 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.241e-05/0.2388, allocations: 41.73 kB / 411.5 MB, free: 24.02 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.357e-05/0.2388, allocations: 0 / 411.5 MB, free: 24.02 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001447/0.239, allocations: 67.45 kB / 411.6 MB, free: 23.95 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 2.455e-06/0.239, allocations: 4 kB / 411.6 MB, free: 23.94 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0003187/0.2393, allocations: 121.5 kB / 411.7 MB, free: 23.82 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.501e-05/0.2394, allocations: 85.11 kB / 411.8 MB, free: 23.71 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.613e-05/0.2395, allocations: 137.8 kB / 411.9 MB, free: 23.57 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.302e-05/0.2395, allocations: 29.7 kB / 412 MB, free: 23.54 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.604e-05/0.2395, allocations: 92.05 kB / 412.1 MB, free: 23.44 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.986e-05/0.2396, allocations: 19.84 kB / 412.1 MB, free: 23.42 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.031e-06/0.2396, allocations: 0 / 412.1 MB, free: 23.42 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.512e-05/0.2396, allocations: 326.8 kB / 412.4 MB, free: 23.09 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 6.893e-05/0.2397, allocations: 23.92 kB / 412.4 MB, free: 23.07 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 7.518e-05/0.2398, allocations: 65.08 kB / 412.5 MB, free: 22.99 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000138/0.2399, allocations: 89.06 kB / 412.6 MB, free: 22.88 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.924e-06/0.24, allocations: 4 kB / 412.6 MB, free: 22.88 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000212/0.2402, allocations: 117.5 kB / 412.7 MB, free: 22.76 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.436e-05/0.2402, allocations: 4 kB / 412.7 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.193e-06/0.2402, allocations: 4 kB / 412.7 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.409e-05/0.2402, allocations: 3.938 kB / 412.7 MB, free: 22.75 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.699e-05/0.2403, allocations: 20.23 kB / 412.7 MB, free: 22.73 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.753e-06/0.2403, allocations: 4.156 kB / 412.7 MB, free: 22.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 6.187e-05/0.2404, allocations: 11.91 kB / 412.7 MB, free: 22.71 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.147e-06/0.2404, allocations: 4 kB / 412.7 MB, free: 22.71 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 8.607e-05/0.2405, allocations: 133 kB / 412.9 MB, free: 22.57 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.238e-05/0.2406, allocations: 57.53 kB / 412.9 MB, free: 22.51 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.59e-05/0.2406, allocations: 16.55 kB / 412.9 MB, free: 22.48 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.384e-06/0.2406, allocations: 0 / 412.9 MB, free: 22.48 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.965e-06/0.2407, allocations: 7.984 kB / 413 MB, free: 22.48 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.358e-06/0.2407, allocations: 0 / 413 MB, free: 22.48 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003252/0.241, allocations: 342.5 kB / 413.3 MB, free: 22.09 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.033e-06/0.241, allocations: 0 / 413.3 MB, free: 22.09 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.592e-05/0.2411, allocations: 19.92 kB / 413.3 MB, free: 22.07 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.424e-06/0.2411, allocations: 0 / 413.3 MB, free: 22.07 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.066e-05/0.2411, allocations: 0 / 413.3 MB, free: 22.07 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.084e-06/0.2411, allocations: 0 / 413.3 MB, free: 22.07 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.296e-06/0.2411, allocations: 7.938 kB / 413.3 MB, free: 22.06 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002076/0.2414, allocations: 208.2 kB / 413.5 MB, free: 21.84 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.245e-05/0.2414, allocations: 100.8 kB / 413.6 MB, free: 21.72 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.249e-05/0.2414, allocations: 0 / 413.6 MB, free: 21.72 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.463e-05/0.2415, allocations: 7.984 kB / 413.6 MB, free: 21.71 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.652e-05/0.2416, allocations: 15.94 kB / 413.6 MB, free: 21.7 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.046e-06/0.2416, allocations: 0 / 413.6 MB, free: 21.7 MB / 298.7 MB Notification: Performance of sorting global known variables: time 5.6e-05/0.2417, allocations: 114.2 kB / 413.8 MB, free: 21.59 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.6e-07/0.2417, allocations: 0 / 413.8 MB, free: 21.59 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002771/0.242, allocations: 16 kB / 413.8 MB, free: 21.57 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.0001561/0.2421, allocations: 95.25 kB / 413.9 MB, free: 21.47 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002323/0.2424, allocations: 80.06 kB / 413.9 MB, free: 21.39 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.505e-06/0.2424, allocations: 0 / 413.9 MB, free: 21.39 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.692e-05/0.2425, allocations: 19.98 kB / 414 MB, free: 21.37 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003758/0.2428, allocations: 30.75 kB / 414 MB, free: 21.34 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000369/0.2432, allocations: 263.7 kB / 414.2 MB, free: 21.05 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001557/0.2434, allocations: 0.7004 MB / 414.9 MB, free: 20.32 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.606e-05/0.2434, allocations: 11.44 kB / 415 MB, free: 20.31 MB / 298.7 MB Notification: Performance of SimCode: time 4.01e-07/0.2434, allocations: 0 / 415 MB, free: 20.31 MB / 298.7 MB Notification: Performance of Templates: time 0.002301/0.2457, allocations: 1.038 MB / 416 MB, free: 19.28 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold.makefile (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 & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.RealSignals.AssignClockToTriggerHold --alarm=480 -emit_protected > 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/jenkins/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) Reference file matches