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.001562/0.001562, allocations: 181 kB / 13.7 MB, free: 1.625 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.031/2.031, allocations: 205.2 MB / 219.4 MB, free: 14.27 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.001154/0.001154, allocations: 86.62 kB / 267.6 MB, free: 14.11 MB / 234.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.1012/0.1012, allocations: 12.6 MB / 328.2 MB, free: 11.16 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 4.112e-05/4.127e-05, allocations: 4 kB / 386 MB, free: 1.316 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3077/0.3078, allocations: 50.37 MB / 436.3 MB, free: 14.16 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1455/0.4534, allocations: 80.89 MB / 0.5051 GB, free: 13.16 MB / 362.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002856/0.4537, allocations: 67.97 kB / 0.5052 GB, free: 13.09 MB / 362.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02836/0.4821, allocations: 5.56 MB / 0.5106 GB, free: 7.523 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.873e-06/0.4821, allocations: 0 / 0.5106 GB, free: 7.523 MB / 362.7 MB Notification: Performance of Transformations before backend: time 2.857e-05/0.4822, allocations: 4 kB / 0.5106 GB, free: 7.52 MB / 362.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.001648/0.4838, allocations: 0.5448 MB / 0.5111 GB, free: 6.93 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.241e-05/0.4839, allocations: 8.031 kB / 0.5111 GB, free: 6.922 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001406/0.4841, allocations: 31.72 kB / 0.5112 GB, free: 6.891 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004997/0.4846, allocations: 243.2 kB / 0.5114 GB, free: 6.609 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003416/0.4849, allocations: 145.6 kB / 0.5115 GB, free: 6.449 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.95e-05/0.4851, allocations: 31.91 kB / 0.5116 GB, free: 6.418 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000878/0.4859, allocations: 311.6 kB / 0.5119 GB, free: 6.102 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.933e-05/0.486, allocations: 4 kB / 0.5119 GB, free: 6.098 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.787e-05/0.4861, allocations: 4 kB / 0.5119 GB, free: 6.094 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.349e-05/0.4861, allocations: 8 kB / 0.5119 GB, free: 6.086 MB / 362.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001142/0.4872, allocations: 386.1 kB / 0.5123 GB, free: 5.707 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.003114/0.4904, allocations: 1.034 MB / 0.5133 GB, free: 4.602 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001004/0.4914, allocations: 254.5 kB / 0.5135 GB, free: 4.344 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003942/0.4919, allocations: 132.8 kB / 0.5136 GB, free: 4.211 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.237e-05/0.492, allocations: 4 kB / 0.5136 GB, free: 4.207 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.658e-05/0.492, allocations: 34.56 kB / 0.5137 GB, free: 4.164 MB / 362.7 MB Notification: Performance of pre-optimization done (n=29): time 5.871e-06/0.492, allocations: 3.984 kB / 0.5137 GB, free: 4.16 MB / 362.7 MB Notification: Performance of matching and sorting (n=53): time 0.01454/0.5066, allocations: 3.098 MB / 0.5167 GB, free: 0.9688 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.268e-05/0.5067, allocations: 63.78 kB / 0.5168 GB, free: 0.8945 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003304/0.507, allocations: 174.3 kB / 0.5169 GB, free: 0.7188 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001025/0.5072, allocations: 37.7 kB / 0.517 GB, free: 0.6758 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001375/0.5073, allocations: 223 kB / 0.5172 GB, free: 468 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002316/0.5075, allocations: 177.5 kB / 0.5173 GB, free: 288 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.666e-05/0.5076, allocations: 8 kB / 0.5174 GB, free: 280 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.2714/0.7791, allocations: 327.7 kB / 0.5177 GB, free: 87.54 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001147/0.7803, allocations: 329.3 kB / 0.518 GB, free: 87.53 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001043/0.7814, allocations: 385.6 kB / 0.5183 GB, free: 87.49 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0008024/0.7822, allocations: 267 kB / 0.5186 GB, free: 87.48 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.3e-06/0.7822, allocations: 4.062 kB / 0.5186 GB, free: 87.48 MB / 362.7 MB Notification: Performance of matching and sorting (n=66) (initialization): time 0.002034/0.7843, allocations: 0.7051 MB / 0.5193 GB, free: 87.42 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.334e-05/0.7844, allocations: 6.641 kB / 0.5193 GB, free: 87.42 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.383e-05/0.7844, allocations: 1.062 kB / 0.5193 GB, free: 87.42 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.946e-05/0.7844, allocations: 4.344 kB / 0.5193 GB, free: 87.42 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002024/0.7865, allocations: 188 kB / 0.5195 GB, free: 87.42 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.278e-05/0.7866, allocations: 4.047 kB / 0.5195 GB, free: 87.42 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001447/0.788, allocations: 113.9 kB / 0.5196 GB, free: 87.41 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001091/0.7882, allocations: 16.95 kB / 0.5196 GB, free: 87.4 MB / 362.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 () * 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.0002658/0.7884, allocations: 129.8 kB / 0.5197 GB, free: 87.28 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001383/0.7886, allocations: 33.34 kB / 0.5198 GB, free: 87.28 MB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001673/0.7888, allocations: 54.12 kB / 0.5198 GB, free: 87.24 MB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.23e-05/0.7888, allocations: 8.469 kB / 0.5198 GB, free: 87.24 MB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.727e-06/0.7888, allocations: 0 / 0.5198 GB, free: 87.24 MB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.728e-06/0.7888, allocations: 2.203 kB / 0.5198 GB, free: 87.24 MB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005621/0.7945, allocations: 1.722 MB / 0.5215 GB, free: 86.28 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.087e-05/0.7945, allocations: 12.11 kB / 0.5215 GB, free: 86.28 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001445/0.796, allocations: 166.6 kB / 0.5217 GB, free: 86.27 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.306e-05/0.7961, allocations: 12.28 kB / 0.5217 GB, free: 86.27 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001113/0.7962, allocations: 18.34 kB / 0.5217 GB, free: 86.27 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.353e-05/0.7963, allocations: 17.75 kB / 0.5217 GB, free: 86.26 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.484e-05/0.7963, allocations: 13.25 kB / 0.5217 GB, free: 86.26 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002387/0.7987, allocations: 1.347 MB / 0.5231 GB, free: 84.94 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003704/0.7991, allocations: 142.2 kB / 0.5232 GB, free: 84.82 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001091/0.7992, allocations: 22.83 kB / 0.5232 GB, free: 84.81 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001111/0.8004, allocations: 98.06 kB / 0.5233 GB, free: 84.8 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003954/0.8008, allocations: 96.78 kB / 0.5234 GB, free: 84.77 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.286e-05/0.8009, allocations: 23.22 kB / 0.5234 GB, free: 84.76 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0002444/0.8012, allocations: 149.1 kB / 0.5236 GB, free: 84.67 MB / 362.7 MB Notification: Performance of sort global known variables: time 3.9e-07/0.8012, allocations: 0 / 0.5236 GB, free: 84.67 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0008437/0.802, allocations: 100.3 kB / 0.5237 GB, free: 84.65 MB / 362.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 () * 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.0002498/0.8023, allocations: 125.7 kB / 0.5238 GB, free: 84.55 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001897/0.8042, allocations: 0.6149 MB / 0.5244 GB, free: 84.26 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 1.419e-05/0.8043, allocations: 1.156 kB / 0.5244 GB, free: 84.26 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008912/0.8052, allocations: 222.5 kB / 0.5246 GB, free: 84.18 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007489/0.806, allocations: 53.8 kB / 0.5246 GB, free: 84.16 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003046/0.8091, allocations: 0.8776 MB / 0.5255 GB, free: 83.48 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004768/0.8096, allocations: 0.7921 MB / 0.5263 GB, free: 82.78 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000544/0.8102, allocations: 33.02 kB / 0.5263 GB, free: 82.77 MB / 362.7 MB Notification: Performance of SimCode: time 1.713e-06/0.8102, allocations: 0.5 kB / 0.5263 GB, free: 82.77 MB / 362.7 MB Notification: Performance of Templates: time 0.01491/0.8251, allocations: 5.398 MB / 0.5316 GB, free: 81.83 MB / 362.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