Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.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.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|assignClock1.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001455/0.001455, allocations: 196 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.47/1.47, allocations: 226.6 MB / 244.7 MB, free: 8.215 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008211/0.0008214, allocations: 98.03 kB / 296.8 MB, free: 6.906 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003004/0.0003005, allocations: 4 kB / 356.7 MB, free: 10.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2685/0.2688, allocations: 51.3 MB / 408 MB, free: 27.72 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock): time 0.001145/0.27, allocations: 0.5451 MB / 408.6 MB, free: 27.19 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002931/0.2704, allocations: 111.7 kB / 408.7 MB, free: 27.08 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.55e-05/0.2705, allocations: 4 kB / 408.7 MB, free: 27.07 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 9.488e-05/0.2706, allocations: 11.92 kB / 408.7 MB, free: 27.06 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001242/0.2707, allocations: 8.781 kB / 408.7 MB, free: 27.05 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002116/0.2709, allocations: 35.66 kB / 408.8 MB, free: 27.02 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.709e-05/0.271, allocations: 40.47 kB / 408.8 MB, free: 26.98 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.2711, allocations: 22.53 kB / 408.8 MB, free: 26.96 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.75e-05/0.2712, allocations: 11.92 kB / 408.8 MB, free: 26.95 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.318e-05/0.2712, allocations: 19.86 kB / 408.9 MB, free: 26.93 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.965e-05/0.2713, allocations: 6.312 kB / 408.9 MB, free: 26.93 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.087e-05/0.2713, allocations: 0 / 408.9 MB, free: 26.93 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 3.359e-05/0.2713, allocations: 4 kB / 408.9 MB, free: 26.93 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.403e-05/0.2714, allocations: 57.5 kB / 408.9 MB, free: 26.86 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.737e-05/0.2714, allocations: 39.92 kB / 409 MB, free: 26.82 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 5.751e-06/0.2715, allocations: 0 / 409 MB, free: 26.82 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.2715, allocations: 0 / 409 MB, free: 26.82 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.707e-06/0.2715, allocations: 0.625 kB / 409 MB, free: 26.82 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: 12 * Number of variables: 12 Notification: Performance of Generate backend data structure: time 0.0004047/0.2719, allocations: 365.1 kB / 409.3 MB, free: 26.42 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.976e-05/0.2719, allocations: 8.031 kB / 409.3 MB, free: 26.41 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.142e-05/0.272, allocations: 9.5 kB / 409.3 MB, free: 26.4 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001581/0.2721, allocations: 193.4 kB / 409.5 MB, free: 26.18 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.508e-05/0.2722, allocations: 8.375 kB / 409.5 MB, free: 26.17 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.573e-05/0.2722, allocations: 8.375 kB / 409.5 MB, free: 26.16 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002697/0.2725, allocations: 150.3 kB / 409.7 MB, free: 26 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.987e-06/0.2725, allocations: 192 / 409.7 MB, free: 26 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.121e-05/0.2725, allocations: 3.938 kB / 409.7 MB, free: 26 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.362e-06/0.2725, allocations: 7.062 kB / 409.7 MB, free: 26 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.362e-05/0.2726, allocations: 19.98 kB / 409.7 MB, free: 25.98 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001187/0.2727, allocations: 173.6 kB / 409.9 MB, free: 25.76 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001301/0.2728, allocations: 74.69 kB / 410 MB, free: 25.68 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.643e-05/0.2729, allocations: 43.06 kB / 410 MB, free: 25.63 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.417e-05/0.2729, allocations: 4 kB / 410 MB, free: 25.63 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.808e-05/0.2729, allocations: 30.56 kB / 410 MB, free: 25.59 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 9.41e-07/0.2729, allocations: 0 / 410 MB, free: 25.59 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001786/0.2731, allocations: 105.5 kB / 410.1 MB, free: 25.48 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.632e-05/0.2732, allocations: 59.34 kB / 410.2 MB, free: 25.41 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.161e-05/0.2733, allocations: 148.2 kB / 410.3 MB, free: 25.26 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.146e-06/0.2733, allocations: 25.7 kB / 410.4 MB, free: 25.23 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.669e-05/0.2733, allocations: 84.14 kB / 410.4 MB, free: 25.14 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.451e-05/0.2733, allocations: 15.89 kB / 410.5 MB, free: 25.12 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.815e-06/0.2733, allocations: 0 / 410.5 MB, free: 25.12 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.371e-05/0.2734, allocations: 314.8 kB / 410.8 MB, free: 24.81 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.844e-05/0.2734, allocations: 15.98 kB / 410.8 MB, free: 24.79 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.415e-05/0.2735, allocations: 58.81 kB / 410.8 MB, free: 24.71 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.656e-05/0.2735, allocations: 78.73 kB / 410.9 MB, free: 24.61 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.2735, allocations: 0 / 410.9 MB, free: 24.61 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001022/0.2736, allocations: 89.62 kB / 411 MB, free: 24.52 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.534e-05/0.2737, allocations: 11.94 kB / 411 MB, free: 24.5 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.3e-06/0.2737, allocations: 0 / 411 MB, free: 24.5 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.461e-05/0.2737, allocations: 7.984 kB / 411 MB, free: 24.5 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.692e-05/0.2738, allocations: 15.94 kB / 411 MB, free: 24.48 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.063e-06/0.2738, allocations: 4 kB / 411 MB, free: 24.48 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.256e-05/0.2738, allocations: 3.906 kB / 411 MB, free: 24.47 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.662e-06/0.2738, allocations: 4 kB / 411.1 MB, free: 24.47 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 8 * Number of states: 0 () * Number of discrete variables: 9 (sum.y,sum.u[2],sum.u[1],const.y,unitDelay1.y,unitDelay1.u,$CLKPRE.unitDelay1.u,assignClock1.y,assignClock1.u) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for initialization (9): * Single equations (assignments): 9 * 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.129e-05/0.2739, allocations: 141.8 kB / 411.2 MB, free: 24.32 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.968e-05/0.274, allocations: 81.67 kB / 411.3 MB, free: 24.23 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.317e-05/0.2741, allocations: 16.7 kB / 411.3 MB, free: 24.21 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.365e-06/0.2741, allocations: 0 / 411.3 MB, free: 24.21 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.82e-06/0.2741, allocations: 0 / 411.3 MB, free: 24.21 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.308e-06/0.2741, allocations: 0 / 411.3 MB, free: 24.21 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.113e-05/0.2742, allocations: 169.7 kB / 411.5 MB, free: 24 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.2742, allocations: 0 / 411.5 MB, free: 24 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.117e-05/0.2742, allocations: 23.92 kB / 411.5 MB, free: 23.98 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.705e-06/0.2742, allocations: 3.938 kB / 411.5 MB, free: 23.97 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.693e-06/0.2742, allocations: 0 / 411.5 MB, free: 23.97 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.603e-06/0.2743, allocations: 4 kB / 411.5 MB, free: 23.97 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.91e-07/0.2743, allocations: 0 / 411.5 MB, free: 23.97 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.881e-05/0.2744, allocations: 105 kB / 411.6 MB, free: 23.85 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.3e-05/0.2744, allocations: 97 kB / 411.7 MB, free: 23.73 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.676e-05/0.2744, allocations: 3.938 kB / 411.7 MB, free: 23.73 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.1e-05/0.2745, allocations: 4 kB / 411.7 MB, free: 23.73 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.244e-06/0.2745, allocations: 0 / 411.7 MB, free: 23.73 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.3e-06/0.2745, allocations: 4 kB / 411.7 MB, free: 23.72 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.803e-05/0.2745, allocations: 114.1 kB / 411.8 MB, free: 23.61 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.2745, allocations: 0 / 411.8 MB, free: 23.61 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001896/0.2747, allocations: 12 kB / 411.8 MB, free: 23.6 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: 8 (assignClock1.u,assignClock1.y,unitDelay1.u,unitDelay1.y,const.y,sum.u[1],sum.u[2],sum.y) * Number of discrete states: 0 () * Number of clocked states: 1 (unitDelay1.u) * Top-level inputs: 0 Notification: Strong component statistics for simulation (8): * Single equations (assignments): 8 * 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 8.936e-05/0.2748, allocations: 99.19 kB / 411.9 MB, free: 23.5 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0001014/0.2749, allocations: 48.36 kB / 412 MB, free: 23.45 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 2.614e-06/0.2749, allocations: 4.062 kB / 412 MB, free: 23.45 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 4.61e-07/0.2749, allocations: 0 / 412 MB, free: 23.45 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002793/0.2752, allocations: 48.59 kB / 412 MB, free: 23.4 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002496/0.2755, allocations: 225.8 kB / 412.2 MB, free: 23.14 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001205/0.2756, allocations: 0.7004 MB / 412.9 MB, free: 22.42 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.163e-05/0.2757, allocations: 15.44 kB / 412.9 MB, free: 22.4 MB / 298.7 MB Notification: Performance of SimCode: time 2.01e-07/0.2757, allocations: 0 / 412.9 MB, free: 22.4 MB / 298.7 MB Notification: Performance of Templates: time 0.001927/0.2776, allocations: 0.8628 MB / 413.8 MB, free: 21.55 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/AssignClock/AssignClock.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches