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-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.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.002447/0.002448, 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 2.123/2.123, 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.001094/0.001094, allocations: 90.64 kB / 267.6 MB, free: 14.04 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.1002/0.1002, allocations: 12.61 MB / 328.2 MB, free: 11.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.079e-05/4.104e-05, allocations: 4 kB / 386 MB, free: 1.305 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3155/0.3156, allocations: 50.37 MB / 436.3 MB, free: 14.15 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1446/0.4603, allocations: 80.07 MB / 0.5043 GB, free: 13.96 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000306/0.4607, allocations: 71.97 kB / 0.5044 GB, free: 13.89 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01195/0.4726, allocations: 2.691 MB / 0.507 GB, free: 11.2 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.833e-06/0.4727, allocations: 0 / 0.507 GB, free: 11.2 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.728e-05/0.4727, allocations: 4 kB / 0.507 GB, free: 11.19 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0007176/0.4734, allocations: 418.1 kB / 0.5074 GB, free: 10.74 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.975e-05/0.4735, allocations: 12.03 kB / 0.5074 GB, free: 10.73 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.049e-05/0.4736, allocations: 19.72 kB / 0.5074 GB, free: 10.71 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002969/0.4739, allocations: 211 kB / 0.5076 GB, free: 10.46 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.781e-05/0.4739, allocations: 11.95 kB / 0.5077 GB, free: 10.45 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.469e-05/0.474, allocations: 12 kB / 0.5077 GB, free: 10.44 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000598/0.4746, allocations: 242.5 kB / 0.5079 GB, free: 10.18 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.945e-05/0.4746, allocations: 4 kB / 0.5079 GB, free: 10.17 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.233e-05/0.4747, allocations: 4 kB / 0.5079 GB, free: 10.17 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.287e-05/0.4747, allocations: 4 kB / 0.5079 GB, free: 10.16 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002029/0.4749, allocations: 55.94 kB / 0.508 GB, free: 10.11 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008791/0.4758, allocations: 0.6037 MB / 0.5086 GB, free: 9.43 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004169/0.4762, allocations: 131.7 kB / 0.5087 GB, free: 9.273 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001569/0.4764, allocations: 66.58 kB / 0.5087 GB, free: 9.199 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.764e-05/0.4765, allocations: 8.203 kB / 0.5087 GB, free: 9.191 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.643e-05/0.4765, allocations: 42.52 kB / 0.5088 GB, free: 9.141 MB / 362.7 MB Notification: Performance of pre-optimization done (n=15): time 3.397e-06/0.4765, allocations: 3.938 kB / 0.5088 GB, free: 9.137 MB / 362.7 MB Notification: Performance of matching and sorting (n=15): time 0.0003887/0.4769, allocations: 113.5 kB / 0.5089 GB, free: 9.02 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.26e-05/0.477, allocations: 114.8 kB / 0.509 GB, free: 8.883 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001835/0.4772, allocations: 145.2 kB / 0.5091 GB, free: 8.734 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 2.099e-05/0.4772, allocations: 29.7 kB / 0.5092 GB, free: 8.699 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.393e-05/0.4773, allocations: 174.9 kB / 0.5093 GB, free: 8.527 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.117e-05/0.4774, allocations: 35.56 kB / 0.5094 GB, free: 8.492 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.129e-05/0.4774, allocations: 4 kB / 0.5094 GB, free: 8.488 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001184/0.4776, allocations: 318.8 kB / 0.5097 GB, free: 8.168 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.974e-05/0.4776, allocations: 24.38 kB / 0.5097 GB, free: 8.141 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001883/0.4778, allocations: 126.4 kB / 0.5098 GB, free: 7.969 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000127/0.478, allocations: 47.92 kB / 0.5099 GB, free: 7.922 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.569e-06/0.478, allocations: 0 / 0.5099 GB, free: 7.922 MB / 362.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003939/0.4784, allocations: 165.6 kB / 0.51 GB, free: 7.754 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.582e-05/0.4785, allocations: 8.094 kB / 0.51 GB, free: 7.746 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.641e-05/0.4785, allocations: 7.953 kB / 0.51 GB, free: 7.738 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.182e-05/0.4785, allocations: 4 kB / 0.5101 GB, free: 7.734 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003437/0.4789, allocations: 55.91 kB / 0.5101 GB, free: 7.68 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.419e-05/0.4789, allocations: 4 kB / 0.5101 GB, free: 7.676 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002056/0.4791, allocations: 23.83 kB / 0.5101 GB, free: 7.652 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.362e-05/0.4791, allocations: 12 kB / 0.5101 GB, free: 7.641 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.0001216/0.4793, allocations: 116.9 kB / 0.5103 GB, free: 7.52 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002696/0.4796, allocations: 89.53 kB / 0.5103 GB, free: 7.426 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001118/0.4797, allocations: 20.61 kB / 0.5104 GB, free: 7.406 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.085e-06/0.4797, allocations: 3.953 kB / 0.5104 GB, free: 7.402 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.446e-06/0.4797, allocations: 4 kB / 0.5104 GB, free: 7.398 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.16e-06/0.4797, allocations: 0 / 0.5104 GB, free: 7.398 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003938/0.4801, allocations: 213.5 kB / 0.5106 GB, free: 7.141 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.847e-06/0.4802, allocations: 192 / 0.5106 GB, free: 7.141 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003773/0.4805, allocations: 43.97 kB / 0.5106 GB, free: 7.098 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.173e-06/0.4806, allocations: 3.938 kB / 0.5106 GB, free: 7.094 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.793e-05/0.4806, allocations: 0 / 0.5106 GB, free: 7.094 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 6.983e-06/0.4806, allocations: 4 kB / 0.5106 GB, free: 7.09 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.472e-06/0.4806, allocations: 7.891 kB / 0.5106 GB, free: 7.082 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00057/0.4812, allocations: 374.8 kB / 0.511 GB, free: 6.688 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001211/0.4813, allocations: 101 kB / 0.5111 GB, free: 6.57 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.495e-05/0.4814, allocations: 4 kB / 0.5111 GB, free: 6.566 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002324/0.4816, allocations: 15.98 kB / 0.5111 GB, free: 6.551 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.515e-05/0.4817, allocations: 4 kB / 0.5111 GB, free: 6.547 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.888e-05/0.4817, allocations: 7.984 kB / 0.5111 GB, free: 6.539 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001604/0.4819, allocations: 115.3 kB / 0.5112 GB, free: 6.426 MB / 362.7 MB Notification: Performance of sort global known variables: time 2.174e-06/0.4819, allocations: 4.062 kB / 0.5112 GB, free: 6.422 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0004494/0.4824, allocations: 35.78 kB / 0.5113 GB, free: 6.387 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.0001552/0.4826, allocations: 107.2 kB / 0.5114 GB, free: 6.273 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.0003043/0.4829, allocations: 93.3 kB / 0.5115 GB, free: 6.184 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 3.697e-06/0.4829, allocations: 0.9375 kB / 0.5115 GB, free: 6.184 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 6.073e-05/0.483, allocations: 16.09 kB / 0.5115 GB, free: 6.168 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000545/0.4835, allocations: 73.56 kB / 0.5115 GB, free: 6.098 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009078/0.4844, allocations: 337.5 kB / 0.5119 GB, free: 5.73 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003359/0.4848, allocations: 0.7245 MB / 0.5126 GB, free: 4.98 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.918e-05/0.4849, allocations: 19.42 kB / 0.5126 GB, free: 4.961 MB / 362.7 MB Notification: Performance of SimCode: time 1.302e-06/0.4849, allocations: 0 / 0.5126 GB, free: 4.961 MB / 362.7 MB Notification: Performance of Templates: time 0.004838/0.4897, allocations: 1.57 MB / 0.5141 GB, free: 3.387 MB / 362.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