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/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.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.00189/0.00189, allocations: 180.5 kB / 17.46 MB, free: 4.359 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.662/2.662, 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.001248/0.001248, allocations: 81.5 kB / 272 MB, free: 8.242 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1733/0.1733, allocations: 12.21 MB / 332.4 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006445/0.0006445, allocations: 15.98 kB / 392.7 MB, free: 67.06 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1553/0.1559, allocations: 50.29 MB / 443 MB, free: 16.71 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5413/0.6973, allocations: 79.92 MB / 0.5107 GB, free: 12.86 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002584/0.6977, allocations: 70.62 kB / 0.5107 GB, free: 12.85 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.006248/0.7039, allocations: 2.323 MB / 0.513 GB, free: 11.88 MB / 330.7 MB Notification: Performance of FrontEnd: time 5.57e-06/0.704, allocations: 3.984 kB / 0.513 GB, free: 11.88 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.449e-05/0.704, allocations: 3.844 kB / 0.513 GB, free: 11.88 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0006017/0.7046, allocations: 421.2 kB / 0.5134 GB, free: 11.46 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.853e-05/0.7047, allocations: 7.719 kB / 0.5134 GB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5e-05/0.7047, allocations: 18.89 kB / 0.5134 GB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003252/0.7051, allocations: 195.5 kB / 0.5136 GB, free: 11.25 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.723e-05/0.7051, allocations: 15.31 kB / 0.5136 GB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.571e-05/0.7051, allocations: 11.75 kB / 0.5137 GB, free: 11.24 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006071/0.7058, allocations: 247.1 kB / 0.5139 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.742e-05/0.7058, allocations: 192 / 0.5139 GB, free: 11.11 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.83e-05/0.7058, allocations: 11.88 kB / 0.5139 GB, free: 11.1 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.306e-06/0.7058, allocations: 7.906 kB / 0.5139 GB, free: 11.1 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002484/0.7061, allocations: 99 kB / 0.514 GB, free: 11.07 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006342/0.7067, allocations: 0.5835 MB / 0.5146 GB, free: 10.5 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000254/0.707, allocations: 154.7 kB / 0.5147 GB, free: 10.41 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001512/0.7072, allocations: 82.17 kB / 0.5148 GB, free: 10.37 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.302e-05/0.7072, allocations: 3.906 kB / 0.5148 GB, free: 10.37 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.376e-05/0.7072, allocations: 34.25 kB / 0.5148 GB, free: 10.33 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 1.483e-06/0.7072, allocations: 0 / 0.5148 GB, free: 10.33 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005507/0.7078, allocations: 190 kB / 0.515 GB, free: 10.26 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.131e-05/0.7079, allocations: 114.5 kB / 0.5151 GB, free: 10.13 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001289/0.708, allocations: 127.2 kB / 0.5153 GB, free: 10.02 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.611e-05/0.7081, allocations: 28.77 kB / 0.5153 GB, free: 9.992 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.373e-05/0.7081, allocations: 119 kB / 0.5154 GB, free: 9.887 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 3.544e-05/0.7082, allocations: 33.62 kB / 0.5154 GB, free: 9.867 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.036e-05/0.7082, allocations: 3.25 kB / 0.5154 GB, free: 9.867 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.445e-05/0.7083, allocations: 322 kB / 0.5157 GB, free: 9.551 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001584/0.7085, allocations: 38.09 kB / 0.5158 GB, free: 9.543 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000206/0.7087, allocations: 141.2 kB / 0.5159 GB, free: 9.406 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003967/0.7091, allocations: 187.6 kB / 0.5161 GB, free: 9.254 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.7091, allocations: 0 / 0.5161 GB, free: 9.254 MB / 330.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005056/0.7096, allocations: 199.6 kB / 0.5163 GB, free: 9.172 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.72e-05/0.7097, allocations: 7.688 kB / 0.5163 GB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.521e-05/0.7097, allocations: 3.844 kB / 0.5163 GB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.331e-05/0.7097, allocations: 3.719 kB / 0.5163 GB, free: 9.172 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002581/0.71, allocations: 51.25 kB / 0.5163 GB, free: 9.156 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.329e-05/0.71, allocations: 8.219 kB / 0.5163 GB, free: 9.152 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001702/0.7102, allocations: 31.17 kB / 0.5164 GB, free: 9.137 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.876e-05/0.7102, allocations: 7.719 kB / 0.5164 GB, free: 9.137 MB / 330.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 () * Number of clocked states: 1 (PI.x) * 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.0001413/0.7104, allocations: 136.8 kB / 0.5165 GB, free: 9.012 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.00021/0.7106, allocations: 82.72 kB / 0.5166 GB, free: 8.969 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.422e-05/0.7107, allocations: 15.16 kB / 0.5166 GB, free: 8.965 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.261e-06/0.7107, allocations: 3.938 kB / 0.5166 GB, free: 8.961 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.038e-05/0.7107, allocations: 11.83 kB / 0.5166 GB, free: 8.953 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.913e-06/0.7107, allocations: 4 kB / 0.5166 GB, free: 8.949 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003858/0.7111, allocations: 198.6 kB / 0.5168 GB, free: 8.742 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.687e-06/0.7111, allocations: 4.172 kB / 0.5168 GB, free: 8.738 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002703/0.7114, allocations: 35.02 kB / 0.5169 GB, free: 8.734 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.639e-06/0.7114, allocations: 0 / 0.5169 GB, free: 8.734 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.08e-05/0.7115, allocations: 3.75 kB / 0.5169 GB, free: 8.734 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.158e-06/0.7115, allocations: 7.75 kB / 0.5169 GB, free: 8.73 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.688e-06/0.7115, allocations: 3.984 kB / 0.5169 GB, free: 8.727 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000828/0.7123, allocations: 398.4 kB / 0.5172 GB, free: 8.465 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.622e-05/0.7124, allocations: 88.8 kB / 0.5173 GB, free: 8.363 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.775e-05/0.7125, allocations: 3.875 kB / 0.5173 GB, free: 8.363 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002091/0.7127, allocations: 15.08 kB / 0.5173 GB, free: 8.355 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.853e-05/0.7128, allocations: 3.844 kB / 0.5174 GB, free: 8.355 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.454e-05/0.7128, allocations: 3.844 kB / 0.5174 GB, free: 8.355 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001067/0.7129, allocations: 102.5 kB / 0.5175 GB, free: 8.273 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.4e-07/0.7129, allocations: 0 / 0.5175 GB, free: 8.273 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0006234/0.7136, allocations: 31.23 kB / 0.5175 GB, free: 8.27 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 (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.0001608/0.7137, allocations: 102.2 kB / 0.5176 GB, free: 8.172 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005112/0.7143, allocations: 127.1 kB / 0.5177 GB, free: 8.141 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.106e-06/0.7143, allocations: 0 / 0.5177 GB, free: 8.141 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001554/0.7145, allocations: 35.25 kB / 0.5177 GB, free: 8.129 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008501/0.7153, allocations: 51.38 kB / 0.5178 GB, free: 8.121 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00102/0.7164, allocations: 0.4926 MB / 0.5183 GB, free: 7.715 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002072/0.7166, allocations: 0.7076 MB / 0.519 GB, free: 7.008 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.577e-05/0.7167, allocations: 19.14 kB / 0.519 GB, free: 6.996 MB / 330.7 MB Notification: Performance of SimCode: time 8.81e-07/0.7167, allocations: 0 / 0.519 GB, free: 6.996 MB / 330.7 MB Notification: Performance of Templates: time 0.004398/0.7211, allocations: 1.497 MB / 0.5204 GB, free: 6.238 MB / 330.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