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.0009467/0.0009467, allocations: 175.1 kB / 16.45 MB, free: 5.684 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.248/1.248, allocations: 205.4 MB / 222.6 MB, free: 9.02 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.0007202/0.0007205, allocations: 94.34 kB / 270.9 MB, free: 8.332 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.067/0.067, allocations: 12.6 MB / 331.8 MB, free: 11.36 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003497/0.0003497, allocations: 12 kB / 392.7 MB, free: 66.22 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.06999/0.07036, allocations: 50.38 MB / 443 MB, free: 15.79 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.Elementary.IntegerSignals.AssignClock): time 0.0008659/0.07126, allocations: 0.5431 MB / 443.6 MB, free: 15.24 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0002658/0.07155, allocations: 131.7 kB / 443.7 MB, free: 15.11 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.84e-05/0.07163, allocations: 0 / 443.7 MB, free: 15.11 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 7.699e-05/0.07172, allocations: 3.938 kB / 443.7 MB, free: 15.11 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001029/0.07183, allocations: 7.984 kB / 443.7 MB, free: 15.1 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002125/0.07205, allocations: 31.91 kB / 443.8 MB, free: 15.07 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 7.601e-05/0.07213, allocations: 39.86 kB / 443.8 MB, free: 15.03 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 9.59e-05/0.07224, allocations: 19.98 kB / 443.8 MB, free: 15.01 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 2.689e-05/0.07227, allocations: 11.92 kB / 443.8 MB, free: 15 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 5.424e-05/0.07233, allocations: 11.94 kB / 443.8 MB, free: 14.98 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 1.888e-05/0.07236, allocations: 0 / 443.8 MB, free: 14.98 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 1.033e-05/0.07237, allocations: 3.938 kB / 443.8 MB, free: 14.98 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 2.792e-05/0.0724, allocations: 19.92 kB / 443.9 MB, free: 14.96 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 2.734e-05/0.07244, allocations: 37.64 kB / 443.9 MB, free: 14.92 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 5.901e-05/0.0725, allocations: 35.92 kB / 443.9 MB, free: 14.88 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.988e-06/0.07251, allocations: 0 / 443.9 MB, free: 14.88 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.283e-06/0.07252, allocations: 8 kB / 443.9 MB, free: 14.88 MB / 298.7 MB Notification: Performance of Transformations before backend: time 3.617e-06/0.07253, allocations: 0 / 443.9 MB, free: 14.88 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.0003226/0.07285, allocations: 363.3 kB / 444.3 MB, free: 14.47 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.151e-05/0.07289, allocations: 12.02 kB / 444.3 MB, free: 14.46 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 2.988e-05/0.07293, allocations: 7.906 kB / 444.3 MB, free: 14.45 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001353/0.07307, allocations: 191.8 kB / 444.5 MB, free: 14.23 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.096e-05/0.07309, allocations: 11.95 kB / 444.5 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.29e-05/0.07311, allocations: 4 kB / 444.5 MB, free: 14.21 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002404/0.07335, allocations: 143.2 kB / 444.7 MB, free: 14.06 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.889e-06/0.07337, allocations: 3.984 kB / 444.7 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.211e-05/0.07339, allocations: 4 kB / 444.7 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.672e-06/0.0734, allocations: 4 kB / 444.7 MB, free: 14.05 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 5.003e-05/0.07346, allocations: 23.92 kB / 444.7 MB, free: 14.02 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001017/0.07357, allocations: 177.6 kB / 444.9 MB, free: 13.8 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001125/0.07369, allocations: 78.66 kB / 444.9 MB, free: 13.71 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 5.173e-05/0.07375, allocations: 36.89 kB / 445 MB, free: 13.68 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.178e-05/0.07376, allocations: 4 kB / 445 MB, free: 13.67 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.071e-05/0.07378, allocations: 34.56 kB / 445 MB, free: 13.63 MB / 298.7 MB Notification: Performance of pre-optimization done (n=8): time 1.653e-06/0.07379, allocations: 0 / 445 MB, free: 13.63 MB / 298.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001663/0.07396, allocations: 97.52 kB / 445.1 MB, free: 13.53 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.201e-05/0.074, allocations: 59.41 kB / 445.2 MB, free: 13.46 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.525e-05/0.07409, allocations: 144 kB / 445.3 MB, free: 13.3 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 8.205e-06/0.07411, allocations: 29.7 kB / 445.3 MB, free: 13.27 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 2.127e-05/0.07413, allocations: 84.14 kB / 445.4 MB, free: 13.18 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.159e-05/0.07415, allocations: 7.984 kB / 445.4 MB, free: 13.18 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.415e-06/0.07416, allocations: 0 / 445.4 MB, free: 13.18 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 4.085e-05/0.0742, allocations: 314.8 kB / 445.7 MB, free: 12.86 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.934e-05/0.07423, allocations: 15.98 kB / 445.7 MB, free: 12.84 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 2.999e-05/0.07426, allocations: 58.81 kB / 445.8 MB, free: 12.76 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.075e-05/0.0743, allocations: 23.98 kB / 445.8 MB, free: 12.74 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.863e-06/0.07431, allocations: 0 / 445.8 MB, free: 12.74 MB / 298.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 9.982e-05/0.07441, allocations: 93.55 kB / 445.9 MB, free: 12.64 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.21e-05/0.07443, allocations: 8 kB / 445.9 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.439e-06/0.07444, allocations: 3.938 kB / 445.9 MB, free: 12.63 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.545e-05/0.07446, allocations: 4 kB / 445.9 MB, free: 12.62 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.008e-05/0.07453, allocations: 20.17 kB / 446 MB, free: 12.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.683e-06/0.07455, allocations: 11.94 kB / 446 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.226e-05/0.07458, allocations: 3.938 kB / 446 MB, free: 12.59 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.303e-06/0.0746, allocations: 8 kB / 446 MB, free: 12.58 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 6.694e-05/0.07467, allocations: 132.6 kB / 446.1 MB, free: 12.45 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.779e-05/0.07475, allocations: 89.59 kB / 446.2 MB, free: 12.35 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 2.827e-05/0.07479, allocations: 16.7 kB / 446.2 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.225e-06/0.0748, allocations: 0 / 446.2 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.0748, allocations: 0 / 446.2 MB, free: 12.34 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.564e-06/0.07481, allocations: 7.938 kB / 446.2 MB, free: 12.33 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 5.756e-05/0.07487, allocations: 169.7 kB / 446.4 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.132e-06/0.07488, allocations: 0 / 446.4 MB, free: 12.11 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.172e-05/0.07495, allocations: 11.98 kB / 446.4 MB, free: 12.1 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.036e-06/0.07496, allocations: 7.953 kB / 446.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.252e-06/0.07497, allocations: 0 / 446.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.363e-06/0.07498, allocations: 0 / 446.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.81e-07/0.07498, allocations: 0 / 446.4 MB, free: 12.09 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 9.583e-05/0.07508, allocations: 109 kB / 446.5 MB, free: 11.97 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.77e-05/0.07513, allocations: 100.9 kB / 446.6 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.447e-05/0.07515, allocations: 3.953 kB / 446.6 MB, free: 11.85 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.262e-05/0.07517, allocations: 4 kB / 446.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 2.144e-06/0.07518, allocations: 0 / 446.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.53e-06/0.07519, allocations: 4 kB / 446.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of sorting global known variables: time 4.402e-05/0.07524, allocations: 117.7 kB / 446.7 MB, free: 11.73 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.11e-07/0.07525, allocations: 0 / 446.7 MB, free: 11.73 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0001857/0.07544, allocations: 8 kB / 446.7 MB, free: 11.72 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 6.447e-05/0.07551, allocations: 99.25 kB / 446.8 MB, free: 11.61 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 9.386e-05/0.07561, allocations: 44.39 kB / 446.9 MB, free: 11.57 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.864e-06/0.07561, allocations: 0 / 446.9 MB, free: 11.57 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.11e-07/0.07562, allocations: 0 / 446.9 MB, free: 11.57 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002639/0.07589, allocations: 52.09 kB / 446.9 MB, free: 11.52 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002428/0.07614, allocations: 229.3 kB / 447.2 MB, free: 11.25 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 9.71e-05/0.07625, allocations: 0.6926 MB / 447.9 MB, free: 10.54 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.923e-05/0.07628, allocations: 11.44 kB / 447.9 MB, free: 10.53 MB / 298.7 MB Notification: Performance of SimCode: time 3.51e-07/0.07628, allocations: 0 / 447.9 MB, free: 10.53 MB / 298.7 MB Notification: Performance of Templates: time 0.001687/0.07797, allocations: 0.8706 MB / 448.7 MB, free: 9.656 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