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.002439/0.002439, allocations: 186.8 kB / 13.7 MB, free: 1.625 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.998/1.998, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001664/0.001664, allocations: 90.64 kB / 267.6 MB, free: 14.11 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.09756/0.09756, allocations: 12.6 MB / 328.2 MB, free: 11.17 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.722e-05/3.737e-05, allocations: 7.984 kB / 386 MB, free: 1.32 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3016/0.3017, allocations: 50.37 MB / 436.3 MB, free: 14.15 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1438/0.4455, allocations: 79.89 MB / 0.5041 GB, free: 14.15 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002757/0.4458, allocations: 71.95 kB / 0.5042 GB, free: 14.08 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01025/0.4561, allocations: 2.342 MB / 0.5065 GB, free: 11.74 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.743e-06/0.4562, allocations: 0 / 0.5065 GB, free: 11.74 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.201e-05/0.4562, allocations: 4 kB / 0.5065 GB, free: 11.73 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0006596/0.4569, allocations: 394.2 kB / 0.5069 GB, free: 11.3 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.696e-05/0.4569, allocations: 8.031 kB / 0.5069 GB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.127e-05/0.457, allocations: 15.81 kB / 0.5069 GB, free: 11.28 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002479/0.4573, allocations: 203 kB / 0.5071 GB, free: 11.04 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.15e-05/0.4573, allocations: 15.95 kB / 0.5071 GB, free: 11.03 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.528e-05/0.4574, allocations: 23.89 kB / 0.5071 GB, free: 11 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005638/0.4579, allocations: 218.7 kB / 0.5073 GB, free: 10.77 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.099e-05/0.458, allocations: 11.92 kB / 0.5073 GB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.119e-05/0.458, allocations: 4 kB / 0.5073 GB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.447e-06/0.458, allocations: 4 kB / 0.5074 GB, free: 10.75 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002077/0.4582, allocations: 63.94 kB / 0.5074 GB, free: 10.68 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008621/0.4591, allocations: 0.5843 MB / 0.508 GB, free: 10.02 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003997/0.4595, allocations: 135.8 kB / 0.5081 GB, free: 9.863 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001515/0.4597, allocations: 70.75 kB / 0.5082 GB, free: 9.785 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.9e-05/0.4598, allocations: 11.98 kB / 0.5082 GB, free: 9.773 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.822e-05/0.4598, allocations: 38.45 kB / 0.5082 GB, free: 9.727 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 2.745e-06/0.4598, allocations: 0 / 0.5082 GB, free: 9.727 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003843/0.4602, allocations: 121.4 kB / 0.5083 GB, free: 9.602 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.568e-05/0.4603, allocations: 114.8 kB / 0.5085 GB, free: 9.465 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000138/0.4605, allocations: 122.1 kB / 0.5086 GB, free: 9.336 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.06e-05/0.4605, allocations: 25.7 kB / 0.5086 GB, free: 9.305 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001124/0.4606, allocations: 182.4 kB / 0.5088 GB, free: 9.125 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.078e-05/0.4607, allocations: 27.64 kB / 0.5088 GB, free: 9.098 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.127e-05/0.4607, allocations: 4 kB / 0.5088 GB, free: 9.094 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.000123/0.4608, allocations: 318.8 kB / 0.5091 GB, free: 8.773 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.99e-05/0.4609, allocations: 24.38 kB / 0.5091 GB, free: 8.746 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001535/0.4611, allocations: 122.4 kB / 0.5092 GB, free: 8.578 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001249/0.4612, allocations: 43.92 kB / 0.5093 GB, free: 8.535 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.908e-06/0.4612, allocations: 4 kB / 0.5093 GB, free: 8.531 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003798/0.4616, allocations: 161.2 kB / 0.5094 GB, free: 8.367 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.443e-05/0.4617, allocations: 7.953 kB / 0.5095 GB, free: 8.359 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.321e-05/0.4617, allocations: 4.469 kB / 0.5095 GB, free: 8.355 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.384e-05/0.4617, allocations: 15.94 kB / 0.5095 GB, free: 8.34 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003323/0.4621, allocations: 47.97 kB / 0.5095 GB, free: 8.293 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.597e-05/0.4621, allocations: 7.938 kB / 0.5095 GB, free: 8.285 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001889/0.4623, allocations: 23.83 kB / 0.5095 GB, free: 8.262 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.229e-05/0.4623, allocations: 12 kB / 0.5096 GB, free: 8.25 MB / 362.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 () * 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.0001182/0.4625, allocations: 120.6 kB / 0.5097 GB, free: 8.125 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002326/0.4627, allocations: 85.53 kB / 0.5098 GB, free: 8.035 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001098/0.4628, allocations: 28.56 kB / 0.5098 GB, free: 8.008 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.284e-06/0.4629, allocations: 4 kB / 0.5098 GB, free: 8.004 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.4629, allocations: 0 / 0.5098 GB, free: 8.004 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.611e-06/0.4629, allocations: 0 / 0.5098 GB, free: 8.004 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003622/0.4633, allocations: 201.5 kB / 0.51 GB, free: 7.758 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.982e-06/0.4633, allocations: 8 kB / 0.51 GB, free: 7.75 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003615/0.4637, allocations: 35.97 kB / 0.51 GB, free: 7.715 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.462e-06/0.4637, allocations: 96 / 0.51 GB, free: 7.715 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.241e-05/0.4637, allocations: 12 kB / 0.51 GB, free: 7.703 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.754e-06/0.4637, allocations: 7.891 kB / 0.51 GB, free: 7.695 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.284e-06/0.4637, allocations: 8.172 kB / 0.51 GB, free: 7.688 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006138/0.4644, allocations: 363.3 kB / 0.5104 GB, free: 7.305 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 8.597e-05/0.4645, allocations: 97.05 kB / 0.5105 GB, free: 7.191 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.283e-05/0.4645, allocations: 4 kB / 0.5105 GB, free: 7.188 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002205/0.4648, allocations: 8 kB / 0.5105 GB, free: 7.18 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.066e-05/0.4648, allocations: 7.984 kB / 0.5105 GB, free: 7.172 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.665e-05/0.4648, allocations: 4 kB / 0.5105 GB, free: 7.168 MB / 362.7 MB Notification: Performance of sorting global known variables: time 9.818e-05/0.465, allocations: 103.9 kB / 0.5106 GB, free: 7.066 MB / 362.7 MB Notification: Performance of sort global known variables: time 4.3e-07/0.465, allocations: 0 / 0.5106 GB, free: 7.066 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004425/0.4654, allocations: 31.91 kB / 0.5106 GB, free: 7.035 MB / 362.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 () * 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.0001562/0.4656, allocations: 103.2 kB / 0.5107 GB, free: 6.926 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002956/0.4659, allocations: 91.8 kB / 0.5108 GB, free: 6.836 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.4659, allocations: 0 / 0.5108 GB, free: 6.836 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.044e-05/0.466, allocations: 16 kB / 0.5108 GB, free: 6.82 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005149/0.4665, allocations: 52.89 kB / 0.5109 GB, free: 6.77 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008322/0.4674, allocations: 329.9 kB / 0.5112 GB, free: 6.414 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003223/0.4677, allocations: 0.7167 MB / 0.5119 GB, free: 5.672 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.971e-05/0.4678, allocations: 15.44 kB / 0.5119 GB, free: 5.656 MB / 362.7 MB Notification: Performance of SimCode: time 1.102e-06/0.4678, allocations: 0 / 0.5119 GB, free: 5.656 MB / 362.7 MB Notification: Performance of Templates: time 0.004481/0.4723, allocations: 1.496 MB / 0.5134 GB, free: 4.156 MB / 362.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