Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.001073/0.001073, allocations: 171.8 kB / 16.8 MB, free: 5.004 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.447/1.447, allocations: 205.4 MB / 223 MB, free: 9.004 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.0009932/0.0009935, allocations: 84.22 kB / 271.3 MB, free: 8.234 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.07238/0.07238, allocations: 12.6 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003716/0.0003719, allocations: 27.94 kB / 393.2 MB, free: 65.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07098/0.07137, allocations: 50.35 MB / 443.6 MB, free: 15.51 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.2554/0.3268, allocations: 80.02 MB / 0.5113 GB, free: 13.16 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001836/0.327, allocations: 68.16 kB / 0.5114 GB, free: 13.16 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005378/0.3324, allocations: 2.356 MB / 0.5137 GB, free: 12.17 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.224e-06/0.3324, allocations: 0 / 0.5137 GB, free: 12.17 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.171e-05/0.3325, allocations: 3.688 kB / 0.5137 GB, free: 12.17 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0004414/0.3329, allocations: 413.9 kB / 0.5141 GB, free: 11.77 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.641e-05/0.333, allocations: 11.53 kB / 0.5141 GB, free: 11.77 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.633e-05/0.333, allocations: 13.44 kB / 0.5141 GB, free: 11.76 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00017/0.3332, allocations: 209.9 kB / 0.5143 GB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.486e-05/0.3332, allocations: 8.219 kB / 0.5143 GB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.906e-05/0.3333, allocations: 16.05 kB / 0.5144 GB, free: 11.54 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004144/0.3337, allocations: 251.3 kB / 0.5146 GB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.421e-05/0.3337, allocations: 192 / 0.5146 GB, free: 11.41 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.359e-05/0.3338, allocations: 11.72 kB / 0.5146 GB, free: 11.4 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.653e-06/0.3338, allocations: 0 / 0.5146 GB, free: 11.4 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002167/0.334, allocations: 99.28 kB / 0.5147 GB, free: 11.38 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004644/0.3345, allocations: 0.5947 MB / 0.5153 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002691/0.3347, allocations: 154 kB / 0.5154 GB, free: 10.71 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001287/0.3349, allocations: 82.83 kB / 0.5155 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.302e-05/0.3349, allocations: 3.812 kB / 0.5155 GB, free: 10.68 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 1.516e-05/0.3349, allocations: 41.59 kB / 0.5155 GB, free: 10.63 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 1.453e-06/0.3349, allocations: 0 / 0.5155 GB, free: 10.63 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0004274/0.3354, allocations: 194.7 kB / 0.5157 GB, free: 10.56 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.768e-05/0.3354, allocations: 118.7 kB / 0.5158 GB, free: 10.43 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.941e-05/0.3355, allocations: 142.8 kB / 0.516 GB, free: 10.31 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.107e-05/0.3355, allocations: 27.67 kB / 0.516 GB, free: 10.28 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 4.051e-05/0.3356, allocations: 120.7 kB / 0.5161 GB, free: 10.17 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.336e-05/0.3356, allocations: 27.11 kB / 0.5161 GB, free: 10.16 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.071e-06/0.3356, allocations: 3.875 kB / 0.5162 GB, free: 10.16 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.627e-05/0.3357, allocations: 321.9 kB / 0.5165 GB, free: 9.84 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.963e-05/0.3358, allocations: 43.09 kB / 0.5165 GB, free: 9.828 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001269/0.3359, allocations: 147.8 kB / 0.5166 GB, free: 9.68 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002266/0.3362, allocations: 196.6 kB / 0.5168 GB, free: 9.523 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.755e-06/0.3362, allocations: 0 / 0.5168 GB, free: 9.523 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003153/0.3365, allocations: 206.2 kB / 0.517 GB, free: 9.438 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.505e-05/0.3365, allocations: 8.938 kB / 0.517 GB, free: 9.438 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.281e-06/0.3365, allocations: 7.844 kB / 0.517 GB, free: 9.434 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.348e-05/0.3366, allocations: 3.844 kB / 0.517 GB, free: 9.434 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001335/0.3367, allocations: 46.69 kB / 0.5171 GB, free: 9.422 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.207e-06/0.3367, allocations: 15.7 kB / 0.5171 GB, free: 9.414 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.457e-05/0.3368, allocations: 22.58 kB / 0.5171 GB, free: 9.406 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.129e-05/0.3368, allocations: 15.42 kB / 0.5171 GB, free: 9.402 MB / 330.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 () * 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 7.016e-05/0.3369, allocations: 136.9 kB / 0.5173 GB, free: 9.273 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001177/0.337, allocations: 88.84 kB / 0.5174 GB, free: 9.227 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.06e-05/0.3371, allocations: 19.06 kB / 0.5174 GB, free: 9.219 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.915e-06/0.3371, allocations: 3.844 kB / 0.5174 GB, free: 9.219 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.138e-06/0.3371, allocations: 0 / 0.5174 GB, free: 9.219 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.258e-06/0.3371, allocations: 3.984 kB / 0.5174 GB, free: 9.215 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000196/0.3373, allocations: 207.6 kB / 0.5176 GB, free: 9.004 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.543e-06/0.3373, allocations: 0 / 0.5176 GB, free: 9.004 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001527/0.3375, allocations: 38.89 kB / 0.5176 GB, free: 8.996 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.645e-06/0.3375, allocations: 4 kB / 0.5176 GB, free: 8.992 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.211e-05/0.3375, allocations: 3.375 kB / 0.5176 GB, free: 8.992 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.174e-06/0.3375, allocations: 3.969 kB / 0.5176 GB, free: 8.992 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.292e-06/0.3375, allocations: 0 / 0.5176 GB, free: 8.992 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000402/0.338, allocations: 397.9 kB / 0.518 GB, free: 8.73 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.619e-05/0.338, allocations: 96.83 kB / 0.5181 GB, free: 8.617 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.843e-05/0.338, allocations: 3.625 kB / 0.5181 GB, free: 8.617 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000125/0.3381, allocations: 15.45 kB / 0.5181 GB, free: 8.605 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.265e-05/0.3382, allocations: 15.98 kB / 0.5181 GB, free: 8.59 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.514e-06/0.3382, allocations: 4 kB / 0.5181 GB, free: 8.586 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.932e-05/0.3382, allocations: 101.3 kB / 0.5182 GB, free: 8.496 MB / 330.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.3383, allocations: 0 / 0.5182 GB, free: 8.496 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002937/0.3386, allocations: 23.88 kB / 0.5183 GB, free: 8.477 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 7.616e-05/0.3386, allocations: 102.4 kB / 0.5184 GB, free: 8.367 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002638/0.3389, allocations: 133.4 kB / 0.5185 GB, free: 8.254 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.964e-06/0.3389, allocations: 0 / 0.5185 GB, free: 8.254 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.089e-05/0.339, allocations: 36.73 kB / 0.5185 GB, free: 8.223 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004354/0.3394, allocations: 58.45 kB / 0.5186 GB, free: 8.18 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005987/0.3401, allocations: 478.7 kB / 0.519 GB, free: 7.707 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001501/0.3402, allocations: 0.7203 MB / 0.5197 GB, free: 6.961 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.886e-05/0.3403, allocations: 9.078 kB / 0.5197 GB, free: 6.953 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.624e-05/0.3403, allocations: 15.44 kB / 0.5198 GB, free: 6.938 MB / 330.7 MB Notification: Performance of SimCode: time 2e-07/0.3403, allocations: 0 / 0.5198 GB, free: 6.938 MB / 330.7 MB Notification: Performance of Templates: time 0.003006/0.3433, allocations: 1.042 MB / 0.5208 GB, free: 5.918 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_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_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches