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.001537/0.001537, allocations: 186.3 kB / 16.44 MB, free: 5.672 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.953/1.953, allocations: 205.4 MB / 222.6 MB, free: 9.121 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.001161/0.00116, allocations: 96.08 kB / 270.9 MB, free: 8.371 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.0979/0.0979, allocations: 12.59 MB / 331.8 MB, free: 11.4 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005617/0.0005617, allocations: 12 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09191/0.0925, allocations: 50.38 MB / 442.3 MB, free: 16.48 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4353/0.5278, allocations: 80.15 MB / 0.5102 GB, free: 12.56 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002524/0.5281, allocations: 77.67 kB / 0.5103 GB, free: 12.55 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0103/0.5385, allocations: 2.69 MB / 0.5129 GB, free: 11.46 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.244e-06/0.5385, allocations: 6.156 kB / 0.513 GB, free: 11.46 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.386e-05/0.5385, allocations: 7.75 kB / 0.513 GB, free: 11.45 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006357/0.5392, allocations: 431.4 kB / 0.5134 GB, free: 11.04 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.848e-05/0.5392, allocations: 7.688 kB / 0.5134 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.593e-05/0.5393, allocations: 15.5 kB / 0.5134 GB, free: 11.04 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002276/0.5395, allocations: 218.8 kB / 0.5136 GB, free: 10.81 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.884e-05/0.5396, allocations: 23.02 kB / 0.5136 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.75e-05/0.5396, allocations: 11.12 kB / 0.5136 GB, free: 10.8 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006242/0.5402, allocations: 250.1 kB / 0.5139 GB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/0.5403, allocations: 0 / 0.5139 GB, free: 10.67 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.471e-05/0.5403, allocations: 11.08 kB / 0.5139 GB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.5403, allocations: 0 / 0.5139 GB, free: 10.66 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0004043/0.5407, allocations: 103.3 kB / 0.514 GB, free: 10.64 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006889/0.5415, allocations: 0.6008 MB / 0.5146 GB, free: 10.06 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004624/0.5419, allocations: 151.8 kB / 0.5147 GB, free: 9.969 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.772e-05/0.542, allocations: 7.672 kB / 0.5147 GB, free: 9.969 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.065e-05/0.542, allocations: 46.34 kB / 0.5148 GB, free: 9.918 MB / 330.7 MB Notification: Performance of pre-optimization done (n=15): time 2.024e-06/0.542, allocations: 0 / 0.5148 GB, free: 9.918 MB / 330.7 MB Notification: Performance of matching and sorting (n=15): time 0.0007762/0.5428, allocations: 197.8 kB / 0.515 GB, free: 9.848 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.699e-05/0.5429, allocations: 106.7 kB / 0.5151 GB, free: 9.723 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001461/0.543, allocations: 153 kB / 0.5152 GB, free: 9.613 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.467e-05/0.5431, allocations: 25.7 kB / 0.5152 GB, free: 9.582 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.462e-05/0.5431, allocations: 177.6 kB / 0.5154 GB, free: 9.418 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.964e-05/0.5432, allocations: 26.67 kB / 0.5154 GB, free: 9.402 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.548e-06/0.5432, allocations: 0 / 0.5154 GB, free: 9.402 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 6.174e-05/0.5433, allocations: 326.6 kB / 0.5157 GB, free: 9.082 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001858/0.5435, allocations: 44.88 kB / 0.5158 GB, free: 9.066 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002271/0.5437, allocations: 140.6 kB / 0.5159 GB, free: 8.926 MB / 330.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002163/0.5439, allocations: 61.62 kB / 0.516 GB, free: 8.91 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.609e-06/0.544, allocations: 7.906 kB / 0.516 GB, free: 8.906 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0006976/0.5447, allocations: 193.7 kB / 0.5162 GB, free: 8.828 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.885e-05/0.5447, allocations: 7.688 kB / 0.5162 GB, free: 8.828 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.458e-05/0.5447, allocations: 3.984 kB / 0.5162 GB, free: 8.824 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.51e-05/0.5448, allocations: 11.77 kB / 0.5162 GB, free: 8.82 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003937/0.5452, allocations: 46.3 kB / 0.5162 GB, free: 8.812 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.779e-05/0.5452, allocations: 11.75 kB / 0.5162 GB, free: 8.809 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002839/0.5455, allocations: 27.33 kB / 0.5163 GB, free: 8.797 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.647e-05/0.5456, allocations: 7.656 kB / 0.5163 GB, free: 8.797 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 0.0002022/0.5458, allocations: 134.6 kB / 0.5164 GB, free: 8.672 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003181/0.5461, allocations: 92.31 kB / 0.5165 GB, free: 8.625 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001307/0.5463, allocations: 26.91 kB / 0.5165 GB, free: 8.613 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.057e-06/0.5463, allocations: 4.047 kB / 0.5165 GB, free: 8.609 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.175e-06/0.5463, allocations: 3.938 kB / 0.5165 GB, free: 8.605 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.287e-06/0.5464, allocations: 8 kB / 0.5165 GB, free: 8.602 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005246/0.5469, allocations: 213.5 kB / 0.5167 GB, free: 8.387 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.641e-06/0.5469, allocations: 0 / 0.5167 GB, free: 8.387 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0004626/0.5474, allocations: 42.62 kB / 0.5168 GB, free: 8.375 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.498e-06/0.5474, allocations: 3.984 kB / 0.5168 GB, free: 8.371 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.822e-05/0.5475, allocations: 6.75 kB / 0.5168 GB, free: 8.371 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.013e-06/0.5475, allocations: 4.734 kB / 0.5168 GB, free: 8.367 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.869e-06/0.5475, allocations: 3.953 kB / 0.5168 GB, free: 8.363 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001248/0.5488, allocations: 427 kB / 0.5172 GB, free: 8.07 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000142/0.549, allocations: 99.66 kB / 0.5173 GB, free: 7.965 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.819e-05/0.549, allocations: 10.86 kB / 0.5173 GB, free: 7.961 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002376/0.5493, allocations: 11.02 kB / 0.5173 GB, free: 7.957 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.978e-05/0.5493, allocations: 7.844 kB / 0.5173 GB, free: 7.953 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.432e-05/0.5494, allocations: 3.844 kB / 0.5173 GB, free: 7.953 MB / 330.7 MB Notification: Performance of sorting global known variables: time 0.0001168/0.5495, allocations: 126.8 kB / 0.5174 GB, free: 7.863 MB / 330.7 MB Notification: Performance of sort global known variables: time 4e-07/0.5495, allocations: 4.062 kB / 0.5175 GB, free: 7.859 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004499/0.5499, allocations: 30.84 kB / 0.5175 GB, free: 7.852 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.0001254/0.5501, allocations: 98.09 kB / 0.5176 GB, free: 7.766 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0004996/0.5506, allocations: 128.7 kB / 0.5177 GB, free: 7.734 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 2.845e-06/0.5506, allocations: 0 / 0.5177 GB, free: 7.734 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001677/0.5508, allocations: 38.25 kB / 0.5177 GB, free: 7.723 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005097/0.5513, allocations: 68.8 kB / 0.5178 GB, free: 7.703 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009233/0.5523, allocations: 0.5238 MB / 0.5183 GB, free: 7.273 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000214/0.5525, allocations: 0.73 MB / 0.519 GB, free: 6.555 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.271e-05/0.5526, allocations: 19.09 kB / 0.519 GB, free: 6.543 MB / 330.7 MB Notification: Performance of SimCode: time 1.172e-06/0.5526, allocations: 0 / 0.519 GB, free: 6.543 MB / 330.7 MB Notification: Performance of Templates: time 0.003896/0.5565, allocations: 1.571 MB / 0.5206 GB, free: 5.676 MB / 330.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