Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.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/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/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.SubClocked,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.SubClocked") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked,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.SubClocked") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.002425/0.002426, allocations: 186 kB / 17.46 MB, free: 4.242 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.697/2.697, allocations: 205.4 MB / 223.6 MB, free: 9.02 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.001334/0.001334, allocations: 88.75 kB / 271.9 MB, free: 8.25 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1643/0.1643, allocations: 12.22 MB / 332.4 MB, free: 11.63 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0007187/0.000719, allocations: 12 kB / 392.7 MB, free: 67.07 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.15/0.1507, allocations: 50.28 MB / 443 MB, free: 16.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.5552/0.706, allocations: 82.14 MB / 0.5128 GB, free: 12.27 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0003568/0.7064, allocations: 73.48 kB / 0.5129 GB, free: 12.25 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.0302/0.7367, allocations: 7.076 MB / 0.5198 GB, free: 8.984 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.657e-06/0.7367, allocations: 0 / 0.5198 GB, free: 8.984 MB / 330.7 MB Notification: Performance of Transformations before backend: time 2.265e-05/0.7368, allocations: 8 kB / 0.5198 GB, free: 8.977 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001566/0.7384, allocations: 0.5948 MB / 0.5204 GB, free: 8.355 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 5.215e-05/0.7384, allocations: 8.031 kB / 0.5204 GB, free: 8.348 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001208/0.7386, allocations: 40.56 kB / 0.5204 GB, free: 8.309 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004434/0.739, allocations: 275.6 kB / 0.5207 GB, free: 8.023 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002685/0.7393, allocations: 143.8 kB / 0.5208 GB, free: 7.879 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.66e-05/0.7394, allocations: 29.69 kB / 0.5209 GB, free: 7.859 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001779/0.7412, allocations: 0.5829 MB / 0.5214 GB, free: 7.391 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.885e-05/0.7412, allocations: 4 kB / 0.5214 GB, free: 7.387 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 7.69e-05/0.7413, allocations: 9.75 kB / 0.5215 GB, free: 7.387 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.615e-05/0.7414, allocations: 8 kB / 0.5215 GB, free: 7.379 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.002158/0.7435, allocations: 0.5411 MB / 0.522 GB, free: 6.961 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.002147/0.7457, allocations: 1.026 MB / 0.523 GB, free: 6.047 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.002187/0.7479, allocations: 0.5065 MB / 0.5235 GB, free: 5.613 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.001038/0.749, allocations: 276.5 kB / 0.5238 GB, free: 5.406 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 9.932e-05/0.7491, allocations: 15.92 kB / 0.5238 GB, free: 5.391 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.407e-05/0.7492, allocations: 40.94 kB / 0.5238 GB, free: 5.348 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 9.648e-06/0.7492, allocations: 0 / 0.5238 GB, free: 5.348 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.05782/0.807, allocations: 6.76 MB / 0.5304 GB, free: 15.3 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002711/0.8074, allocations: 147.8 kB / 0.5306 GB, free: 15.13 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005543/0.808, allocations: 202.6 kB / 0.5307 GB, free: 14.95 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0002036/0.8082, allocations: 40.58 kB / 0.5308 GB, free: 14.91 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001763/0.8084, allocations: 142.7 kB / 0.5309 GB, free: 14.79 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0004388/0.8089, allocations: 201.5 kB / 0.5311 GB, free: 14.62 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001257/0.809, allocations: 18.19 kB / 0.5311 GB, free: 14.61 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0003236/0.8094, allocations: 344.9 kB / 0.5315 GB, free: 14.28 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00278/0.8122, allocations: 0.6564 MB / 0.5321 GB, free: 13.86 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002893/0.8151, allocations: 0.8396 MB / 0.5329 GB, free: 13.2 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005398/0.8206, allocations: 1.326 MB / 0.5342 GB, free: 12.23 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.802e-05/0.8207, allocations: 4.375 kB / 0.5342 GB, free: 12.23 MB / 346.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.00665/0.8273, allocations: 1.481 MB / 0.5357 GB, free: 11.22 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 5.795e-05/0.8275, allocations: 8 kB / 0.5357 GB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.957e-05/0.8275, allocations: 8 kB / 0.5357 GB, free: 11.21 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.209e-05/0.8276, allocations: 11.94 kB / 0.5357 GB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002184/0.8298, allocations: 235.2 kB / 0.5359 GB, free: 10.97 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.59e-05/0.8299, allocations: 11.94 kB / 0.5359 GB, free: 10.96 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001655/0.8315, allocations: 122.7 kB / 0.536 GB, free: 10.85 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000187/0.8317, allocations: 23.38 kB / 0.5361 GB, free: 10.83 MB / 346.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (84): * Single equations (assignments): 84 * 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.0006443/0.8324, allocations: 188.5 kB / 0.5362 GB, free: 10.67 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0007453/0.8331, allocations: 148.2 kB / 0.5364 GB, free: 10.54 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0003884/0.8336, allocations: 67.11 kB / 0.5365 GB, free: 10.53 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.77e-05/0.8336, allocations: 8 kB / 0.5365 GB, free: 10.52 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 2.23e-05/0.8336, allocations: 7.938 kB / 0.5365 GB, free: 10.51 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.461e-05/0.8337, allocations: 7.984 kB / 0.5365 GB, free: 10.5 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.009007/0.8427, allocations: 2.305 MB / 0.5387 GB, free: 8.449 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.816e-05/0.8428, allocations: 8.234 kB / 0.5387 GB, free: 8.441 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.00138/0.8442, allocations: 199.3 kB / 0.5389 GB, free: 8.25 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.111e-05/0.8442, allocations: 19.94 kB / 0.5389 GB, free: 8.23 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 0.0001181/0.8444, allocations: 26 kB / 0.539 GB, free: 8.215 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.756e-05/0.8444, allocations: 19.92 kB / 0.539 GB, free: 8.195 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.339e-05/0.8445, allocations: 19.92 kB / 0.539 GB, free: 8.176 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005878/0.8503, allocations: 1.681 MB / 0.5406 GB, free: 6.656 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004752/0.8509, allocations: 168.5 kB / 0.5408 GB, free: 6.496 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001675/0.8511, allocations: 28.94 kB / 0.5408 GB, free: 6.477 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001162/0.8523, allocations: 97.78 kB / 0.5409 GB, free: 6.391 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0003696/0.8527, allocations: 105.2 kB / 0.541 GB, free: 6.301 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001094/0.8528, allocations: 31.31 kB / 0.5411 GB, free: 6.277 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0002946/0.8531, allocations: 149.7 kB / 0.5412 GB, free: 6.148 MB / 346.7 MB Notification: Performance of sort global known variables: time 2.604e-06/0.8531, allocations: 0 / 0.5412 GB, free: 6.148 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001372/0.8545, allocations: 129.2 kB / 0.5413 GB, free: 6.043 MB / 346.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 45 * Number of states: 2 (load.w,speed.flange.phi) * Number of discrete variables: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.0004272/0.8549, allocations: 137.8 kB / 0.5415 GB, free: 5.906 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004829/0.8598, allocations: 1.2 MB / 0.5426 GB, free: 5.078 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.772e-05/0.8599, allocations: 0 / 0.5426 GB, free: 5.078 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001933/0.8618, allocations: 385.1 kB / 0.543 GB, free: 4.762 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.002146/0.864, allocations: 146.6 kB / 0.5431 GB, free: 4.656 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004682/0.8687, allocations: 1.377 MB / 0.5445 GB, free: 3.254 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0009337/0.8697, allocations: 0.8163 MB / 0.5453 GB, free: 2.414 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006848/0.8704, allocations: 43.42 kB / 0.5453 GB, free: 2.371 MB / 346.7 MB Notification: Performance of SimCode: time 3.126e-06/0.8705, allocations: 0 / 0.5453 GB, free: 2.371 MB / 346.7 MB Notification: Performance of Templates: time 0.0229/0.8934, allocations: 7.136 MB / 0.5523 GB, free: 11.27 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SubClocked.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) "" Variables in the reference:PI.y,Time,angle.phi,gain.y,speed.w Variables in the result:PI.y,angle.phi,gain.y,speed.w,time