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.001525/0.001525, allocations: 181 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.97/1.97, allocations: 205.2 MB / 219.4 MB, free: 14.2 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.001087/0.001087, allocations: 86.72 kB / 267.6 MB, free: 14.03 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.09799/0.09799, allocations: 12.6 MB / 328.2 MB, free: 11.14 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 3.626e-05/3.653e-05, allocations: 4 kB / 386 MB, free: 1.285 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2986/0.2986, allocations: 50.36 MB / 436.3 MB, free: 14.14 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1385/0.4372, allocations: 79.87 MB / 0.5041 GB, free: 14.16 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002625/0.4375, allocations: 71.95 kB / 0.5042 GB, free: 14.09 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0101/0.4476, allocations: 2.315 MB / 0.5064 GB, free: 11.77 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.734e-06/0.4477, allocations: 4 kB / 0.5064 GB, free: 11.77 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.203e-05/0.4477, allocations: 4 kB / 0.5065 GB, free: 11.77 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0006739/0.4484, allocations: 406.1 kB / 0.5068 GB, free: 11.32 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.375e-05/0.4484, allocations: 8.031 kB / 0.5068 GB, free: 11.32 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.097e-05/0.4485, allocations: 15.81 kB / 0.5069 GB, free: 11.3 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002778/0.4488, allocations: 199 kB / 0.5071 GB, free: 11.07 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.146e-05/0.4489, allocations: 11.95 kB / 0.5071 GB, free: 11.05 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.376e-05/0.4489, allocations: 16 kB / 0.5071 GB, free: 11.04 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005674/0.4495, allocations: 214.6 kB / 0.5073 GB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.709e-05/0.4495, allocations: 0 / 0.5073 GB, free: 10.8 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.31e-05/0.4496, allocations: 12 kB / 0.5073 GB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.4496, allocations: 0 / 0.5073 GB, free: 10.79 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002017/0.4498, allocations: 59.94 kB / 0.5074 GB, free: 10.73 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008744/0.4507, allocations: 0.5921 MB / 0.5079 GB, free: 10.07 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002927/0.451, allocations: 136 kB / 0.5081 GB, free: 9.906 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001509/0.4512, allocations: 66.67 kB / 0.5081 GB, free: 9.832 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.205e-05/0.4512, allocations: 3.938 kB / 0.5081 GB, free: 9.828 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.691e-05/0.4513, allocations: 50.53 kB / 0.5082 GB, free: 9.77 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 2.756e-06/0.4513, allocations: 0 / 0.5082 GB, free: 9.77 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0003706/0.4517, allocations: 105.5 kB / 0.5083 GB, free: 9.66 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.955e-05/0.4518, allocations: 118.7 kB / 0.5084 GB, free: 9.52 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001316/0.4519, allocations: 113.3 kB / 0.5085 GB, free: 9.398 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.275e-05/0.4519, allocations: 29.7 kB / 0.5085 GB, free: 9.363 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.776e-05/0.4521, allocations: 170.5 kB / 0.5087 GB, free: 9.195 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.847e-05/0.4521, allocations: 35.58 kB / 0.5087 GB, free: 9.16 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.036e-05/0.4521, allocations: 4 kB / 0.5087 GB, free: 9.156 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001397/0.4523, allocations: 318.8 kB / 0.509 GB, free: 8.836 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.935e-05/0.4524, allocations: 24 kB / 0.5091 GB, free: 8.812 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001568/0.4525, allocations: 117.5 kB / 0.5092 GB, free: 8.652 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001382/0.4527, allocations: 51.94 kB / 0.5092 GB, free: 8.602 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.837e-06/0.4527, allocations: 0 / 0.5092 GB, free: 8.602 MB / 362.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003754/0.4531, allocations: 161.2 kB / 0.5094 GB, free: 8.438 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.06e-05/0.4531, allocations: 4 kB / 0.5094 GB, free: 8.434 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.958e-06/0.4532, allocations: 4.438 kB / 0.5094 GB, free: 8.43 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.965e-05/0.4532, allocations: 8 kB / 0.5094 GB, free: 8.422 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003419/0.4535, allocations: 47.92 kB / 0.5094 GB, free: 8.375 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.513e-05/0.4536, allocations: 7.984 kB / 0.5094 GB, free: 8.367 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001776/0.4538, allocations: 19.84 kB / 0.5095 GB, free: 8.348 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.787e-05/0.4538, allocations: 12 kB / 0.5095 GB, free: 8.336 MB / 362.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 () * 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.0001107/0.4539, allocations: 112.9 kB / 0.5096 GB, free: 8.219 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002196/0.4542, allocations: 89.48 kB / 0.5097 GB, free: 8.125 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.956e-05/0.4542, allocations: 20.61 kB / 0.5097 GB, free: 8.105 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.429e-06/0.4543, allocations: 0 / 0.5097 GB, free: 8.105 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.032e-06/0.4543, allocations: 0 / 0.5097 GB, free: 8.105 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.019e-06/0.4543, allocations: 4.188 kB / 0.5097 GB, free: 8.102 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003556/0.4547, allocations: 201.5 kB / 0.5099 GB, free: 7.855 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.446e-06/0.4547, allocations: 3.938 kB / 0.5099 GB, free: 7.852 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003172/0.455, allocations: 31.98 kB / 0.5099 GB, free: 7.82 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.385e-05/0.455, allocations: 3.953 kB / 0.5099 GB, free: 7.816 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.629e-05/0.4551, allocations: 8 kB / 0.5099 GB, free: 7.809 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.179e-06/0.4551, allocations: 15.86 kB / 0.5099 GB, free: 7.793 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.647e-06/0.4551, allocations: 3.984 kB / 0.5099 GB, free: 7.789 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004989/0.4556, allocations: 354 kB / 0.5103 GB, free: 7.414 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 6.241e-05/0.4557, allocations: 85.11 kB / 0.5104 GB, free: 7.312 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.322e-05/0.4557, allocations: 12 kB / 0.5104 GB, free: 7.301 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002061/0.4559, allocations: 7.984 kB / 0.5104 GB, free: 7.293 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.979e-05/0.456, allocations: 8 kB / 0.5104 GB, free: 7.285 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.787e-05/0.456, allocations: 7.984 kB / 0.5104 GB, free: 7.277 MB / 362.7 MB Notification: Performance of sorting global known variables: time 8.86e-05/0.4561, allocations: 96.48 kB / 0.5105 GB, free: 7.184 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.81e-07/0.4561, allocations: 0 / 0.5105 GB, free: 7.184 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004693/0.4566, allocations: 31.94 kB / 0.5105 GB, free: 7.152 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 (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 0.0001538/0.4568, allocations: 103.2 kB / 0.5106 GB, free: 7.043 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0002885/0.4571, allocations: 91.81 kB / 0.5107 GB, free: 6.953 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 2.775e-06/0.4571, allocations: 0 / 0.5107 GB, free: 6.953 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 5.851e-05/0.4572, allocations: 16 kB / 0.5107 GB, free: 6.938 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004654/0.4577, allocations: 48.84 kB / 0.5108 GB, free: 6.891 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008641/0.4585, allocations: 329.4 kB / 0.5111 GB, free: 6.535 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003635/0.4589, allocations: 0.7204 MB / 0.5118 GB, free: 5.789 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.939e-05/0.459, allocations: 11.44 kB / 0.5118 GB, free: 5.777 MB / 362.7 MB Notification: Performance of SimCode: time 9.52e-07/0.459, allocations: 4 kB / 0.5118 GB, free: 5.773 MB / 362.7 MB Notification: Performance of Templates: time 0.004412/0.4634, allocations: 1.459 MB / 0.5132 GB, free: 4.312 MB / 362.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