Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.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.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002196/0.002196, allocations: 186 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 2.047/2.047, allocations: 205.4 MB / 222.6 MB, free: 9.125 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.001147/0.001147, allocations: 93.53 kB / 270.9 MB, free: 8.367 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.1029/0.1029, allocations: 12.59 MB / 331.8 MB, free: 11.4 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007261/0.0007261, allocations: 12 kB / 392 MB, free: 66.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08765/0.08841, allocations: 50.37 MB / 442.3 MB, free: 16.5 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.4259/0.5144, allocations: 80.97 MB / 0.511 GB, free: 12.26 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000245/0.5147, allocations: 67.78 kB / 0.5111 GB, free: 12.25 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02399/0.5387, allocations: 5.578 MB / 0.5166 GB, free: 10.12 MB / 330.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.5387, allocations: 0 / 0.5166 GB, free: 10.12 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.754e-05/0.5388, allocations: 4.062 kB / 0.5166 GB, free: 10.12 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: 56 * Number of variables: 56 Notification: Performance of Generate backend data structure: time 0.001333/0.5401, allocations: 0.5683 MB / 0.5171 GB, free: 9.645 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.02e-05/0.5402, allocations: 11.56 kB / 0.5171 GB, free: 9.645 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.504e-05/0.5403, allocations: 27.06 kB / 0.5172 GB, free: 9.633 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003264/0.5406, allocations: 241 kB / 0.5174 GB, free: 9.395 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002517/0.5409, allocations: 144.5 kB / 0.5175 GB, free: 9.285 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.506e-05/0.541, allocations: 28.92 kB / 0.5175 GB, free: 9.281 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001395/0.5424, allocations: 378.6 kB / 0.5179 GB, free: 9.141 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.28e-05/0.5424, allocations: 3.844 kB / 0.5179 GB, free: 9.141 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.396e-05/0.5425, allocations: 9.875 kB / 0.5179 GB, free: 9.141 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.618e-06/0.5425, allocations: 7.688 kB / 0.5179 GB, free: 9.141 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002369/0.5449, allocations: 0.5154 MB / 0.5184 GB, free: 8.762 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00238/0.5473, allocations: 1.034 MB / 0.5194 GB, free: 7.891 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001734/0.549, allocations: 337.9 kB / 0.5198 GB, free: 7.625 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.349e-05/0.5491, allocations: 4 kB / 0.5198 GB, free: 7.621 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.107e-05/0.5491, allocations: 37.56 kB / 0.5198 GB, free: 7.578 MB / 330.7 MB Notification: Performance of pre-optimization done (n=29): time 3.958e-06/0.5491, allocations: 4 kB / 0.5198 GB, free: 7.574 MB / 330.7 MB Notification: Performance of matching and sorting (n=53): time 0.05301/0.6022, allocations: 6.71 MB / 0.5264 GB, free: 1.598 MB / 330.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 3.578e-05/0.6022, allocations: 59.84 kB / 0.5264 GB, free: 1.527 MB / 330.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003407/0.6026, allocations: 179.5 kB / 0.5266 GB, free: 1.371 MB / 330.7 MB Notification: Performance of collectPreVariables (initialization): time 9.639e-05/0.6027, allocations: 32.45 kB / 0.5266 GB, free: 1.34 MB / 330.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.87e-05/0.6028, allocations: 220.1 kB / 0.5268 GB, free: 1.133 MB / 330.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001807/0.603, allocations: 177.2 kB / 0.527 GB, free: 0.9844 MB / 330.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.092e-05/0.6031, allocations: 7 kB / 0.527 GB, free: 0.9844 MB / 330.7 MB Notification: Performance of setup shared object (initialization): time 7.365e-05/0.6032, allocations: 333.2 kB / 0.5273 GB, free: 0.6602 MB / 330.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002432/0.6056, allocations: 0.4966 MB / 0.5278 GB, free: 328 kB / 330.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002542/0.6082, allocations: 0.5573 MB / 0.5284 GB, free: 15.91 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002512/0.6107, allocations: 439.9 kB / 0.5288 GB, free: 15.61 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.405e-06/0.6108, allocations: 3.953 kB / 0.5288 GB, free: 15.61 MB / 346.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.005478/0.6163, allocations: 1.064 MB / 0.5298 GB, free: 14.84 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.764e-05/0.6164, allocations: 4 kB / 0.5298 GB, free: 14.83 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.447e-05/0.6164, allocations: 0 / 0.5298 GB, free: 14.83 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.334e-05/0.6164, allocations: 7.938 kB / 0.5298 GB, free: 14.82 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001936/0.6184, allocations: 191.1 kB / 0.53 GB, free: 14.64 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.973e-05/0.6184, allocations: 7.984 kB / 0.53 GB, free: 14.64 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001365/0.6198, allocations: 107.1 kB / 0.5301 GB, free: 14.54 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.484e-05/0.6199, allocations: 23.31 kB / 0.5301 GB, free: 14.52 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (66): * Single equations (assignments): 66 * 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.0003604/0.6203, allocations: 162 kB / 0.5303 GB, free: 14.38 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001371/0.6204, allocations: 31.58 kB / 0.5303 GB, free: 14.35 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001594/0.6206, allocations: 49.92 kB / 0.5304 GB, free: 14.33 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.403e-05/0.6206, allocations: 8 kB / 0.5304 GB, free: 14.32 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.157e-05/0.6206, allocations: 3.984 kB / 0.5304 GB, free: 14.32 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.005e-06/0.6207, allocations: 0 / 0.5304 GB, free: 14.32 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007688/0.6284, allocations: 2.013 MB / 0.5324 GB, free: 12.52 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.699e-05/0.6284, allocations: 8 kB / 0.5324 GB, free: 12.51 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001329/0.6298, allocations: 166 kB / 0.5325 GB, free: 12.35 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.312e-05/0.6298, allocations: 12 kB / 0.5325 GB, free: 12.34 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.525e-05/0.6299, allocations: 22.52 kB / 0.5326 GB, free: 12.32 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.659e-05/0.6299, allocations: 23.92 kB / 0.5326 GB, free: 12.3 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.333e-05/0.6299, allocations: 11.94 kB / 0.5326 GB, free: 12.29 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.006025/0.636, allocations: 1.758 MB / 0.5343 GB, free: 10.45 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003254/0.6364, allocations: 146.3 kB / 0.5344 GB, free: 10.31 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000101/0.6365, allocations: 26.06 kB / 0.5345 GB, free: 10.29 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001019/0.6375, allocations: 94.03 kB / 0.5346 GB, free: 10.2 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003154/0.6378, allocations: 89.16 kB / 0.5346 GB, free: 10.13 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.195e-05/0.6379, allocations: 27.12 kB / 0.5347 GB, free: 10.11 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002922/0.6382, allocations: 158.6 kB / 0.5348 GB, free: 9.973 MB / 346.7 MB Notification: Performance of sort global known variables: time 4.31e-07/0.6382, allocations: 0 / 0.5348 GB, free: 9.973 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.0007399/0.639, allocations: 92.94 kB / 0.5349 GB, free: 9.895 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 36 * Number of states: 3 (load.w,speed.flange.phi,PI.x) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (53): * Single equations (assignments): 53 * 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.0002413/0.6392, allocations: 132.4 kB / 0.535 GB, free: 9.766 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004895/0.6441, allocations: 0.9364 MB / 0.5359 GB, free: 9.086 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.156e-05/0.6442, allocations: 0 / 0.5359 GB, free: 9.086 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.002032/0.6463, allocations: 371.8 kB / 0.5363 GB, free: 8.781 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007034/0.647, allocations: 56.47 kB / 0.5364 GB, free: 8.738 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003917/0.6509, allocations: 1.199 MB / 0.5375 GB, free: 7.512 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004997/0.6515, allocations: 0.7946 MB / 0.5383 GB, free: 6.695 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004915/0.652, allocations: 31.44 kB / 0.5383 GB, free: 6.664 MB / 346.7 MB Notification: Performance of SimCode: time 1.232e-06/0.652, allocations: 0 / 0.5383 GB, free: 6.664 MB / 346.7 MB Notification: Performance of Templates: time 0.01383/0.6658, allocations: 5.416 MB / 0.5436 GB, free: 1.285 MB / 346.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.Continuous.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches