Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001478/0.001478, allocations: 186.2 kB / 16.44 MB, free: 5.672 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.908/1.908, allocations: 205.4 MB / 222.6 MB, free: 9.129 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.001107/0.001107, allocations: 88.41 kB / 270.9 MB, free: 8.379 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.09809/0.09809, allocations: 12.59 MB / 331.8 MB, free: 11.4 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005438/0.0005436, allocations: 12 kB / 392 MB, free: 66.91 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08547/0.08605, allocations: 50.37 MB / 442.3 MB, free: 16.5 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4553/0.5414, allocations: 79.99 MB / 0.5101 GB, free: 12.61 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002526/0.5417, allocations: 69.58 kB / 0.5102 GB, free: 12.6 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.009063/0.5508, allocations: 2.353 MB / 0.5124 GB, free: 11.61 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.944e-06/0.5508, allocations: 0 / 0.5124 GB, free: 11.61 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.178e-05/0.5508, allocations: 3.75 kB / 0.5125 GB, free: 11.61 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0005835/0.5514, allocations: 415.9 kB / 0.5128 GB, free: 11.21 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.007e-05/0.5515, allocations: 13.41 kB / 0.5129 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.155e-05/0.5515, allocations: 15.19 kB / 0.5129 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001922/0.5517, allocations: 194 kB / 0.5131 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.484e-05/0.5518, allocations: 15.64 kB / 0.5131 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.832e-05/0.5518, allocations: 15.41 kB / 0.5131 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006038/0.5524, allocations: 257.2 kB / 0.5133 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.603e-05/0.5525, allocations: 3.469 kB / 0.5133 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.902e-05/0.5525, allocations: 0 / 0.5133 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.774e-06/0.5525, allocations: 3.844 kB / 0.5133 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003932/0.5529, allocations: 101.7 kB / 0.5134 GB, free: 10.82 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006835/0.5536, allocations: 0.5896 MB / 0.514 GB, free: 10.25 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004605/0.5541, allocations: 150.3 kB / 0.5142 GB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.46e-05/0.5542, allocations: 7.953 kB / 0.5142 GB, free: 10.16 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.072e-05/0.5542, allocations: 38.45 kB / 0.5142 GB, free: 10.11 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 2.915e-06/0.5542, allocations: 0 / 0.5142 GB, free: 10.11 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007837/0.555, allocations: 196.8 kB / 0.5144 GB, free: 10.04 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.349e-05/0.5551, allocations: 116.5 kB / 0.5145 GB, free: 9.91 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 9.799e-05/0.5552, allocations: 124.5 kB / 0.5146 GB, free: 9.805 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.599e-05/0.5552, allocations: 29.14 kB / 0.5146 GB, free: 9.773 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.943e-05/0.5553, allocations: 180.5 kB / 0.5148 GB, free: 9.605 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.686e-05/0.5553, allocations: 23.23 kB / 0.5148 GB, free: 9.59 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.008e-05/0.5553, allocations: 3.375 kB / 0.5148 GB, free: 9.59 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.894e-05/0.5554, allocations: 321.2 kB / 0.5152 GB, free: 9.273 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001781/0.5556, allocations: 38.44 kB / 0.5152 GB, free: 9.262 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002186/0.5558, allocations: 147 kB / 0.5153 GB, free: 9.117 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002084/0.556, allocations: 68.47 kB / 0.5154 GB, free: 9.094 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.949e-06/0.5561, allocations: 3.844 kB / 0.5154 GB, free: 9.094 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005306/0.5566, allocations: 200.4 kB / 0.5156 GB, free: 9.012 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.94e-05/0.5566, allocations: 7.844 kB / 0.5156 GB, free: 9.012 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.078e-05/0.5567, allocations: 7.797 kB / 0.5156 GB, free: 9.008 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.107e-05/0.5567, allocations: 7.828 kB / 0.5156 GB, free: 9.004 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000277/0.557, allocations: 51.11 kB / 0.5157 GB, free: 8.992 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.069e-05/0.557, allocations: 4.188 kB / 0.5157 GB, free: 8.992 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000166/0.5572, allocations: 23.33 kB / 0.5157 GB, free: 8.984 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.751e-05/0.5572, allocations: 7.719 kB / 0.5157 GB, free: 8.984 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 0.0001169/0.5573, allocations: 138.7 kB / 0.5158 GB, free: 8.855 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001868/0.5575, allocations: 93.34 kB / 0.5159 GB, free: 8.809 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001091/0.5576, allocations: 23.7 kB / 0.5159 GB, free: 8.793 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.34e-06/0.5577, allocations: 7.953 kB / 0.5159 GB, free: 8.785 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.631e-06/0.5577, allocations: 0 / 0.5159 GB, free: 8.785 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.042e-06/0.5577, allocations: 3.906 kB / 0.5159 GB, free: 8.785 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002919/0.558, allocations: 206.1 kB / 0.5161 GB, free: 8.574 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.076e-06/0.558, allocations: 0 / 0.5161 GB, free: 8.574 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000328/0.5583, allocations: 38.75 kB / 0.5162 GB, free: 8.566 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.26e-06/0.5584, allocations: 0 / 0.5162 GB, free: 8.566 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.825e-05/0.5584, allocations: 7.5 kB / 0.5162 GB, free: 8.566 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.22e-06/0.5584, allocations: 4.812 kB / 0.5162 GB, free: 8.562 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.5584, allocations: 7.953 kB / 0.5162 GB, free: 8.555 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007354/0.5592, allocations: 411.4 kB / 0.5166 GB, free: 8.273 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 4.016e-05/0.5592, allocations: 92.75 kB / 0.5167 GB, free: 8.168 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.168e-05/0.5593, allocations: 7.188 kB / 0.5167 GB, free: 8.168 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002015/0.5595, allocations: 11.7 kB / 0.5167 GB, free: 8.164 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.031e-05/0.5595, allocations: 7.938 kB / 0.5167 GB, free: 8.16 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.348e-05/0.5596, allocations: 7.844 kB / 0.5167 GB, free: 8.156 MB / 330.7 MB Notification: Performance of sorting global known variables: time 6.616e-05/0.5596, allocations: 96.28 kB / 0.5168 GB, free: 8.078 MB / 330.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.5596, allocations: 7.844 kB / 0.5168 GB, free: 8.074 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004336/0.5601, allocations: 30.38 kB / 0.5168 GB, free: 8.07 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 0.0001111/0.5602, allocations: 98.73 kB / 0.5169 GB, free: 7.98 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004861/0.5607, allocations: 133.1 kB / 0.5171 GB, free: 7.945 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.085e-06/0.5607, allocations: 0 / 0.5171 GB, free: 7.945 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001651/0.5609, allocations: 39.91 kB / 0.5171 GB, free: 7.934 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004539/0.5614, allocations: 54.55 kB / 0.5172 GB, free: 7.922 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008621/0.5622, allocations: 496.3 kB / 0.5176 GB, free: 7.523 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001834/0.5625, allocations: 0.7273 MB / 0.5183 GB, free: 6.801 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.451e-05/0.5625, allocations: 15.22 kB / 0.5184 GB, free: 6.793 MB / 330.7 MB Notification: Performance of SimCode: time 1.212e-06/0.5625, allocations: 0 / 0.5184 GB, free: 6.793 MB / 330.7 MB Notification: Performance of Templates: time 0.003692/0.5662, allocations: 1.49 MB / 0.5198 GB, free: 6.047 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches