Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_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/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/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_cpp_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_cpp_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.0019/0.001908, allocations: 182 kB / 17.46 MB, free: 4.359 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 3.031/3.031, allocations: 205.4 MB / 223.6 MB, free: 9.008 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.001166/0.001166, allocations: 88.5 kB / 272 MB, free: 8.254 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1612/0.1612, allocations: 12.2 MB / 332.4 MB, free: 11.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0008653/0.0008654, allocations: 16 kB / 392.7 MB, free: 67.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1728/0.1738, allocations: 50.29 MB / 443 MB, free: 16.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6567/0.8305, allocations: 80.15 MB / 0.5109 GB, free: 12.76 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003649/0.831, allocations: 76.61 kB / 0.511 GB, free: 12.75 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01165/0.8427, allocations: 3.24 MB / 0.5141 GB, free: 11.49 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.955e-06/0.8428, allocations: 0 / 0.5141 GB, free: 11.49 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.669e-05/0.8428, allocations: 0 / 0.5141 GB, free: 11.49 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.0007895/0.8436, allocations: 436.8 kB / 0.5145 GB, free: 11.07 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.979e-05/0.8437, allocations: 11.56 kB / 0.5146 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.388e-05/0.8438, allocations: 16.44 kB / 0.5146 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002937/0.8441, allocations: 222.2 kB / 0.5148 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.869e-05/0.8441, allocations: 7.562 kB / 0.5148 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.004e-05/0.8442, allocations: 19.59 kB / 0.5148 GB, free: 10.83 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007172/0.8449, allocations: 272.3 kB / 0.5151 GB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.064e-05/0.845, allocations: 192 / 0.5151 GB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.492e-05/0.845, allocations: 7.062 kB / 0.5151 GB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.084e-05/0.845, allocations: 3.844 kB / 0.5151 GB, free: 10.69 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003412/0.8454, allocations: 103 kB / 0.5152 GB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008151/0.8462, allocations: 0.5994 MB / 0.5158 GB, free: 10.08 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004346/0.8466, allocations: 150.6 kB / 0.5159 GB, free: 9.992 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002034/0.8469, allocations: 86.19 kB / 0.516 GB, free: 9.953 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.27e-05/0.8469, allocations: 3.688 kB / 0.516 GB, free: 9.953 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.067e-05/0.847, allocations: 42.34 kB / 0.516 GB, free: 9.906 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 1.883e-06/0.847, allocations: 0 / 0.516 GB, free: 9.906 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007134/0.8477, allocations: 202.1 kB / 0.5162 GB, free: 9.832 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.676e-05/0.8478, allocations: 114.5 kB / 0.5163 GB, free: 9.703 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001715/0.848, allocations: 162.1 kB / 0.5165 GB, free: 9.582 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.035e-05/0.848, allocations: 29.61 kB / 0.5165 GB, free: 9.551 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.787e-05/0.8481, allocations: 117.7 kB / 0.5166 GB, free: 9.449 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.109e-05/0.8481, allocations: 30.98 kB / 0.5167 GB, free: 9.43 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.898e-06/0.8481, allocations: 0 / 0.5167 GB, free: 9.43 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 8.422e-05/0.8482, allocations: 325.4 kB / 0.517 GB, free: 9.113 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001453/0.8484, allocations: 45.62 kB / 0.517 GB, free: 9.102 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002089/0.8486, allocations: 146.8 kB / 0.5172 GB, free: 8.953 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003509/0.849, allocations: 192 kB / 0.5173 GB, free: 8.797 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.025e-06/0.849, allocations: 3.906 kB / 0.5173 GB, free: 8.797 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.000471/0.8495, allocations: 205.8 kB / 0.5175 GB, free: 8.707 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.609e-05/0.8495, allocations: 8.188 kB / 0.5175 GB, free: 8.707 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.251e-05/0.8495, allocations: 8.344 kB / 0.5176 GB, free: 8.703 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.766e-05/0.8496, allocations: 3.906 kB / 0.5176 GB, free: 8.703 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002149/0.8498, allocations: 54.06 kB / 0.5176 GB, free: 8.691 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.529e-05/0.8498, allocations: 3.844 kB / 0.5176 GB, free: 8.691 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001559/0.85, allocations: 27.3 kB / 0.5176 GB, free: 8.676 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.99e-05/0.85, allocations: 11.53 kB / 0.5177 GB, free: 8.676 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.0001466/0.8502, allocations: 136.2 kB / 0.5178 GB, free: 8.555 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001921/0.8504, allocations: 93.88 kB / 0.5179 GB, free: 8.504 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001483/0.8505, allocations: 20.48 kB / 0.5179 GB, free: 8.496 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.382e-06/0.8506, allocations: 0 / 0.5179 GB, free: 8.496 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.055e-05/0.8506, allocations: 3.844 kB / 0.5179 GB, free: 8.496 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.617e-06/0.8506, allocations: 0 / 0.5179 GB, free: 8.496 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003514/0.851, allocations: 213.5 kB / 0.5181 GB, free: 8.281 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.897e-06/0.851, allocations: 3.844 kB / 0.5181 GB, free: 8.281 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002418/0.8512, allocations: 34.7 kB / 0.5181 GB, free: 8.273 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.296e-06/0.8512, allocations: 8.078 kB / 0.5181 GB, free: 8.27 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.602e-05/0.8513, allocations: 3.5 kB / 0.5181 GB, free: 8.27 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.54e-06/0.8513, allocations: 7.875 kB / 0.5182 GB, free: 8.266 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.601e-06/0.8513, allocations: 3.938 kB / 0.5182 GB, free: 8.262 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007865/0.8521, allocations: 402.4 kB / 0.5185 GB, free: 8 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001178/0.8522, allocations: 111.2 kB / 0.5186 GB, free: 7.887 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.385e-05/0.8523, allocations: 3.781 kB / 0.5187 GB, free: 7.887 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000198/0.8525, allocations: 11.25 kB / 0.5187 GB, free: 7.883 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.441e-05/0.8526, allocations: 7.828 kB / 0.5187 GB, free: 7.879 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.284e-05/0.8526, allocations: 3.844 kB / 0.5187 GB, free: 7.879 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001226/0.8527, allocations: 120.3 kB / 0.5188 GB, free: 7.797 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.8e-07/0.8527, allocations: 0 / 0.5188 GB, free: 7.797 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000527/0.8533, allocations: 27.03 kB / 0.5188 GB, free: 7.793 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.0001685/0.8535, allocations: 106.5 kB / 0.5189 GB, free: 7.695 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004503/0.8539, allocations: 125.4 kB / 0.519 GB, free: 7.664 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.418e-06/0.8539, allocations: 0.9375 kB / 0.519 GB, free: 7.664 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001323/0.8541, allocations: 38.02 kB / 0.5191 GB, free: 7.656 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007884/0.8549, allocations: 68.86 kB / 0.5191 GB, free: 7.633 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001098/0.856, allocations: 0.5335 MB / 0.5197 GB, free: 7.203 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002306/0.8562, allocations: 0.7229 MB / 0.5204 GB, free: 6.488 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.244e-05/0.8563, allocations: 19.08 kB / 0.5204 GB, free: 6.477 MB / 330.7 MB Notification: Performance of SimCode: time 1.513e-06/0.8563, allocations: 0 / 0.5204 GB, free: 6.477 MB / 330.7 MB Notification: Performance of Templates: time 0.004663/0.861, allocations: 1.599 MB / 0.5219 GB, free: 5.602 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_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_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches