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.0009797/0.0009796, allocations: 174 kB / 16.8 MB, free: 5.012 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.402/1.402, allocations: 205.4 MB / 223 MB, free: 9.012 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.0006856/0.0006856, allocations: 86.38 kB / 271.3 MB, free: 8.254 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.06552/0.06552, allocations: 12.6 MB / 332.2 MB, free: 11.25 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003835/0.0003836, allocations: 12 kB / 393.3 MB, free: 65.87 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07017/0.07057, allocations: 50.38 MB / 443.7 MB, free: 15.44 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock): time 0.001039/0.07166, allocations: 0.5591 MB / 444.2 MB, free: 14.88 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002982/0.07198, allocations: 119.7 kB / 444.4 MB, free: 14.76 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.273e-05/0.07208, allocations: 4 kB / 444.4 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.989e-05/0.07218, allocations: 7.922 kB / 444.4 MB, free: 14.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001048/0.07229, allocations: 3.938 kB / 444.4 MB, free: 14.74 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0001927/0.07249, allocations: 39.97 kB / 444.4 MB, free: 14.7 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 8.072e-05/0.07258, allocations: 39.84 kB / 444.5 MB, free: 14.66 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001025/0.07269, allocations: 24 kB / 444.5 MB, free: 14.64 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.552e-05/0.07272, allocations: 15.86 kB / 444.5 MB, free: 14.62 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 6.297e-05/0.07279, allocations: 19.91 kB / 444.5 MB, free: 14.61 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.747e-05/0.07282, allocations: 4 kB / 444.5 MB, free: 14.6 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.112e-05/0.07283, allocations: 0 / 444.5 MB, free: 14.6 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 4.143e-05/0.07288, allocations: 7.938 kB / 444.5 MB, free: 14.59 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.226e-05/0.07293, allocations: 61.44 kB / 444.6 MB, free: 14.53 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 6.535e-05/0.073, allocations: 39.92 kB / 444.6 MB, free: 14.49 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.948e-06/0.07301, allocations: 0 / 444.6 MB, free: 14.49 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.473e-06/0.07302, allocations: 0 / 444.6 MB, free: 14.49 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.788e-06/0.07303, allocations: 0 / 444.6 MB, free: 14.49 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.0003508/0.07338, allocations: 363.5 kB / 445 MB, free: 14.08 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.28e-05/0.07342, allocations: 8.031 kB / 445 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.292e-05/0.07346, allocations: 8.844 kB / 445 MB, free: 14.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001395/0.07361, allocations: 204.6 kB / 445.2 MB, free: 13.83 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.195e-05/0.07363, allocations: 8.375 kB / 445.2 MB, free: 13.82 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.081e-05/0.07365, allocations: 8.359 kB / 445.2 MB, free: 13.81 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002394/0.07389, allocations: 131.9 kB / 445.3 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.295e-06/0.07391, allocations: 192 / 445.3 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 9.077e-06/0.07392, allocations: 7.938 kB / 445.4 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.619e-06/0.07393, allocations: 0 / 445.4 MB, free: 13.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.568e-05/0.07398, allocations: 27.92 kB / 445.4 MB, free: 13.64 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001131/0.0741, allocations: 173.6 kB / 445.6 MB, free: 13.42 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001212/0.07423, allocations: 70.7 kB / 445.6 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.594e-05/0.0743, allocations: 52.88 kB / 445.7 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.612e-06/0.07431, allocations: 0 / 445.7 MB, free: 13.29 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.679e-05/0.07433, allocations: 34.5 kB / 445.7 MB, free: 13.24 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 8.22e-07/0.07434, allocations: 4 kB / 445.7 MB, free: 13.24 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001778/0.07452, allocations: 105.7 kB / 445.8 MB, free: 13.13 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.206e-05/0.07456, allocations: 55.41 kB / 445.9 MB, free: 13.06 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.343e-05/0.07465, allocations: 143.6 kB / 446 MB, free: 12.91 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.875e-06/0.07467, allocations: 29.7 kB / 446 MB, free: 12.88 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.565e-05/0.0747, allocations: 92.06 kB / 446.1 MB, free: 12.79 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.312e-05/0.07472, allocations: 0 / 446.1 MB, free: 12.79 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.887e-06/0.07473, allocations: 8 kB / 446.1 MB, free: 12.78 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.05e-05/0.07478, allocations: 318.8 kB / 446.4 MB, free: 12.46 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 2.009e-05/0.07481, allocations: 15.94 kB / 446.5 MB, free: 12.44 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 3.414e-05/0.07485, allocations: 54.86 kB / 446.5 MB, free: 12.36 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 5.816e-05/0.07491, allocations: 74.75 kB / 446.6 MB, free: 12.27 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.894e-06/0.07492, allocations: 0 / 446.6 MB, free: 12.27 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001067/0.07504, allocations: 93.45 kB / 446.7 MB, free: 12.17 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.291e-05/0.07506, allocations: 11.94 kB / 446.7 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.969e-06/0.07507, allocations: 0 / 446.7 MB, free: 12.16 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.344e-05/0.07508, allocations: 4 kB / 446.7 MB, free: 12.15 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.953e-05/0.07516, allocations: 15.94 kB / 446.7 MB, free: 12.14 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.502e-06/0.07517, allocations: 7.984 kB / 446.7 MB, free: 12.13 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.363e-05/0.07521, allocations: 8 kB / 446.7 MB, free: 12.12 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.161e-06/0.07522, allocations: 4 kB / 446.7 MB, free: 12.12 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 6.808e-05/0.07529, allocations: 127.4 kB / 446.9 MB, free: 11.98 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.902e-05/0.07538, allocations: 85.52 kB / 446.9 MB, free: 11.89 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.1e-05/0.07542, allocations: 12.91 kB / 446.9 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.924e-06/0.07542, allocations: 0 / 446.9 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.885e-06/0.07543, allocations: 3.938 kB / 447 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.516e-06/0.07547, allocations: 0 / 447 MB, free: 11.88 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 7.223e-05/0.07554, allocations: 177.5 kB / 447.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.272e-06/0.07555, allocations: 0 / 447.1 MB, free: 11.66 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.689e-05/0.07562, allocations: 12 kB / 447.1 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.336e-06/0.07563, allocations: 7.938 kB / 447.1 MB, free: 11.64 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.315e-06/0.07565, allocations: 7.984 kB / 447.2 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.07565, allocations: 0 / 447.2 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.72e-07/0.07566, allocations: 0 / 447.2 MB, free: 11.63 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.925e-05/0.07576, allocations: 113.3 kB / 447.3 MB, free: 11.5 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.892e-05/0.07581, allocations: 96.88 kB / 447.4 MB, free: 11.39 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.724e-05/0.07583, allocations: 11.92 kB / 447.4 MB, free: 11.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.316e-05/0.07586, allocations: 4 kB / 447.4 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.425e-06/0.07587, allocations: 4 kB / 447.4 MB, free: 11.37 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.388e-06/0.07588, allocations: 0 / 447.4 MB, free: 11.37 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.537e-05/0.07593, allocations: 105.9 kB / 447.5 MB, free: 11.27 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.31e-07/0.07594, allocations: 0 / 447.5 MB, free: 11.27 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001826/0.07612, allocations: 12 kB / 447.5 MB, free: 11.25 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 6.687e-05/0.07619, allocations: 99.23 kB / 447.6 MB, free: 11.14 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.558e-05/0.0763, allocations: 56.23 kB / 447.6 MB, free: 11.09 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.673e-06/0.07631, allocations: 0 / 447.6 MB, free: 11.09 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 5.51e-07/0.07631, allocations: 0 / 447.6 MB, free: 11.09 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002613/0.07658, allocations: 44.02 kB / 447.7 MB, free: 11.05 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002431/0.07683, allocations: 220.9 kB / 447.9 MB, free: 10.79 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001024/0.07694, allocations: 0.7006 MB / 448.6 MB, free: 10.07 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.032e-05/0.07697, allocations: 11.44 kB / 448.6 MB, free: 10.06 MB / 298.7 MB Notification: Performance of SimCode: time 3.7e-07/0.07698, allocations: 0 / 448.6 MB, free: 10.06 MB / 298.7 MB Notification: Performance of Templates: time 0.001863/0.07884, allocations: 0.8745 MB / 449.5 MB, free: 9.184 MB / 298.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