Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestEventClockWithIntegrator.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.TestEventClockWithIntegrator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestEventClockWithIntegrator") translateModel(Modelica_Synchronous.WorkInProgress.Tests.TestEventClockWithIntegrator,tolerance=1e-06,outputFormat="empty",numberOfIntervals=5000,variableFilter="",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestEventClockWithIntegrator") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.0009376/0.0009376, allocations: 183.9 kB / 16.45 MB, free: 5.656 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.548/1.548, allocations: 205.4 MB / 222.6 MB, free: 9.113 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.0008477/0.0008476, allocations: 90.25 kB / 270.9 MB, free: 8.359 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.08081/0.08081, allocations: 12.59 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004308/0.000431, allocations: 20 kB / 392 MB, free: 66.89 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07959/0.08005, allocations: 50.37 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.WorkInProgress.Tests.TestEventClockWithIntegrator): time 0.001359/0.08145, allocations: 1.332 MB / 443.7 MB, free: 15.12 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0006137/0.08207, allocations: 500 kB / 444.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.614e-05/0.08216, allocations: 4 kB / 444.2 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 2.049e-05/0.08219, allocations: 7.922 kB / 444.2 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 8.029e-05/0.08227, allocations: 11.92 kB / 444.2 MB, free: 14.6 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002574/0.08254, allocations: 39.89 kB / 444.3 MB, free: 14.56 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001022/0.08265, allocations: 67.72 kB / 444.3 MB, free: 14.49 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.59e-05/0.08275, allocations: 15.98 kB / 444.3 MB, free: 14.48 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 7.515e-05/0.08283, allocations: 31.91 kB / 444.4 MB, free: 14.45 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.264e-05/0.0829, allocations: 23.86 kB / 444.4 MB, free: 14.42 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.809e-05/0.08293, allocations: 4 kB / 444.4 MB, free: 14.42 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.37e-05/0.08295, allocations: 0 / 444.4 MB, free: 14.42 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 1.562e-05/0.08297, allocations: 11.92 kB / 444.4 MB, free: 14.41 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 3.129e-05/0.08301, allocations: 37.64 kB / 444.4 MB, free: 14.36 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 7.122e-05/0.08308, allocations: 48.12 kB / 444.5 MB, free: 14.32 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.418e-06/0.08309, allocations: 0 / 444.5 MB, free: 14.32 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.373e-06/0.0831, allocations: 0 / 444.5 MB, free: 14.32 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.138e-06/0.08311, allocations: 0 / 444.5 MB, free: 14.32 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: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0004999/0.08361, allocations: 383 kB / 444.9 MB, free: 13.89 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.161e-05/0.08365, allocations: 12.03 kB / 444.9 MB, free: 13.88 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.385e-05/0.08369, allocations: 7.906 kB / 444.9 MB, free: 13.88 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001362/0.08383, allocations: 186.9 kB / 445.1 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.292e-05/0.08385, allocations: 0 / 445.1 MB, free: 13.65 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.247e-05/0.08388, allocations: 11.94 kB / 445.1 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000226/0.08411, allocations: 129.8 kB / 445.2 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.285e-06/0.08413, allocations: 0 / 445.2 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.1e-05/0.08415, allocations: 0 / 445.2 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.341e-06/0.08416, allocations: 4 kB / 445.2 MB, free: 13.49 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001023/0.08427, allocations: 43.86 kB / 445.2 MB, free: 13.45 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003281/0.08461, allocations: 373.8 kB / 445.6 MB, free: 13.02 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002942/0.08491, allocations: 107.8 kB / 445.7 MB, free: 12.89 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.773e-05/0.08499, allocations: 38.62 kB / 445.8 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.864e-05/0.08502, allocations: 8 kB / 445.8 MB, free: 12.84 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001509/0.08517, allocations: 89.03 kB / 445.9 MB, free: 12.73 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 1.983e-06/0.08518, allocations: 3.984 kB / 445.9 MB, free: 12.73 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0003/0.08549, allocations: 121.5 kB / 446 MB, free: 12.6 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.494e-05/0.08556, allocations: 122.7 kB / 446.1 MB, free: 12.46 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 6.819e-05/0.08563, allocations: 119.2 kB / 446.2 MB, free: 12.33 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.207e-05/0.08565, allocations: 33.7 kB / 446.2 MB, free: 12.29 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.982e-05/0.08568, allocations: 88.31 kB / 446.3 MB, free: 12.2 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.658e-05/0.08571, allocations: 19.8 kB / 446.3 MB, free: 12.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.31e-06/0.08572, allocations: 4 kB / 446.4 MB, free: 12.18 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.1e-05/0.08577, allocations: 330.9 kB / 446.7 MB, free: 11.85 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.931e-05/0.08584, allocations: 19.98 kB / 446.7 MB, free: 11.83 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.517e-05/0.08591, allocations: 66 kB / 446.8 MB, free: 11.74 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000122/0.08604, allocations: 117.1 kB / 446.9 MB, free: 11.61 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.334e-06/0.08605, allocations: 0 / 446.9 MB, free: 11.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=12) (initialization): time 0.0001766/0.08624, allocations: 125.5 kB / 447 MB, free: 11.48 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.263e-05/0.08626, allocations: 8 kB / 447 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.27e-06/0.08627, allocations: 0 / 447 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.582e-05/0.08629, allocations: 4 kB / 447 MB, free: 11.47 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.127e-05/0.08636, allocations: 15.98 kB / 447 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.744e-06/0.08638, allocations: 7.938 kB / 447 MB, free: 11.45 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 8.411e-05/0.08647, allocations: 19.89 kB / 447.1 MB, free: 11.43 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.446e-06/0.08648, allocations: 4 kB / 447.1 MB, free: 11.42 MB / 298.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: firstOrder.y = firstOrder.y_start. Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 7 * Number of states: 0 () * Number of discrete variables: 5 ($whenCondition1,booleanPulse.y,$PRE.booleanPulse.pulseStart,booleanPulse.pulseStart,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 2 (firstOrder.y,$DER.firstOrder.y) * 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.379e-05/0.08658, allocations: 138.6 kB / 447.2 MB, free: 11.28 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.918e-05/0.08665, allocations: 57.59 kB / 447.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.201e-05/0.08669, allocations: 15.89 kB / 447.3 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.086e-06/0.0867, allocations: 0 / 447.3 MB, free: 11.2 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.95e-06/0.08671, allocations: 7.875 kB / 447.3 MB, free: 11.19 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.579e-06/0.08672, allocations: 4 kB / 447.3 MB, free: 11.18 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000265/0.08699, allocations: 338.5 kB / 447.6 MB, free: 10.8 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.074e-06/0.087, allocations: 4 kB / 447.6 MB, free: 10.79 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001053/0.08711, allocations: 23.92 kB / 447.6 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.695e-06/0.08713, allocations: 4.656 kB / 447.6 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.02e-05/0.08714, allocations: 0 / 447.6 MB, free: 10.77 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.465e-06/0.08715, allocations: 4 kB / 447.6 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.062e-06/0.08715, allocations: 0 / 447.6 MB, free: 10.76 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001865/0.08734, allocations: 217 kB / 447.9 MB, free: 10.53 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.317e-05/0.08738, allocations: 85.02 kB / 447.9 MB, free: 10.43 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.061e-05/0.0874, allocations: 3.984 kB / 447.9 MB, free: 10.42 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001105/0.08752, allocations: 11.98 kB / 448 MB, free: 10.41 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.193e-05/0.08757, allocations: 15.98 kB / 448 MB, free: 10.39 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.063e-06/0.08758, allocations: 4 kB / 448 MB, free: 10.39 MB / 298.7 MB Notification: Performance of sorting global known variables: time 3.727e-05/0.08762, allocations: 99.77 kB / 448.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08763, allocations: 0 / 448.1 MB, free: 10.29 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002153/0.08785, allocations: 19.95 kB / 448.1 MB, free: 10.27 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 4 (booleanPulse.y,$whenCondition1,booleanPulse.pulseStart,$whenCondition2) * Number of discrete states: 0 () * Number of clocked states: 2 ($DER.firstOrder.y,firstOrder.y) * 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.683e-05/0.08793, allocations: 103.2 kB / 448.2 MB, free: 10.16 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001898/0.08813, allocations: 80.09 kB / 448.3 MB, free: 10.09 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.08814, allocations: 0 / 448.3 MB, free: 10.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.211e-05/0.08821, allocations: 23.98 kB / 448.3 MB, free: 10.06 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003364/0.08855, allocations: 44 kB / 448.3 MB, free: 10.02 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003393/0.0889, allocations: 258.5 kB / 448.6 MB, free: 9.73 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001104/0.08902, allocations: 0.6965 MB / 449.3 MB, free: 9.008 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 3.464e-05/0.08906, allocations: 11.44 kB / 449.3 MB, free: 8.996 MB / 298.7 MB Notification: Performance of SimCode: time 2.21e-07/0.08907, allocations: 96 / 449.3 MB, free: 8.996 MB / 298.7 MB Notification: Performance of Templates: time 0.002119/0.09119, allocations: 1.191 MB / 450.5 MB, free: 7.809 MB / 298.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestEventClockWithIntegrator.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestEventClockWithIntegrator.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestEventClockWithIntegrator.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestEventClockWithIntegrator.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestEventClockWithIntegrator.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestEventClockWithIntegrator --alarm=480 > Modelica_Synchronous_cpp_Modelica_Synchronous.WorkInProgress.Tests.TestEventClockWithIntegrator.pipe 2>&1)