Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001559/0.001559, allocations: 172.2 kB / 16.8 MB, free: 4.996 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.358/1.358, allocations: 205.4 MB / 223 MB, free: 8.996 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.0007475/0.0007476, allocations: 89.22 kB / 271.3 MB, free: 8.238 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.06709/0.06709, allocations: 12.59 MB / 332.2 MB, free: 11.24 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003735/0.0003735, allocations: 12 kB / 393.2 MB, free: 65.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0751/0.07549, allocations: 50.36 MB / 443.6 MB, free: 15.51 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.283/0.3586, allocations: 80.19 MB / 0.5115 GB, free: 13.1 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002073/0.3588, allocations: 75.92 kB / 0.5116 GB, free: 13.09 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006265/0.3651, allocations: 2.7 MB / 0.5142 GB, free: 12 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.254e-06/0.3651, allocations: 0 / 0.5142 GB, free: 12 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.3652, allocations: 3.625 kB / 0.5142 GB, free: 12 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0004385/0.3656, allocations: 440.6 kB / 0.5146 GB, free: 11.58 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.681e-05/0.3656, allocations: 7.75 kB / 0.5147 GB, free: 11.58 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.038e-05/0.3657, allocations: 16.41 kB / 0.5147 GB, free: 11.57 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001635/0.3659, allocations: 218.2 kB / 0.5149 GB, free: 11.34 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.412e-05/0.3659, allocations: 15.94 kB / 0.5149 GB, free: 11.34 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.914e-05/0.3659, allocations: 15 kB / 0.5149 GB, free: 11.34 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003963/0.3663, allocations: 256.1 kB / 0.5152 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.439e-05/0.3663, allocations: 192 / 0.5152 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.45e-05/0.3664, allocations: 11.56 kB / 0.5152 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.13e-06/0.3664, allocations: 3.875 kB / 0.5152 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002175/0.3666, allocations: 100.7 kB / 0.5153 GB, free: 11.18 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005012/0.3671, allocations: 0.5951 MB / 0.5158 GB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002913/0.3674, allocations: 154.3 kB / 0.516 GB, free: 10.51 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001298/0.3676, allocations: 86.64 kB / 0.5161 GB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.317e-05/0.3676, allocations: 7.875 kB / 0.5161 GB, free: 10.47 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.291e-05/0.3676, allocations: 37.75 kB / 0.5161 GB, free: 10.43 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 1.362e-06/0.3676, allocations: 0 / 0.5161 GB, free: 10.43 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004321/0.368, allocations: 201.3 kB / 0.5163 GB, free: 10.35 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.43e-05/0.3681, allocations: 118.1 kB / 0.5164 GB, free: 10.22 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.853e-05/0.3682, allocations: 162.7 kB / 0.5166 GB, free: 10.1 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.033e-05/0.3682, allocations: 25.7 kB / 0.5166 GB, free: 10.07 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.658e-05/0.3683, allocations: 118.8 kB / 0.5167 GB, free: 9.969 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 1.854e-05/0.3683, allocations: 23.55 kB / 0.5167 GB, free: 9.953 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.33e-06/0.3683, allocations: 3.75 kB / 0.5167 GB, free: 9.953 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.729e-05/0.3684, allocations: 322.4 kB / 0.517 GB, free: 9.637 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.747e-05/0.3685, allocations: 45.06 kB / 0.5171 GB, free: 9.625 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001291/0.3686, allocations: 142.2 kB / 0.5172 GB, free: 9.48 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002488/0.3689, allocations: 199.7 kB / 0.5174 GB, free: 9.316 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.036e-06/0.3689, allocations: 7.844 kB / 0.5174 GB, free: 9.312 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0002938/0.3692, allocations: 205 kB / 0.5176 GB, free: 9.227 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.479e-05/0.3692, allocations: 7.688 kB / 0.5176 GB, free: 9.227 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.025e-06/0.3692, allocations: 4.719 kB / 0.5176 GB, free: 9.223 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.884e-05/0.3692, allocations: 4 kB / 0.5176 GB, free: 9.219 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001317/0.3694, allocations: 47.91 kB / 0.5177 GB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.604e-06/0.3694, allocations: 4 kB / 0.5177 GB, free: 9.168 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.248e-05/0.3695, allocations: 31.42 kB / 0.5177 GB, free: 9.141 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.159e-05/0.3695, allocations: 11.88 kB / 0.5177 GB, free: 9.133 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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 7.445e-05/0.3696, allocations: 132.9 kB / 0.5179 GB, free: 9 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001187/0.3697, allocations: 102.6 kB / 0.518 GB, free: 8.91 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.249e-05/0.3698, allocations: 20.64 kB / 0.518 GB, free: 8.898 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.144e-06/0.3698, allocations: 0 / 0.518 GB, free: 8.898 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.859e-06/0.3698, allocations: 4 kB / 0.518 GB, free: 8.895 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.067e-06/0.3698, allocations: 0 / 0.518 GB, free: 8.895 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001978/0.37, allocations: 214 kB / 0.5182 GB, free: 8.66 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.333e-06/0.37, allocations: 4 kB / 0.5182 GB, free: 8.656 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001561/0.3702, allocations: 35.92 kB / 0.5182 GB, free: 8.621 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.155e-06/0.3702, allocations: 4 kB / 0.5182 GB, free: 8.617 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.239e-05/0.3702, allocations: 7.375 kB / 0.5182 GB, free: 8.613 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.787e-06/0.3702, allocations: 7.984 kB / 0.5182 GB, free: 8.605 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3702, allocations: 3.938 kB / 0.5182 GB, free: 8.602 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000413/0.3706, allocations: 394 kB / 0.5186 GB, free: 8.242 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.498e-05/0.3707, allocations: 115.6 kB / 0.5187 GB, free: 8.117 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.035e-05/0.3707, allocations: 8.062 kB / 0.5187 GB, free: 8.109 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000123/0.3709, allocations: 7.375 kB / 0.5187 GB, free: 8.105 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.679e-05/0.3709, allocations: 7.984 kB / 0.5187 GB, free: 8.098 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.735e-06/0.3709, allocations: 4 kB / 0.5188 GB, free: 8.094 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.653e-05/0.371, allocations: 117 kB / 0.5189 GB, free: 7.992 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.371, allocations: 0 / 0.5189 GB, free: 7.992 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002953/0.3713, allocations: 31.75 kB / 0.5189 GB, free: 7.965 MB / 330.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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 9.508e-05/0.3714, allocations: 107.2 kB / 0.519 GB, free: 7.848 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002811/0.3717, allocations: 128.7 kB / 0.5191 GB, free: 7.742 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.3717, allocations: 4.062 kB / 0.5191 GB, free: 7.738 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.342e-05/0.3718, allocations: 36.17 kB / 0.5192 GB, free: 7.707 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004621/0.3722, allocations: 68.97 kB / 0.5192 GB, free: 7.656 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0006426/0.3729, allocations: 0.5049 MB / 0.5197 GB, free: 7.141 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001502/0.3731, allocations: 0.7233 MB / 0.5204 GB, free: 6.395 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 5.048e-05/0.3731, allocations: 13.42 kB / 0.5204 GB, free: 6.379 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.913e-05/0.3731, allocations: 15.44 kB / 0.5204 GB, free: 6.363 MB / 330.7 MB Notification: Performance of SimCode: time 2.2e-07/0.3731, allocations: 0 / 0.5204 GB, free: 6.363 MB / 330.7 MB Notification: Performance of Templates: time 0.003065/0.3762, allocations: 1.158 MB / 0.5216 GB, free: 5.227 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.mat","../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches