Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.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.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sum.y|unitDelay1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock") translateModel(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="Time|sum.y|unitDelay1.y",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.00139/0.001389, allocations: 172.3 kB / 16.8 MB, free: 4.902 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.56/1.56, allocations: 205.4 MB / 222.9 MB, free: 9.031 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.0007678/0.0007678, allocations: 87.39 kB / 271.3 MB, free: 8.25 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.07541/0.07541, allocations: 12.6 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005458/0.0005458, allocations: 20 kB / 393.2 MB, free: 65.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07879/0.07936, allocations: 50.36 MB / 443.6 MB, free: 15.51 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.262/0.3414, allocations: 77.87 MB / 0.5093 GB, free: 13.43 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001996/0.3417, allocations: 81.52 kB / 0.5093 GB, free: 13.43 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002813/0.3445, allocations: 1.276 MB / 0.5106 GB, free: 12.95 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3445, allocations: 3.344 kB / 0.5106 GB, free: 12.95 MB / 330.7 MB Notification: Performance of Transformations before backend: time 9.087e-06/0.3445, allocations: 7.938 kB / 0.5106 GB, free: 12.94 MB / 330.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.0002808/0.3448, allocations: 366.2 kB / 0.5109 GB, free: 12.56 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.829e-05/0.3449, allocations: 11.62 kB / 0.5109 GB, free: 12.55 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.701e-05/0.3449, allocations: 12.56 kB / 0.511 GB, free: 12.55 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001516/0.3451, allocations: 184.5 kB / 0.5111 GB, free: 12.34 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.438e-05/0.3451, allocations: 8.156 kB / 0.5111 GB, free: 12.34 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.124e-05/0.3451, allocations: 12.19 kB / 0.5112 GB, free: 12.33 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000249/0.3454, allocations: 138.8 kB / 0.5113 GB, free: 12.26 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.526e-06/0.3454, allocations: 192 / 0.5113 GB, free: 12.26 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.799e-06/0.3454, allocations: 3.938 kB / 0.5113 GB, free: 12.26 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.038e-06/0.3454, allocations: 0 / 0.5113 GB, free: 12.26 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.141e-05/0.3454, allocations: 22.64 kB / 0.5113 GB, free: 12.25 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001148/0.3456, allocations: 175.7 kB / 0.5115 GB, free: 12.05 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001213/0.3457, allocations: 74.19 kB / 0.5116 GB, free: 12.02 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.383e-05/0.3458, allocations: 46.66 kB / 0.5116 GB, free: 12 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.632e-06/0.3458, allocations: 0 / 0.5116 GB, free: 12 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.724e-05/0.3458, allocations: 38.22 kB / 0.5116 GB, free: 11.96 MB / 330.7 MB Notification: Performance of pre-optimization done (n=8): time 2.184e-06/0.3458, allocations: 4 kB / 0.5116 GB, free: 11.96 MB / 330.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001741/0.346, allocations: 97.39 kB / 0.5117 GB, free: 11.91 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.694e-05/0.346, allocations: 66.97 kB / 0.5118 GB, free: 11.84 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.807e-05/0.3461, allocations: 144.7 kB / 0.5119 GB, free: 11.73 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 8.877e-06/0.3461, allocations: 25.7 kB / 0.512 GB, free: 11.7 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.104e-05/0.3462, allocations: 87.23 kB / 0.512 GB, free: 11.62 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.231e-05/0.3462, allocations: 0 / 0.512 GB, free: 11.62 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.136e-06/0.3462, allocations: 3.75 kB / 0.512 GB, free: 11.62 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.954e-05/0.3463, allocations: 318.6 kB / 0.5123 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.715e-05/0.3463, allocations: 11.31 kB / 0.5124 GB, free: 11.3 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.255e-05/0.3463, allocations: 59.58 kB / 0.5124 GB, free: 11.23 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.362e-05/0.3464, allocations: 77.36 kB / 0.5125 GB, free: 11.15 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.3464, allocations: 3.875 kB / 0.5125 GB, free: 11.15 MB / 330.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 9.422e-05/0.3465, allocations: 90.56 kB / 0.5126 GB, free: 11.1 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.217e-05/0.3465, allocations: 11.62 kB / 0.5126 GB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.519e-06/0.3465, allocations: 0 / 0.5126 GB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.231e-05/0.3465, allocations: 3.844 kB / 0.5126 GB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.216e-05/0.3466, allocations: 19.52 kB / 0.5126 GB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.161e-06/0.3466, allocations: 3.844 kB / 0.5126 GB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 2.913e-05/0.3466, allocations: 3.938 kB / 0.5126 GB, free: 11.09 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.121e-06/0.3467, allocations: 3.875 kB / 0.5126 GB, free: 11.09 MB / 330.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 6.127e-05/0.3467, allocations: 146 kB / 0.5128 GB, free: 10.95 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.392e-05/0.3468, allocations: 84.94 kB / 0.5128 GB, free: 10.91 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.751e-05/0.3468, allocations: 7.656 kB / 0.5128 GB, free: 10.9 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.455e-06/0.3468, allocations: 7.891 kB / 0.5129 GB, free: 10.9 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.707e-06/0.3469, allocations: 0 / 0.5129 GB, free: 10.9 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.875e-06/0.3469, allocations: 3.938 kB / 0.5129 GB, free: 10.89 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.671e-05/0.3469, allocations: 169.6 kB / 0.513 GB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.81e-07/0.3469, allocations: 3.812 kB / 0.513 GB, free: 10.7 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.468e-05/0.347, allocations: 15.39 kB / 0.513 GB, free: 10.69 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.505e-06/0.347, allocations: 15.83 kB / 0.5131 GB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.241e-06/0.347, allocations: 2.438 kB / 0.5131 GB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.022e-06/0.347, allocations: 0 / 0.5131 GB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.347, allocations: 0 / 0.5131 GB, free: 10.68 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 8.94e-05/0.3471, allocations: 108.1 kB / 0.5132 GB, free: 10.6 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.631e-05/0.3472, allocations: 91.91 kB / 0.5132 GB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.47e-05/0.3472, allocations: 3.938 kB / 0.5133 GB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.091e-05/0.3472, allocations: 3.844 kB / 0.5133 GB, free: 10.5 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.445e-06/0.3472, allocations: 4 kB / 0.5133 GB, free: 10.49 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.008e-06/0.3472, allocations: 3.938 kB / 0.5133 GB, free: 10.49 MB / 330.7 MB Notification: Performance of sorting global known variables: time 4.299e-05/0.3473, allocations: 108.5 kB / 0.5134 GB, free: 10.41 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3473, allocations: 0 / 0.5134 GB, free: 10.41 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0001803/0.3475, allocations: 7.719 kB / 0.5134 GB, free: 10.41 MB / 330.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 6.622e-05/0.3475, allocations: 106.2 kB / 0.5135 GB, free: 10.32 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 9.941e-05/0.3476, allocations: 42.86 kB / 0.5135 GB, free: 10.31 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.473e-06/0.3477, allocations: 8 kB / 0.5135 GB, free: 10.3 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 5.61e-07/0.3477, allocations: 0 / 0.5135 GB, free: 10.3 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002539/0.3479, allocations: 54.52 kB / 0.5136 GB, free: 10.29 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002498/0.3482, allocations: 187 kB / 0.5138 GB, free: 10.14 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001258/0.3483, allocations: 0.6996 MB / 0.5144 GB, free: 9.426 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 2.517e-05/0.3483, allocations: 4.516 kB / 0.5144 GB, free: 9.422 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.187e-05/0.3484, allocations: 11.38 kB / 0.5145 GB, free: 9.414 MB / 330.7 MB Notification: Performance of SimCode: time 2.21e-07/0.3484, allocations: 0 / 0.5145 GB, free: 9.414 MB / 330.7 MB Notification: Performance of Templates: time 0.002281/0.3507, allocations: 0.6307 MB / 0.5151 GB, free: 9.109 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches