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.001545/0.001545, allocations: 180.9 kB / 8.049 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.5/1.5, allocations: 205.3 MB / 213.8 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0007182/0.0007182, allocations: 86.61 kB / 261.8 MB, free: 1.68 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.07795/0.07795, allocations: 12.61 MB / 322.4 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.824e-05/1.854e-05, allocations: 0 / 378.9 MB, free: 6.504 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2485/0.2485, allocations: 50.37 MB / 429.3 MB, free: 18.33 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.09761/0.3462, allocations: 77.1 MB / 0.4945 GB, free: 5.125 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001789/0.3464, allocations: 75.95 kB / 0.4946 GB, free: 5.051 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.002973/0.3494, allocations: 1.277 MB / 0.4959 GB, free: 3.77 MB / 346.7 MB Notification: Performance of FrontEnd: time 1.052e-06/0.3494, allocations: 0 / 0.4959 GB, free: 3.77 MB / 346.7 MB Notification: Performance of Transformations before backend: time 9.127e-06/0.3494, allocations: 4 kB / 0.4959 GB, free: 3.766 MB / 346.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.0003179/0.3498, allocations: 346.4 kB / 0.4962 GB, free: 3.383 MB / 346.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.043e-05/0.3498, allocations: 12.03 kB / 0.4962 GB, free: 3.371 MB / 346.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.258e-05/0.3499, allocations: 11.81 kB / 0.4962 GB, free: 3.359 MB / 346.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002047/0.3501, allocations: 194.8 kB / 0.4964 GB, free: 3.129 MB / 346.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 9.959e-06/0.3501, allocations: 0 / 0.4964 GB, free: 3.129 MB / 346.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.63e-05/0.3501, allocations: 7.953 kB / 0.4964 GB, free: 3.121 MB / 346.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 9.427e-05/0.3502, allocations: 20 kB / 0.4964 GB, free: 3.102 MB / 346.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002269/0.3504, allocations: 123.3 kB / 0.4965 GB, free: 2.969 MB / 346.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.967e-06/0.3505, allocations: 3.938 kB / 0.4965 GB, free: 2.965 MB / 346.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.09e-05/0.3505, allocations: 0 / 0.4965 GB, free: 2.965 MB / 346.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.043e-06/0.3505, allocations: 4 kB / 0.4965 GB, free: 2.961 MB / 346.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001549/0.3507, allocations: 150.2 kB / 0.4967 GB, free: 2.777 MB / 346.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001322/0.3508, allocations: 74.64 kB / 0.4968 GB, free: 2.695 MB / 346.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 6.393e-05/0.3509, allocations: 36.89 kB / 0.4968 GB, free: 2.656 MB / 346.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.456e-05/0.3509, allocations: 7.953 kB / 0.4968 GB, free: 2.648 MB / 346.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.523e-05/0.3509, allocations: 34.56 kB / 0.4968 GB, free: 2.605 MB / 346.7 MB Notification: Performance of pre-optimization done (n=8): time 1.122e-06/0.3509, allocations: 0 / 0.4968 GB, free: 2.605 MB / 346.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001654/0.3511, allocations: 69.59 kB / 0.4969 GB, free: 2.531 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.111e-05/0.3512, allocations: 55.34 kB / 0.497 GB, free: 2.465 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001117/0.3513, allocations: 137.1 kB / 0.4971 GB, free: 2.32 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 2.011e-05/0.3513, allocations: 25.7 kB / 0.4971 GB, free: 2.289 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.892e-05/0.3514, allocations: 84.14 kB / 0.4972 GB, free: 2.203 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.303e-05/0.3514, allocations: 0 / 0.4972 GB, free: 2.203 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.875e-06/0.3514, allocations: 4 kB / 0.4972 GB, free: 2.199 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0001124/0.3515, allocations: 318.8 kB / 0.4975 GB, free: 1.879 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.617e-05/0.3515, allocations: 8 kB / 0.4975 GB, free: 1.871 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.229e-05/0.3516, allocations: 54.88 kB / 0.4976 GB, free: 1.793 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.329e-05/0.3516, allocations: 23.92 kB / 0.4976 GB, free: 1.77 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.3516, allocations: 0 / 0.4976 GB, free: 1.77 MB / 346.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001015/0.3517, allocations: 77.47 kB / 0.4977 GB, free: 1.688 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.483e-05/0.3518, allocations: 8 kB / 0.4977 GB, free: 1.68 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.58e-06/0.3518, allocations: 3.953 kB / 0.4977 GB, free: 1.676 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.761e-05/0.3518, allocations: 7.984 kB / 0.4977 GB, free: 1.668 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.788e-05/0.3519, allocations: 19.94 kB / 0.4977 GB, free: 1.648 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.492e-06/0.3519, allocations: 4.188 kB / 0.4977 GB, free: 1.645 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.138e-05/0.3519, allocations: 256 / 0.4977 GB, free: 1.645 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.938e-06/0.3519, allocations: 15.88 kB / 0.4977 GB, free: 1.629 MB / 346.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 () * 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.215e-05/0.352, allocations: 107.1 kB / 0.4978 GB, free: 1.52 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 9.182e-05/0.3521, allocations: 77.64 kB / 0.4979 GB, free: 1.438 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.594e-05/0.3522, allocations: 16.62 kB / 0.4979 GB, free: 1.422 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.965e-06/0.3522, allocations: 3.953 kB / 0.4979 GB, free: 1.418 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.998e-06/0.3522, allocations: 0 / 0.4979 GB, free: 1.418 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.765e-06/0.3522, allocations: 0 / 0.4979 GB, free: 1.418 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 9.375e-05/0.3523, allocations: 146.2 kB / 0.4981 GB, free: 1.238 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.142e-06/0.3523, allocations: 8 kB / 0.4981 GB, free: 1.23 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.118e-05/0.3524, allocations: 11.94 kB / 0.4981 GB, free: 1.219 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.994e-06/0.3524, allocations: 0 / 0.4981 GB, free: 1.219 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.356e-06/0.3524, allocations: 4 kB / 0.4981 GB, free: 1.215 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.032e-06/0.3524, allocations: 0 / 0.4981 GB, free: 1.215 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.26e-06/0.3524, allocations: 4 kB / 0.4981 GB, free: 1.211 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001261/0.3526, allocations: 105.1 kB / 0.4982 GB, free: 1.09 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.588e-05/0.3526, allocations: 100.9 kB / 0.4983 GB, free: 0.9727 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.728e-05/0.3526, allocations: 0 / 0.4983 GB, free: 0.9727 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.039e-05/0.3527, allocations: 4 kB / 0.4983 GB, free: 0.9688 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.797e-06/0.3527, allocations: 0 / 0.4983 GB, free: 0.9688 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.63e-06/0.3527, allocations: 4 kB / 0.4983 GB, free: 0.9648 MB / 346.7 MB Notification: Performance of sorting global known variables: time 7.034e-05/0.3528, allocations: 108.6 kB / 0.4984 GB, free: 0.8594 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.51e-07/0.3528, allocations: 0 / 0.4984 GB, free: 0.8594 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0001901/0.353, allocations: 7.953 kB / 0.4984 GB, free: 0.8516 MB / 346.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 () * 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 0.0001212/0.3531, allocations: 103.2 kB / 0.4985 GB, free: 0.7383 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.0001009/0.3532, allocations: 39.94 kB / 0.4985 GB, free: 0.6992 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.3532, allocations: 4 kB / 0.4985 GB, free: 0.6953 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 4.01e-07/0.3532, allocations: 0 / 0.4985 GB, free: 0.6953 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000244/0.3535, allocations: 39.39 kB / 0.4986 GB, free: 0.6602 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0002479/0.3537, allocations: 120.1 kB / 0.4987 GB, free: 0.5195 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002872/0.354, allocations: 0.7002 MB / 0.4994 GB, free: 15.79 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.466e-05/0.3541, allocations: 9.156 kB / 0.4994 GB, free: 15.79 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.277e-05/0.3541, allocations: 11.44 kB / 0.4994 GB, free: 15.77 MB / 362.7 MB Notification: Performance of SimCode: time 2.6e-07/0.3541, allocations: 3.938 kB / 0.4994 GB, free: 15.77 MB / 362.7 MB Notification: Performance of Templates: time 0.00247/0.3566, allocations: 0.6009 MB / 0.5 GB, free: 15.17 MB / 362.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/jenkins/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