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.001137/0.001137, allocations: 181 kB / 15.8 MB, free: 6.336 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.434/1.434, allocations: 205.4 MB / 221.9 MB, free: 13.82 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.0007649/0.0007649, allocations: 86.81 kB / 270.3 MB, free: 13.35 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.09292/0.09292, allocations: 12.6 MB / 331.1 MB, free: 10.29 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004158/0.0004159, allocations: 9.344 kB / 392 MB, free: 54.81 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1025/0.1029, allocations: 50.38 MB / 442.4 MB, free: 10.94 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.111/0.214, allocations: 77.85 MB / 0.508 GB, free: 12.99 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002696/0.2143, allocations: 75.97 kB / 0.5081 GB, free: 12.91 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.003425/0.2178, allocations: 1.276 MB / 0.5093 GB, free: 11.63 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.913e-06/0.2178, allocations: 0 / 0.5093 GB, free: 11.63 MB / 362.7 MB Notification: Performance of Transformations before backend: time 9.999e-06/0.2178, allocations: 4 kB / 0.5093 GB, free: 11.62 MB / 362.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.0003884/0.2182, allocations: 371 kB / 0.5097 GB, free: 11.21 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.403e-05/0.2182, allocations: 8.031 kB / 0.5097 GB, free: 11.21 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.482e-05/0.2183, allocations: 11.91 kB / 0.5097 GB, free: 11.2 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002008/0.2185, allocations: 186.9 kB / 0.5099 GB, free: 10.97 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.133e-05/0.2185, allocations: 11.94 kB / 0.5099 GB, free: 10.96 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.531e-05/0.2186, allocations: 11.89 kB / 0.5099 GB, free: 10.95 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002972/0.2189, allocations: 139.2 kB / 0.5101 GB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.2189, allocations: 0 / 0.5101 GB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.189e-05/0.2189, allocations: 3.984 kB / 0.5101 GB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.638e-06/0.2189, allocations: 0 / 0.5101 GB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 4.707e-05/0.219, allocations: 19.98 kB / 0.5101 GB, free: 10.78 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0001707/0.2191, allocations: 181.5 kB / 0.5103 GB, free: 10.55 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001584/0.2193, allocations: 78.64 kB / 0.5103 GB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 1.114e-05/0.2193, allocations: 4 kB / 0.5103 GB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.564e-05/0.2194, allocations: 30.56 kB / 0.5104 GB, free: 10.42 MB / 362.7 MB Notification: Performance of pre-optimization done (n=8): time 1.152e-06/0.2194, allocations: 4 kB / 0.5104 GB, free: 10.42 MB / 362.7 MB Notification: Performance of matching and sorting (n=8): time 0.0001971/0.2196, allocations: 97.52 kB / 0.5105 GB, free: 10.32 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.38e-05/0.2196, allocations: 55.41 kB / 0.5105 GB, free: 10.25 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001186/0.2198, allocations: 128.1 kB / 0.5106 GB, free: 10.12 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 1.545e-05/0.2198, allocations: 29.7 kB / 0.5107 GB, free: 10.08 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.89e-05/0.2199, allocations: 88.14 kB / 0.5107 GB, free: 9.992 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.465e-05/0.2199, allocations: 7.984 kB / 0.5108 GB, free: 9.984 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.555e-06/0.2199, allocations: 4 kB / 0.5108 GB, free: 9.98 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001123/0.22, allocations: 314.8 kB / 0.5111 GB, free: 9.664 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 1.83e-05/0.22, allocations: 7.984 kB / 0.5111 GB, free: 9.656 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.974e-05/0.2201, allocations: 62.81 kB / 0.5111 GB, free: 9.57 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 3.447e-05/0.2201, allocations: 19.98 kB / 0.5111 GB, free: 9.551 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.425e-06/0.2201, allocations: 0 / 0.5111 GB, free: 9.551 MB / 362.7 MB Notification: Performance of matching and sorting (n=9) (initialization): time 0.0001239/0.2203, allocations: 97.47 kB / 0.5112 GB, free: 9.449 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.581e-05/0.2203, allocations: 7.953 kB / 0.5112 GB, free: 9.441 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.188e-06/0.2203, allocations: 4 kB / 0.5112 GB, free: 9.438 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.463e-05/0.2203, allocations: 7.938 kB / 0.5113 GB, free: 9.43 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.044e-05/0.2204, allocations: 15.98 kB / 0.5113 GB, free: 9.414 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.973e-06/0.2204, allocations: 0 / 0.5113 GB, free: 9.414 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 3.425e-05/0.2205, allocations: 4 kB / 0.5113 GB, free: 9.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.007e-06/0.2205, allocations: 4 kB / 0.5113 GB, free: 9.406 MB / 362.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 0.0001176/0.2206, allocations: 138.3 kB / 0.5114 GB, free: 9.262 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001049/0.2207, allocations: 82.05 kB / 0.5115 GB, free: 9.176 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.765e-05/0.2208, allocations: 16.67 kB / 0.5115 GB, free: 9.16 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.546e-06/0.2208, allocations: 4 kB / 0.5115 GB, free: 9.156 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.63e-06/0.2208, allocations: 4.172 kB / 0.5115 GB, free: 9.152 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.266e-06/0.2208, allocations: 0 / 0.5115 GB, free: 9.152 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001239/0.2209, allocations: 173.5 kB / 0.5117 GB, free: 8.934 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.424e-06/0.2209, allocations: 4 kB / 0.5117 GB, free: 8.93 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.803e-05/0.221, allocations: 19.92 kB / 0.5117 GB, free: 8.91 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.783e-06/0.221, allocations: 0 / 0.5117 GB, free: 8.91 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 8.005e-06/0.221, allocations: 4 kB / 0.5117 GB, free: 8.906 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.221, allocations: 7.953 kB / 0.5117 GB, free: 8.898 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.82e-07/0.2211, allocations: 80 / 0.5117 GB, free: 8.898 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0001459/0.2212, allocations: 109 kB / 0.5118 GB, free: 8.773 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.498e-05/0.2213, allocations: 96.94 kB / 0.5119 GB, free: 8.66 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.874e-05/0.2213, allocations: 4 kB / 0.5119 GB, free: 8.656 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 2.341e-05/0.2213, allocations: 4 kB / 0.5119 GB, free: 8.652 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.629e-06/0.2213, allocations: 3.953 kB / 0.5119 GB, free: 8.648 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.828e-06/0.2214, allocations: 4 kB / 0.5119 GB, free: 8.645 MB / 362.7 MB Notification: Performance of sorting global known variables: time 7.848e-05/0.2214, allocations: 107.2 kB / 0.512 GB, free: 8.539 MB / 362.7 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2214, allocations: 0 / 0.512 GB, free: 8.539 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0001884/0.2216, allocations: 8 kB / 0.512 GB, free: 8.531 MB / 362.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 0.0001057/0.2217, allocations: 107.4 kB / 0.5121 GB, free: 8.414 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0001285/0.2219, allocations: 44.23 kB / 0.5122 GB, free: 8.371 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.244e-06/0.2219, allocations: 4.188 kB / 0.5122 GB, free: 8.367 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 4.5e-07/0.2219, allocations: 0 / 0.5122 GB, free: 8.367 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0002489/0.2222, allocations: 51.69 kB / 0.5122 GB, free: 8.32 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0003147/0.2225, allocations: 187.1 kB / 0.5124 GB, free: 8.109 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003199/0.2228, allocations: 0.7132 MB / 0.5131 GB, free: 7.371 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 2.556e-05/0.2228, allocations: 0.6719 kB / 0.5131 GB, free: 7.367 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.646e-05/0.2229, allocations: 11.44 kB / 0.5131 GB, free: 7.355 MB / 362.7 MB Notification: Performance of SimCode: time 2.21e-07/0.2229, allocations: 0 / 0.5131 GB, free: 7.355 MB / 362.7 MB Notification: Performance of Templates: time 0.002651/0.2255, allocations: 0.6114 MB / 0.5137 GB, free: 6.754 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