Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo) Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo) Using package Complex with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo) Running command: translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001069/0.001069, allocations: 174.6 kB / 16.77 MB, free: 4.898 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.879/1.879, allocations: 205.4 MB / 222.9 MB, free: 9.004 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0008324/0.0008326, allocations: 90.31 kB / 271.3 MB, free: 8.238 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08777/0.08777, allocations: 12.59 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004266/0.0004266, allocations: 12 kB / 392.6 MB, free: 66.55 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08693/0.08737, allocations: 50.37 MB / 443 MB, free: 16.12 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger): time 0.001492/0.0889, allocations: 1.282 MB / 444.2 MB, free: 14.83 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006457/0.08957, allocations: 476.1 kB / 444.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.592e-05/0.08965, allocations: 0 / 444.7 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 1.712e-05/0.08968, allocations: 7.938 kB / 444.7 MB, free: 14.35 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 7.584e-05/0.08976, allocations: 7.922 kB / 444.7 MB, free: 14.34 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002939/0.09006, allocations: 47.84 kB / 444.8 MB, free: 14.29 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 9.066e-05/0.09016, allocations: 55.72 kB / 444.8 MB, free: 14.24 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001183/0.09028, allocations: 19.98 kB / 444.8 MB, free: 14.22 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 9.137e-05/0.09038, allocations: 27.91 kB / 444.9 MB, free: 14.19 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.346e-05/0.09045, allocations: 19.86 kB / 444.9 MB, free: 14.17 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.575e-05/0.09048, allocations: 4 kB / 444.9 MB, free: 14.17 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.004e-05/0.09049, allocations: 4 kB / 444.9 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.767e-05/0.09052, allocations: 4 kB / 444.9 MB, free: 14.16 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.113e-05/0.09057, allocations: 57.5 kB / 445 MB, free: 14.1 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.152e-05/0.09065, allocations: 35.92 kB / 445 MB, free: 14.06 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.789e-06/0.09066, allocations: 0 / 445 MB, free: 14.06 MB / 298.7 MB Notification: Performance of FrontEnd: time 9.22e-07/0.09067, allocations: 0 / 445 MB, free: 14.06 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.256e-06/0.09068, allocations: 0 / 445 MB, free: 14.06 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.0003992/0.09108, allocations: 363.6 kB / 445.3 MB, free: 13.66 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.412e-05/0.09112, allocations: 8.031 kB / 445.3 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.292e-05/0.09116, allocations: 12.84 kB / 445.4 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001444/0.09131, allocations: 188.3 kB / 445.5 MB, free: 13.42 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.486e-05/0.09133, allocations: 384 / 445.5 MB, free: 13.42 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.469e-05/0.09135, allocations: 12.31 kB / 445.6 MB, free: 13.41 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002828/0.09164, allocations: 149.3 kB / 445.7 MB, free: 13.24 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.083e-05/0.09166, allocations: 0 / 445.7 MB, free: 13.24 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.484e-05/0.09172, allocations: 4 kB / 445.7 MB, free: 13.24 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.977e-06/0.09173, allocations: 0 / 445.7 MB, free: 13.24 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001107/0.09185, allocations: 35.97 kB / 445.7 MB, free: 13.2 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004249/0.09228, allocations: 309.5 kB / 446 MB, free: 12.85 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001841/0.09248, allocations: 158.3 kB / 446.2 MB, free: 12.66 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.619e-05/0.09256, allocations: 37.8 kB / 446.2 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.142e-05/0.09259, allocations: 7.938 kB / 446.2 MB, free: 12.61 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001402/0.09273, allocations: 63.39 kB / 446.3 MB, free: 12.53 MB / 298.7 MB Notification: Performance of pre-optimization done (n=9): time 1.653e-06/0.09274, allocations: 0 / 446.3 MB, free: 12.53 MB / 298.7 MB Notification: Performance of matching and sorting (n=9): time 0.0002669/0.09302, allocations: 117.6 kB / 446.4 MB, free: 12.41 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.086e-05/0.09307, allocations: 89.02 kB / 446.5 MB, free: 12.3 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 5.649e-05/0.09313, allocations: 117.8 kB / 446.6 MB, free: 12.18 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.011e-05/0.09315, allocations: 29.7 kB / 446.7 MB, free: 12.14 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.942e-05/0.09318, allocations: 88.14 kB / 446.7 MB, free: 12.05 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.943e-05/0.09321, allocations: 27.8 kB / 446.8 MB, free: 12.03 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.889e-06/0.09322, allocations: 0 / 446.8 MB, free: 12.03 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.049e-05/0.09327, allocations: 318.8 kB / 447.1 MB, free: 11.71 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.69e-05/0.09334, allocations: 27.98 kB / 447.1 MB, free: 11.68 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.093e-05/0.0934, allocations: 61.08 kB / 447.2 MB, free: 11.6 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001144/0.09352, allocations: 93.06 kB / 447.3 MB, free: 11.49 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.763e-06/0.09353, allocations: 0 / 447.3 MB, free: 11.49 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.000166/0.09371, allocations: 117.5 kB / 447.4 MB, free: 11.37 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.448e-05/0.09373, allocations: 8 kB / 447.4 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.19e-06/0.09374, allocations: 0 / 447.4 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.466e-05/0.09376, allocations: 4 kB / 447.4 MB, free: 11.36 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.648e-05/0.09384, allocations: 11.98 kB / 447.4 MB, free: 11.35 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.706e-06/0.09386, allocations: 7.938 kB / 447.4 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.908e-05/0.09391, allocations: 4 kB / 447.4 MB, free: 11.34 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.468e-06/0.09393, allocations: 7.938 kB / 447.4 MB, free: 11.33 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,ClockedRealToTrigger.y2,$CLKPRE.ClockedRealToTrigger.y2,$whenCondition1,ClockedRealToTrigger.y,$PRE.ClockedRealToTrigger.y3,ClockedRealToTrigger.y3) * Number of discrete states: 0 () * Number of clocked states: 1 (ClockedRealToTrigger.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.054e-05/0.094, allocations: 130.6 kB / 447.5 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.044e-05/0.09406, allocations: 53.55 kB / 447.6 MB, free: 11.13 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.681e-05/0.09409, allocations: 11.95 kB / 447.6 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.635e-06/0.0941, allocations: 4 kB / 447.6 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.018e-06/0.09411, allocations: 320 / 447.6 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.687e-06/0.09412, allocations: 0 / 447.6 MB, free: 11.12 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002561/0.09438, allocations: 346.5 kB / 447.9 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.09439, allocations: 4 kB / 448 MB, free: 10.72 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.041e-05/0.09445, allocations: 11.94 kB / 448 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.264e-06/0.09446, allocations: 0 / 448 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.708e-06/0.09447, allocations: 0 / 448 MB, free: 10.71 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.795e-06/0.09448, allocations: 7.938 kB / 448 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.603e-06/0.09449, allocations: 3.984 kB / 448 MB, free: 10.7 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001618/0.09466, allocations: 204.5 kB / 448.2 MB, free: 10.48 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.143e-05/0.09469, allocations: 85 kB / 448.3 MB, free: 10.38 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.803e-05/0.09471, allocations: 8.406 kB / 448.3 MB, free: 10.37 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.725e-05/0.09478, allocations: 11.92 kB / 448.3 MB, free: 10.36 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.321e-05/0.09482, allocations: 4 kB / 448.3 MB, free: 10.35 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.963e-06/0.09483, allocations: 4 kB / 448.3 MB, free: 10.35 MB / 298.7 MB Notification: Performance of sorting global known variables: time 2.784e-05/0.09487, allocations: 91.2 kB / 448.4 MB, free: 10.26 MB / 298.7 MB Notification: Performance of sort global known variables: time 1e-07/0.09487, allocations: 8 kB / 448.4 MB, free: 10.25 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002126/0.09509, allocations: 12 kB / 448.4 MB, free: 10.24 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 (ClockedRealToTrigger.y2,ClockedRealToTrigger.y,$whenCondition1,ClockedRealToTrigger.y3,triggeredSampler.y) * Number of discrete states: 1 (ClockedRealToTrigger.y3) * Number of clocked states: 1 (ClockedRealToTrigger.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 7.646e-05/0.09517, allocations: 95.25 kB / 448.5 MB, free: 10.14 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001626/0.09534, allocations: 67.84 kB / 448.6 MB, free: 10.07 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.813e-06/0.09535, allocations: 0 / 448.6 MB, free: 10.07 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.255e-05/0.09541, allocations: 28.3 kB / 448.6 MB, free: 10.04 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002513/0.09567, allocations: 23.98 kB / 448.6 MB, free: 10.02 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002965/0.09599, allocations: 219.8 kB / 448.8 MB, free: 9.77 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001094/0.09611, allocations: 0.6965 MB / 449.5 MB, free: 9.047 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.954e-05/0.09614, allocations: 11.44 kB / 449.5 MB, free: 9.039 MB / 298.7 MB Notification: Performance of SimCode: time 4.4e-07/0.09615, allocations: 0 / 449.5 MB, free: 9.039 MB / 298.7 MB Notification: Performance of Templates: time 0.001884/0.09804, allocations: 0.9272 MB / 450.5 MB, free: 8.113 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger --alarm=480 > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestClockedRealToTrigger.pipe 2>&1)