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-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.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.001455/0.001455, allocations: 185.7 kB / 16.44 MB, free: 5.691 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.88/1.88, allocations: 205.4 MB / 222.6 MB, free: 9.113 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.001175/0.001175, allocations: 92.56 kB / 270.9 MB, free: 8.375 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.1021/0.1021, allocations: 12.59 MB / 331.8 MB, free: 11.4 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0005435/0.0005434, allocations: 12 kB / 392 MB, free: 66.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09121/0.09178, allocations: 50.37 MB / 442.3 MB, free: 16.5 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4185/0.5104, allocations: 80.19 MB / 0.5103 GB, free: 12.5 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002574/0.5107, allocations: 78.45 kB / 0.5104 GB, free: 12.49 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.00996/0.5207, allocations: 2.611 MB / 0.5129 GB, free: 11.4 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.485e-06/0.5207, allocations: 0 / 0.5129 GB, free: 11.4 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.554e-05/0.5207, allocations: 7.781 kB / 0.5129 GB, free: 11.39 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.0006037/0.5214, allocations: 416.9 kB / 0.5133 GB, free: 10.99 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.838e-05/0.5214, allocations: 11.72 kB / 0.5133 GB, free: 10.99 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.503e-05/0.5215, allocations: 11.59 kB / 0.5133 GB, free: 10.98 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002068/0.5217, allocations: 204.5 kB / 0.5135 GB, free: 10.77 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.837e-05/0.5217, allocations: 18.36 kB / 0.5135 GB, free: 10.76 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.752e-05/0.5218, allocations: 11.59 kB / 0.5136 GB, free: 10.76 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005829/0.5224, allocations: 235.1 kB / 0.5138 GB, free: 10.63 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.857e-05/0.5224, allocations: 3.969 kB / 0.5138 GB, free: 10.63 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.88e-05/0.5224, allocations: 3.938 kB / 0.5138 GB, free: 10.63 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.035e-06/0.5224, allocations: 7.844 kB / 0.5138 GB, free: 10.63 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003924/0.5228, allocations: 91.31 kB / 0.5139 GB, free: 10.61 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007153/0.5236, allocations: 0.6046 MB / 0.5145 GB, free: 10.03 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004578/0.524, allocations: 147.7 kB / 0.5146 GB, free: 9.938 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.267e-05/0.5241, allocations: 3.844 kB / 0.5146 GB, free: 9.938 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.543e-05/0.5241, allocations: 48.05 kB / 0.5147 GB, free: 9.887 MB / 330.7 MB Notification: Performance of pre-optimization done (n=14): time 2.925e-06/0.5241, allocations: 0 / 0.5147 GB, free: 9.887 MB / 330.7 MB Notification: Performance of matching and sorting (n=14): time 0.0007462/0.5249, allocations: 189.5 kB / 0.5148 GB, free: 9.82 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.809e-05/0.525, allocations: 118.2 kB / 0.515 GB, free: 9.688 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001013/0.5251, allocations: 127.3 kB / 0.5151 GB, free: 9.578 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 1.533e-05/0.5251, allocations: 29.58 kB / 0.5151 GB, free: 9.547 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.407e-05/0.5252, allocations: 185.1 kB / 0.5153 GB, free: 9.379 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.648e-05/0.5252, allocations: 27.36 kB / 0.5153 GB, free: 9.359 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.059e-05/0.5252, allocations: 3.125 kB / 0.5153 GB, free: 9.359 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 5.943e-05/0.5253, allocations: 318.8 kB / 0.5156 GB, free: 9.043 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001864/0.5255, allocations: 47.12 kB / 0.5157 GB, free: 9.027 MB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002293/0.5258, allocations: 151.3 kB / 0.5158 GB, free: 8.879 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 = 0.0 (PI.y_start = 0.0) Notification: Performance of analyzeInitialSystem (initialization): time 0.0003917/0.5262, allocations: 142.1 kB / 0.5159 GB, free: 8.773 MB / 330.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.977e-06/0.5262, allocations: 4.094 kB / 0.5159 GB, free: 8.77 MB / 330.7 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005496/0.5267, allocations: 202.3 kB / 0.5161 GB, free: 8.691 MB / 330.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.915e-05/0.5268, allocations: 7.922 kB / 0.5161 GB, free: 8.688 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.718e-06/0.5268, allocations: 3.875 kB / 0.5161 GB, free: 8.688 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.142e-05/0.5268, allocations: 7.688 kB / 0.5162 GB, free: 8.688 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002863/0.5271, allocations: 50.59 kB / 0.5162 GB, free: 8.672 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.16e-05/0.5271, allocations: 7.656 kB / 0.5162 GB, free: 8.672 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001755/0.5273, allocations: 26.86 kB / 0.5162 GB, free: 8.656 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.732e-05/0.5274, allocations: 11.56 kB / 0.5162 GB, free: 8.656 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 = 0.0. 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.0001345/0.5275, allocations: 128.8 kB / 0.5164 GB, free: 8.539 MB / 330.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002207/0.5277, allocations: 90.09 kB / 0.5165 GB, free: 8.492 MB / 330.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.037e-05/0.5278, allocations: 23.22 kB / 0.5165 GB, free: 8.48 MB / 330.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.51e-06/0.5278, allocations: 3.844 kB / 0.5165 GB, free: 8.48 MB / 330.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.67e-06/0.5278, allocations: 0 / 0.5165 GB, free: 8.48 MB / 330.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.911e-06/0.5278, allocations: 3.844 kB / 0.5165 GB, free: 8.48 MB / 330.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003069/0.5282, allocations: 210.2 kB / 0.5167 GB, free: 8.266 MB / 330.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.795e-06/0.5282, allocations: 0 / 0.5167 GB, free: 8.266 MB / 330.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003775/0.5286, allocations: 42.75 kB / 0.5167 GB, free: 8.258 MB / 330.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.733e-06/0.5286, allocations: 7.797 kB / 0.5167 GB, free: 8.254 MB / 330.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.82e-05/0.5286, allocations: 3.875 kB / 0.5167 GB, free: 8.254 MB / 330.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 7.364e-06/0.5286, allocations: 11.77 kB / 0.5167 GB, free: 8.246 MB / 330.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.154e-06/0.5286, allocations: 0 / 0.5167 GB, free: 8.246 MB / 330.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007813/0.5294, allocations: 416.2 kB / 0.5171 GB, free: 7.961 MB / 330.7 MB Notification: Performance of postOpt removeConstants (simulation): time 5.463e-05/0.5295, allocations: 93.69 kB / 0.5172 GB, free: 7.855 MB / 330.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.37e-05/0.5295, allocations: 3.875 kB / 0.5172 GB, free: 7.855 MB / 330.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002102/0.5298, allocations: 15.19 kB / 0.5173 GB, free: 7.852 MB / 330.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.127e-05/0.5298, allocations: 3.938 kB / 0.5173 GB, free: 7.848 MB / 330.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.456e-05/0.5298, allocations: 7.438 kB / 0.5173 GB, free: 7.848 MB / 330.7 MB Notification: Performance of sorting global known variables: time 7.25e-05/0.5299, allocations: 109.5 kB / 0.5174 GB, free: 7.762 MB / 330.7 MB Notification: Performance of sort global known variables: time 3.71e-07/0.5299, allocations: 4.062 kB / 0.5174 GB, free: 7.758 MB / 330.7 MB Notification: Performance of remove unused functions: time 0.0004462/0.5304, allocations: 30.19 kB / 0.5174 GB, free: 7.754 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.0001204/0.5305, allocations: 105.9 kB / 0.5175 GB, free: 7.652 MB / 330.7 MB Notification: Performance of simCode: created initialization part: time 0.0005154/0.531, allocations: 134.8 kB / 0.5176 GB, free: 7.621 MB / 330.7 MB Notification: Performance of simCode: created event and clocks part: time 3.567e-06/0.5311, allocations: 0 / 0.5176 GB, free: 7.621 MB / 330.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0001658/0.5312, allocations: 30.78 kB / 0.5177 GB, free: 7.613 MB / 330.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005699/0.5318, allocations: 64.98 kB / 0.5177 GB, free: 7.594 MB / 330.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001147/0.533, allocations: 0.5219 MB / 0.5182 GB, free: 7.172 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000175/0.5332, allocations: 0.7192 MB / 0.5189 GB, free: 6.457 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.383e-05/0.5332, allocations: 22.41 kB / 0.519 GB, free: 6.445 MB / 330.7 MB Notification: Performance of SimCode: time 1.202e-06/0.5333, allocations: 0 / 0.519 GB, free: 6.445 MB / 330.7 MB Notification: Performance of Templates: time 0.003865/0.5371, allocations: 1.576 MB / 0.5205 GB, free: 5.664 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