Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") translateModel(Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001834/0.001834, allocations: 181.3 kB / 17.46 MB, free: 4.355 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.728/2.728, allocations: 205.4 MB / 223.6 MB, free: 9.012 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.001438/0.001438, allocations: 89.97 kB / 271.9 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.1576/0.1576, allocations: 12.2 MB / 332.4 MB, free: 11.64 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007029/0.000703, allocations: 20 kB / 392.7 MB, free: 67.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1924/0.1931, allocations: 50.29 MB / 443 MB, free: 16.72 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6902/0.8835, allocations: 80.16 MB / 0.5109 GB, free: 12.94 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003544/0.8839, allocations: 76.11 kB / 0.511 GB, free: 12.93 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01058/0.8945, allocations: 2.608 MB / 0.5135 GB, free: 11.85 MB / 330.7 MB Notification: Performance of FrontEnd: time 5.079e-06/0.8946, allocations: 0 / 0.5135 GB, free: 11.85 MB / 330.7 MB Notification: Performance of Transformations before backend: time 3.849e-05/0.8947, allocations: 7.844 kB / 0.5135 GB, free: 11.85 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0009277/0.8956, allocations: 416.7 kB / 0.5139 GB, free: 11.44 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001134/0.8957, allocations: 7.688 kB / 0.5139 GB, free: 11.44 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001161/0.8959, allocations: 16.62 kB / 0.514 GB, free: 11.43 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004087/0.8963, allocations: 208.6 kB / 0.5142 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.456e-05/0.8963, allocations: 15.89 kB / 0.5142 GB, free: 11.21 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.47e-05/0.8964, allocations: 14.94 kB / 0.5142 GB, free: 11.2 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008145/0.8972, allocations: 235.4 kB / 0.5144 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.325e-05/0.8973, allocations: 192 / 0.5144 GB, free: 11.08 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.786e-05/0.8973, allocations: 7.375 kB / 0.5144 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.224e-05/0.8974, allocations: 3.906 kB / 0.5144 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000432/0.8978, allocations: 94.94 kB / 0.5145 GB, free: 11.05 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001118/0.8989, allocations: 0.5981 MB / 0.5151 GB, free: 10.48 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005144/0.8995, allocations: 155.6 kB / 0.5152 GB, free: 10.39 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002442/0.8997, allocations: 82.66 kB / 0.5153 GB, free: 10.35 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.303e-05/0.8998, allocations: 7.781 kB / 0.5153 GB, free: 10.34 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.591e-05/0.8998, allocations: 34.56 kB / 0.5154 GB, free: 10.3 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 3.597e-06/0.8999, allocations: 0 / 0.5154 GB, free: 10.3 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007429/0.9006, allocations: 196.6 kB / 0.5156 GB, free: 10.23 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.9007, allocations: 113.9 kB / 0.5157 GB, free: 10.1 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001788/0.9009, allocations: 141.5 kB / 0.5158 GB, free: 9.98 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 2.8e-05/0.901, allocations: 29.08 kB / 0.5158 GB, free: 9.949 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 9.047e-05/0.9011, allocations: 110.2 kB / 0.5159 GB, free: 9.848 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.899e-05/0.9011, allocations: 29.2 kB / 0.516 GB, free: 9.828 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.281e-05/0.9012, allocations: 6.594 kB / 0.516 GB, free: 9.828 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 0.0001266/0.9013, allocations: 329.3 kB / 0.5163 GB, free: 9.508 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001844/0.9015, allocations: 37.75 kB / 0.5163 GB, free: 9.5 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002702/0.9018, allocations: 146.6 kB / 0.5165 GB, free: 9.355 MB / 330.7 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0007796/0.9026, allocations: 292.3 kB / 0.5167 GB, free: 9.094 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.113e-06/0.9026, allocations: 3.938 kB / 0.5167 GB, free: 9.09 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006436/0.9032, allocations: 210 kB / 0.5169 GB, free: 9 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.718e-05/0.9033, allocations: 8.781 kB / 0.5169 GB, free: 9 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.748e-05/0.9033, allocations: 3.844 kB / 0.5169 GB, free: 9 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.12e-05/0.9034, allocations: 7.984 kB / 0.517 GB, free: 8.996 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003045/0.9037, allocations: 53.89 kB / 0.517 GB, free: 8.984 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.318e-05/0.9037, allocations: 7.953 kB / 0.517 GB, free: 8.98 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002087/0.904, allocations: 23.31 kB / 0.517 GB, free: 8.973 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.619e-05/0.904, allocations: 7.75 kB / 0.517 GB, free: 8.973 MB / 330.7 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: PI.y = PI.y_start. 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.0002152/0.9042, allocations: 135.9 kB / 0.5172 GB, free: 8.848 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000251/0.9045, allocations: 90.69 kB / 0.5173 GB, free: 8.801 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.972e-05/0.9046, allocations: 16.66 kB / 0.5173 GB, free: 8.793 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.653e-06/0.9046, allocations: 4 kB / 0.5173 GB, free: 8.789 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.039e-05/0.9046, allocations: 3.844 kB / 0.5173 GB, free: 8.789 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.939e-06/0.9046, allocations: 3.984 kB / 0.5173 GB, free: 8.785 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004467/0.9051, allocations: 217.8 kB / 0.5175 GB, free: 8.57 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.222e-06/0.9051, allocations: 3.938 kB / 0.5175 GB, free: 8.566 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002966/0.9054, allocations: 54.44 kB / 0.5175 GB, free: 8.547 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.773e-06/0.9054, allocations: 0 / 0.5175 GB, free: 8.547 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.108e-05/0.9055, allocations: 3.906 kB / 0.5176 GB, free: 8.547 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.248e-06/0.9055, allocations: 0 / 0.5176 GB, free: 8.547 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.049e-06/0.9055, allocations: 4 kB / 0.5176 GB, free: 8.543 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009039/0.9064, allocations: 396.2 kB / 0.5179 GB, free: 8.293 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.67e-05/0.9065, allocations: 96.64 kB / 0.518 GB, free: 8.184 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.063e-05/0.9066, allocations: 3.562 kB / 0.518 GB, free: 8.184 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002242/0.9068, allocations: 11.64 kB / 0.518 GB, free: 8.18 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.511e-05/0.9069, allocations: 15.17 kB / 0.5181 GB, free: 8.172 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.844e-05/0.9069, allocations: 3.844 kB / 0.5181 GB, free: 8.172 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001122/0.9071, allocations: 101.7 kB / 0.5182 GB, free: 8.09 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.9071, allocations: 0 / 0.5182 GB, free: 8.09 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006041/0.9077, allocations: 26.97 kB / 0.5182 GB, free: 8.09 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.0002198/0.9079, allocations: 106 kB / 0.5183 GB, free: 7.996 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0006084/0.9085, allocations: 138.3 kB / 0.5184 GB, free: 7.961 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 4.508e-06/0.9085, allocations: 0 / 0.5184 GB, free: 7.961 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001613/0.9087, allocations: 35.06 kB / 0.5184 GB, free: 7.949 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008802/0.9096, allocations: 60.42 kB / 0.5185 GB, free: 7.934 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001529/0.9112, allocations: 0.5213 MB / 0.519 GB, free: 7.512 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003786/0.9116, allocations: 0.7234 MB / 0.5197 GB, free: 6.793 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.769e-05/0.9116, allocations: 19.06 kB / 0.5197 GB, free: 6.781 MB / 330.7 MB Notification: Performance of SimCode: time 1.062e-06/0.9117, allocations: 0 / 0.5197 GB, free: 6.781 MB / 330.7 MB Notification: Performance of Templates: time 0.00673/0.9184, allocations: 1.594 MB / 0.5213 GB, free: 5.984 MB / 330.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches