Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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_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_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.001333/0.001333, allocations: 171.8 kB / 16.8 MB, free: 4.906 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.499/1.499, allocations: 205.4 MB / 223 MB, free: 9.016 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.000799/0.0007987, allocations: 78.36 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.07573/0.07573, allocations: 12.6 MB / 332.2 MB, free: 11.23 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004891/0.0004892, allocations: 16 kB / 393.2 MB, free: 65.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09717/0.0977, allocations: 50.37 MB / 443.6 MB, free: 15.5 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3022/0.3999, allocations: 79.98 MB / 0.5113 GB, free: 13.08 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001801/0.4001, allocations: 70.25 kB / 0.5114 GB, free: 13.07 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.005401/0.4056, allocations: 2.333 MB / 0.5137 GB, free: 12.1 MB / 330.7 MB Notification: Performance of FrontEnd: time 1.753e-06/0.4056, allocations: 4 kB / 0.5137 GB, free: 12.09 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.11e-05/0.4056, allocations: 3.844 kB / 0.5137 GB, free: 12.09 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.0003913/0.406, allocations: 417.4 kB / 0.5141 GB, free: 11.69 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.328e-05/0.406, allocations: 9.719 kB / 0.5141 GB, free: 11.69 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.526e-05/0.4061, allocations: 16.44 kB / 0.5141 GB, free: 11.68 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000139/0.4062, allocations: 198.5 kB / 0.5143 GB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.369e-05/0.4062, allocations: 19.88 kB / 0.5143 GB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.573e-05/0.4063, allocations: 11.12 kB / 0.5143 GB, free: 11.46 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003807/0.4067, allocations: 241.1 kB / 0.5145 GB, free: 11.33 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.356e-05/0.4067, allocations: 192 / 0.5145 GB, free: 11.33 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.47e-05/0.4067, allocations: 11.66 kB / 0.5145 GB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.553e-06/0.4067, allocations: 7.797 kB / 0.5146 GB, free: 11.32 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002093/0.4069, allocations: 95.72 kB / 0.5146 GB, free: 11.3 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004601/0.4074, allocations: 0.5924 MB / 0.5152 GB, free: 10.72 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002118/0.4076, allocations: 150.3 kB / 0.5154 GB, free: 10.63 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001273/0.4078, allocations: 78.08 kB / 0.5154 GB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.413e-05/0.4078, allocations: 0 / 0.5154 GB, free: 10.6 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.119e-05/0.4078, allocations: 44.66 kB / 0.5155 GB, free: 10.55 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 3.086e-06/0.4078, allocations: 4 kB / 0.5155 GB, free: 10.55 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0004247/0.4083, allocations: 181.7 kB / 0.5157 GB, free: 10.48 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.46e-05/0.4083, allocations: 125.8 kB / 0.5158 GB, free: 10.35 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 7.511e-05/0.4084, allocations: 122.3 kB / 0.5159 GB, free: 10.24 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.105e-05/0.4084, allocations: 33.52 kB / 0.5159 GB, free: 10.21 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 3.751e-05/0.4085, allocations: 110.6 kB / 0.516 GB, free: 10.11 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.091e-05/0.4085, allocations: 26.98 kB / 0.5161 GB, free: 10.09 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.839e-06/0.4085, allocations: 3 kB / 0.5161 GB, free: 10.09 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 4.778e-05/0.4086, allocations: 326.4 kB / 0.5164 GB, free: 9.77 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.659e-05/0.4087, allocations: 45.09 kB / 0.5164 GB, free: 9.758 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001153/0.4088, allocations: 143.3 kB / 0.5166 GB, free: 9.617 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002328/0.409, allocations: 187.2 kB / 0.5167 GB, free: 9.469 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.384e-06/0.409, allocations: 0 / 0.5167 GB, free: 9.469 MB / 330.7 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002879/0.4093, allocations: 193.8 kB / 0.5169 GB, free: 9.391 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.344e-05/0.4094, allocations: 4.531 kB / 0.5169 GB, free: 9.391 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.109e-06/0.4094, allocations: 4.344 kB / 0.5169 GB, free: 9.391 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.681e-05/0.4094, allocations: 11.72 kB / 0.5169 GB, free: 9.387 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001547/0.4096, allocations: 54.19 kB / 0.517 GB, free: 9.371 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.436e-06/0.4096, allocations: 3.906 kB / 0.517 GB, free: 9.371 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.13e-05/0.4097, allocations: 23.39 kB / 0.517 GB, free: 9.359 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.161e-05/0.4097, allocations: 10.94 kB / 0.517 GB, free: 9.359 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 6.949e-05/0.4098, allocations: 133.7 kB / 0.5172 GB, free: 9.234 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001115/0.4099, allocations: 89.38 kB / 0.5172 GB, free: 9.188 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 3.803e-05/0.4099, allocations: 11.53 kB / 0.5173 GB, free: 9.184 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.4099, allocations: 7.812 kB / 0.5173 GB, free: 9.18 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.07e-06/0.4099, allocations: 3.984 kB / 0.5173 GB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.4099, allocations: 240 / 0.5173 GB, free: 9.176 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000197/0.4102, allocations: 207.6 kB / 0.5175 GB, free: 8.965 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.392e-06/0.4102, allocations: 0 / 0.5175 GB, free: 8.965 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001499/0.4103, allocations: 34.39 kB / 0.5175 GB, free: 8.961 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.367e-06/0.4103, allocations: 7.891 kB / 0.5175 GB, free: 8.957 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.152e-05/0.4103, allocations: 8 kB / 0.5175 GB, free: 8.949 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.805e-06/0.4104, allocations: 7.875 kB / 0.5175 GB, free: 8.941 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.553e-06/0.4104, allocations: 3.781 kB / 0.5175 GB, free: 8.941 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003991/0.4108, allocations: 385.3 kB / 0.5179 GB, free: 8.691 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 2.532e-05/0.4108, allocations: 88.89 kB / 0.518 GB, free: 8.59 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.848e-05/0.4108, allocations: 3.5 kB / 0.518 GB, free: 8.59 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001238/0.411, allocations: 15.58 kB / 0.518 GB, free: 8.582 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.826e-05/0.411, allocations: 4.031 kB / 0.518 GB, free: 8.582 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.905e-06/0.411, allocations: 10.78 kB / 0.518 GB, free: 8.578 MB / 330.7 MB Notification: Performance of sorting global known variables: time 3.655e-05/0.4111, allocations: 105.8 kB / 0.5181 GB, free: 8.492 MB / 330.7 MB Notification: Performance of sort global known variables: time 2.1e-07/0.4111, allocations: 0 / 0.5181 GB, free: 8.492 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0002922/0.4114, allocations: 26.83 kB / 0.5181 GB, free: 8.488 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 8.267e-05/0.4114, allocations: 98.44 kB / 0.5182 GB, free: 8.395 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0002622/0.4117, allocations: 138.2 kB / 0.5184 GB, free: 8.289 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 1.753e-06/0.4117, allocations: 0 / 0.5184 GB, free: 8.289 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 8.015e-05/0.4118, allocations: 32.47 kB / 0.5184 GB, free: 8.262 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004701/0.4123, allocations: 62.05 kB / 0.5184 GB, free: 8.215 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0005569/0.4129, allocations: 467.7 kB / 0.5189 GB, free: 7.75 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001202/0.413, allocations: 0.7048 MB / 0.5196 GB, free: 7.02 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 4.561e-05/0.4131, allocations: 20.59 kB / 0.5196 GB, free: 7 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.507e-05/0.4131, allocations: 11.44 kB / 0.5196 GB, free: 6.988 MB / 330.7 MB Notification: Performance of SimCode: time 2.3e-07/0.4131, allocations: 0 / 0.5196 GB, free: 6.988 MB / 330.7 MB Notification: Performance of Templates: time 0.002899/0.416, allocations: 1.017 MB / 0.5206 GB, free: 5.988 MB / 330.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_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_Modelica_Synchronous.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches