Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.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.SuperSampled,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.SuperSampled") translateModel(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled,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.SuperSampled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 3.2.3+maint.om/package.mo): time 0.001536/0.001536, allocations: 181.1 kB / 17.46 MB, free: 4.355 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.706/2.706, allocations: 205.4 MB / 223.6 MB, free: 9.027 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.001075/0.001075, allocations: 77.42 kB / 271.9 MB, free: 8.258 MB / 218.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0/package.mo): time 0.1383/0.1383, allocations: 12.2 MB / 332.4 MB, free: 11.66 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0006129/0.0006129, allocations: 12 kB / 392.7 MB, free: 67.08 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.154/0.1546, allocations: 50.29 MB / 443 MB, free: 16.73 MB / 298.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.6639/0.8186, allocations: 81.99 MB / 0.5127 GB, free: 12.46 MB / 330.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.000334/0.819, allocations: 77.58 kB / 0.5128 GB, free: 12.45 MB / 330.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.02373/0.8428, allocations: 6.454 MB / 0.5191 GB, free: 9.613 MB / 330.7 MB Notification: Performance of FrontEnd: time 3.256e-06/0.8429, allocations: 0 / 0.5191 GB, free: 9.613 MB / 330.7 MB Notification: Performance of Transformations before backend: time 1.922e-05/0.8429, allocations: 4 kB / 0.5191 GB, free: 9.609 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001354/0.8443, allocations: 0.5946 MB / 0.5196 GB, free: 8.988 MB / 330.7 MB Notification: Performance of prepare preOptimizeDAE: time 6.657e-05/0.8443, allocations: 12.03 kB / 0.5197 GB, free: 8.977 MB / 330.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001171/0.8445, allocations: 36.56 kB / 0.5197 GB, free: 8.941 MB / 330.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.00046/0.8449, allocations: 262.1 kB / 0.5199 GB, free: 8.66 MB / 330.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002466/0.8452, allocations: 145.1 kB / 0.5201 GB, free: 8.516 MB / 330.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.633e-05/0.8453, allocations: 25.69 kB / 0.5201 GB, free: 8.5 MB / 330.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001577/0.8469, allocations: 0.5661 MB / 0.5207 GB, free: 8.043 MB / 330.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.476e-05/0.8469, allocations: 7.906 kB / 0.5207 GB, free: 8.035 MB / 330.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 5.124e-05/0.847, allocations: 9.938 kB / 0.5207 GB, free: 8.035 MB / 330.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.286e-05/0.847, allocations: 8 kB / 0.5207 GB, free: 8.027 MB / 330.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001837/0.8488, allocations: 0.549 MB / 0.5212 GB, free: 7.605 MB / 330.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001922/0.8508, allocations: 1.015 MB / 0.5222 GB, free: 6.699 MB / 330.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001876/0.8527, allocations: 0.5002 MB / 0.5227 GB, free: 6.273 MB / 330.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008592/0.8536, allocations: 273.6 kB / 0.523 GB, free: 6.066 MB / 330.7 MB Notification: Performance of preOpt evalFunc (simulation): time 0.0001091/0.8537, allocations: 15.12 kB / 0.523 GB, free: 6.059 MB / 330.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.017e-05/0.8537, allocations: 38.31 kB / 0.523 GB, free: 6.016 MB / 330.7 MB Notification: Performance of pre-optimization done (n=45): time 5.35e-06/0.8537, allocations: 0 / 0.523 GB, free: 6.016 MB / 330.7 MB Notification: Performance of matching and sorting (n=73): time 0.0524/0.9061, allocations: 6.768 MB / 0.5296 GB, free: 15.96 MB / 346.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001983/0.9064, allocations: 148.7 kB / 0.5298 GB, free: 15.79 MB / 346.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003985/0.9068, allocations: 193.9 kB / 0.5299 GB, free: 15.62 MB / 346.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001323/0.907, allocations: 40.27 kB / 0.53 GB, free: 15.59 MB / 346.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001269/0.9071, allocations: 144.5 kB / 0.5301 GB, free: 15.46 MB / 346.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0003162/0.9074, allocations: 194.6 kB / 0.5303 GB, free: 15.3 MB / 346.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001021/0.9076, allocations: 23.38 kB / 0.5303 GB, free: 15.29 MB / 346.7 MB Notification: Performance of setup shared object (initialization): time 0.0002327/0.9078, allocations: 344.8 kB / 0.5307 GB, free: 14.95 MB / 346.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002404/0.9102, allocations: 0.6552 MB / 0.5313 GB, free: 14.54 MB / 346.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002534/0.9128, allocations: 0.8414 MB / 0.5321 GB, free: 13.87 MB / 346.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004493/0.9173, allocations: 1.334 MB / 0.5334 GB, free: 12.89 MB / 346.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.019e-05/0.9173, allocations: 0 / 0.5334 GB, free: 12.89 MB / 346.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.005305/0.9226, allocations: 1.481 MB / 0.5349 GB, free: 11.89 MB / 346.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.711e-05/0.9227, allocations: 8 kB / 0.5349 GB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.045e-05/0.9227, allocations: 4 kB / 0.5349 GB, free: 11.88 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.834e-05/0.9228, allocations: 8 kB / 0.5349 GB, free: 11.87 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001936/0.9247, allocations: 233.2 kB / 0.5351 GB, free: 11.64 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.169e-05/0.9248, allocations: 16.25 kB / 0.5351 GB, free: 11.63 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001418/0.9262, allocations: 126.3 kB / 0.5352 GB, free: 11.52 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001317/0.9264, allocations: 29.5 kB / 0.5353 GB, free: 11.49 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.0005422/0.9269, allocations: 187.5 kB / 0.5355 GB, free: 11.33 MB / 346.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005545/0.9275, allocations: 153.5 kB / 0.5356 GB, free: 11.2 MB / 346.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002789/0.9278, allocations: 66.92 kB / 0.5357 GB, free: 11.19 MB / 346.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.836e-05/0.9278, allocations: 8 kB / 0.5357 GB, free: 11.18 MB / 346.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.721e-05/0.9279, allocations: 7.938 kB / 0.5357 GB, free: 11.17 MB / 346.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.36e-05/0.9279, allocations: 3.984 kB / 0.5357 GB, free: 11.17 MB / 346.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.007474/0.9354, allocations: 2.297 MB / 0.5379 GB, free: 9.121 MB / 346.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.754e-05/0.9355, allocations: 15.98 kB / 0.5379 GB, free: 9.105 MB / 346.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.001285/0.9368, allocations: 199.3 kB / 0.5381 GB, free: 8.914 MB / 346.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.783e-05/0.9368, allocations: 19.94 kB / 0.5382 GB, free: 8.895 MB / 346.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.385e-05/0.9369, allocations: 25.06 kB / 0.5382 GB, free: 8.879 MB / 346.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.331e-05/0.937, allocations: 19.92 kB / 0.5382 GB, free: 8.859 MB / 346.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.028e-05/0.937, allocations: 15.94 kB / 0.5382 GB, free: 8.844 MB / 346.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.005664/0.9427, allocations: 1.677 MB / 0.5398 GB, free: 7.324 MB / 346.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000527/0.9433, allocations: 168.9 kB / 0.54 GB, free: 7.164 MB / 346.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001664/0.9434, allocations: 30.38 kB / 0.54 GB, free: 7.141 MB / 346.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.001117/0.9446, allocations: 102.3 kB / 0.5401 GB, free: 7.051 MB / 346.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000385/0.945, allocations: 105.2 kB / 0.5402 GB, free: 6.965 MB / 346.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001051/0.9451, allocations: 27.31 kB / 0.5403 GB, free: 6.941 MB / 346.7 MB Notification: Performance of sorting global known variables: time 0.0003011/0.9454, allocations: 152.4 kB / 0.5404 GB, free: 6.812 MB / 346.7 MB Notification: Performance of sort global known variables: time 1.81e-07/0.9454, allocations: 0 / 0.5404 GB, free: 6.812 MB / 346.7 MB Notification: Performance of remove unused functions: time 0.001464/0.9469, allocations: 123.4 kB / 0.5405 GB, free: 6.711 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.0004002/0.9473, allocations: 145.8 kB / 0.5407 GB, free: 6.566 MB / 346.7 MB Notification: Performance of simCode: created initialization part: time 0.004804/0.9522, allocations: 1.202 MB / 0.5418 GB, free: 5.742 MB / 346.7 MB Notification: Performance of simCode: created event and clocks part: time 1.55e-05/0.9522, allocations: 0 / 0.5418 GB, free: 5.742 MB / 346.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001628/0.9538, allocations: 384 kB / 0.5422 GB, free: 5.426 MB / 346.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001887/0.9558, allocations: 135.9 kB / 0.5423 GB, free: 5.328 MB / 346.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004481/0.9603, allocations: 1.378 MB / 0.5437 GB, free: 3.922 MB / 346.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007609/0.9611, allocations: 0.8122 MB / 0.5445 GB, free: 3.086 MB / 346.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0005921/0.9617, allocations: 46.73 kB / 0.5445 GB, free: 3.043 MB / 346.7 MB Notification: Performance of SimCode: time 2.254e-06/0.9617, allocations: 0 / 0.5445 GB, free: 3.043 MB / 346.7 MB Notification: Performance of Templates: time 0.02004/0.9817, allocations: 7.099 MB / 0.5515 GB, free: 11.98 MB / 362.7 MB make -j1 -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled --alarm=480 -emit_protected > Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.mat","../files/Modelica_Synchronous_cpp_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.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