Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001445/0.001445, allocations: 185.3 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.917/1.917, 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.001105/0.001105, allocations: 93.08 kB / 270.9 MB, free: 8.375 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.09783/0.09783, allocations: 12.59 MB / 331.8 MB, free: 11.41 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005406/0.0005405, allocations: 12 kB / 392 MB, free: 66.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08566/0.08622, allocations: 50.38 MB / 442.3 MB, free: 16.5 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4169/0.5031, allocations: 79.95 MB / 0.5101 GB, free: 12.62 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002527/0.5034, allocations: 73.09 kB / 0.5101 GB, free: 12.61 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.008508/0.512, allocations: 2.323 MB / 0.5124 GB, free: 11.64 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.512, allocations: 4 kB / 0.5124 GB, free: 11.63 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.196e-05/0.512, allocations: 3.688 kB / 0.5124 GB, free: 11.63 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0005513/0.5126, allocations: 416.1 kB / 0.5128 GB, free: 11.23 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.882e-05/0.5126, allocations: 11.47 kB / 0.5128 GB, free: 11.23 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.077e-05/0.5127, allocations: 17.53 kB / 0.5128 GB, free: 11.22 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0001922/0.5129, allocations: 193.6 kB / 0.513 GB, free: 11.01 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.757e-05/0.5129, allocations: 19.55 kB / 0.513 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.392e-05/0.513, allocations: 11.06 kB / 0.513 GB, free: 11 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000578/0.5136, allocations: 241.9 kB / 0.5133 GB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.703e-05/0.5136, allocations: 2.125 kB / 0.5133 GB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.958e-05/0.5136, allocations: 3.938 kB / 0.5133 GB, free: 10.87 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.139e-05/0.5136, allocations: 11.77 kB / 0.5133 GB, free: 10.86 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003908/0.514, allocations: 92.91 kB / 0.5134 GB, free: 10.84 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006403/0.5147, allocations: 0.5934 MB / 0.514 GB, free: 10.27 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003495/0.5151, allocations: 147.2 kB / 0.5141 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.967e-05/0.5151, allocations: 12.11 kB / 0.5141 GB, free: 10.18 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.878e-05/0.5151, allocations: 38.31 kB / 0.5141 GB, free: 10.13 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 3.056e-06/0.5152, allocations: 0 / 0.5141 GB, free: 10.13 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007435/0.5159, allocations: 195.5 kB / 0.5143 GB, free: 10.06 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.567e-05/0.516, allocations: 113.8 kB / 0.5144 GB, free: 9.93 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 8.812e-05/0.5161, allocations: 117.1 kB / 0.5145 GB, free: 9.828 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.494e-05/0.5161, allocations: 33.36 kB / 0.5146 GB, free: 9.797 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.637e-05/0.5162, allocations: 169.5 kB / 0.5147 GB, free: 9.637 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.756e-05/0.5162, allocations: 34.48 kB / 0.5148 GB, free: 9.613 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.618e-06/0.5162, allocations: 3.438 kB / 0.5148 GB, free: 9.613 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.648e-05/0.5163, allocations: 318.5 kB / 0.5151 GB, free: 9.297 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000179/0.5165, allocations: 42.25 kB / 0.5151 GB, free: 9.289 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002142/0.5167, allocations: 137.5 kB / 0.5153 GB, free: 9.152 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002082/0.5169, allocations: 62.59 kB / 0.5153 GB, free: 9.137 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.407e-06/0.5169, allocations: 0 / 0.5153 GB, free: 9.137 MB / 330.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005192/0.5175, allocations: 201.8 kB / 0.5155 GB, free: 9.051 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.766e-05/0.5175, allocations: 7.844 kB / 0.5155 GB, free: 9.047 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.205e-06/0.5175, allocations: 3.812 kB / 0.5155 GB, free: 9.047 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.82e-05/0.5176, allocations: 7.688 kB / 0.5155 GB, free: 9.047 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00029/0.5178, allocations: 42.72 kB / 0.5156 GB, free: 9.039 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.104e-05/0.5179, allocations: 7.812 kB / 0.5156 GB, free: 9.035 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001642/0.518, allocations: 31.55 kB / 0.5156 GB, free: 9.02 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.625e-05/0.5181, allocations: 7.688 kB / 0.5156 GB, free: 9.02 MB / 330.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.0001029/0.5182, allocations: 129.1 kB / 0.5157 GB, free: 8.898 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001741/0.5184, allocations: 89.83 kB / 0.5158 GB, free: 8.852 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.028e-05/0.5184, allocations: 15.41 kB / 0.5158 GB, free: 8.84 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.949e-06/0.5184, allocations: 3.938 kB / 0.5158 GB, free: 8.84 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.28e-06/0.5185, allocations: 0 / 0.5158 GB, free: 8.84 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.59e-06/0.5185, allocations: 3.984 kB / 0.5158 GB, free: 8.836 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000279/0.5188, allocations: 205.7 kB / 0.516 GB, free: 8.629 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.154e-06/0.5188, allocations: 0 / 0.516 GB, free: 8.629 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003002/0.5191, allocations: 34.97 kB / 0.5161 GB, free: 8.621 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.011e-06/0.5191, allocations: 7.922 kB / 0.5161 GB, free: 8.617 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.623e-05/0.5191, allocations: 3.188 kB / 0.5161 GB, free: 8.617 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.5191, allocations: 3.844 kB / 0.5161 GB, free: 8.617 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.704e-06/0.5192, allocations: 0 / 0.5161 GB, free: 8.617 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007223/0.5199, allocations: 414.8 kB / 0.5165 GB, free: 8.324 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 3.749e-05/0.5199, allocations: 91.83 kB / 0.5166 GB, free: 8.223 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.814e-05/0.52, allocations: 0 / 0.5166 GB, free: 8.223 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001982/0.5202, allocations: 11.12 kB / 0.5166 GB, free: 8.223 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.372e-05/0.5202, allocations: 8.031 kB / 0.5166 GB, free: 8.219 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.141e-05/0.5203, allocations: 3.844 kB / 0.5166 GB, free: 8.219 MB / 330.7 MB Notification: Performance of sorting global known variables: time 5.661e-05/0.5203, allocations: 98.88 kB / 0.5167 GB, free: 8.141 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.8e-07/0.5203, allocations: 4.062 kB / 0.5167 GB, free: 8.137 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.000409/0.5208, allocations: 25.47 kB / 0.5167 GB, free: 8.137 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 (14): * Single equations (assignments): 14 * 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.818e-05/0.5209, allocations: 102.5 kB / 0.5168 GB, free: 8.043 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004578/0.5213, allocations: 136.8 kB / 0.5169 GB, free: 8.004 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.685e-06/0.5213, allocations: 0 / 0.5169 GB, free: 8.004 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001621/0.5215, allocations: 32.8 kB / 0.517 GB, free: 7.996 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004589/0.522, allocations: 64.17 kB / 0.517 GB, free: 7.973 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008045/0.5228, allocations: 0.4973 MB / 0.5175 GB, free: 7.562 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001613/0.523, allocations: 0.7117 MB / 0.5182 GB, free: 6.852 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 4.555e-05/0.523, allocations: 15.09 kB / 0.5182 GB, free: 6.844 MB / 330.7 MB Notification: Performance of SimCode: time 5.91e-07/0.5231, allocations: 0 / 0.5182 GB, free: 6.844 MB / 330.7 MB Notification: Performance of Templates: time 0.003366/0.5264, allocations: 1.456 MB / 0.5196 GB, free: 6.121 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches