Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_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-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.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="PI.y|Time|angle.phi|gain.y|speed.w",fileNamePrefix="Modelica_Synchronous_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_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.0009763/0.0009763, allocations: 180.9 kB / 8.049 MB, free: 1.027 MB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.546/1.546, allocations: 205.3 MB / 213.8 MB, free: 1.738 MB / 170.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 3.2.3+maint.om/package.mo): time 0.0009725/0.0009727, allocations: 90.62 kB / 261.8 MB, free: 1.676 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.06973/0.06973, allocations: 12.6 MB / 322.4 MB, free: 15.19 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.627e-05/1.632e-05, allocations: 0 / 378.9 MB, free: 6.52 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2357/0.2357, allocations: 50.38 MB / 429.3 MB, free: 18.34 MB / 282.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.1062/0.342, allocations: 81.26 MB / 0.4986 GB, free: 0.9648 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0002555/0.3423, allocations: 75.89 kB / 0.4987 GB, free: 0.8906 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.01938/0.3617, allocations: 6.381 MB / 0.5049 GB, free: 10.5 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.222e-06/0.3618, allocations: 0 / 0.5049 GB, free: 10.5 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.758e-05/0.3618, allocations: 8 kB / 0.5049 GB, free: 10.5 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001148/0.3629, allocations: 0.5724 MB / 0.5055 GB, free: 9.879 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.635e-05/0.363, allocations: 8.031 kB / 0.5055 GB, free: 9.871 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001211/0.3631, allocations: 35.62 kB / 0.5055 GB, free: 9.836 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004016/0.3635, allocations: 273.5 kB / 0.5058 GB, free: 9.527 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001996/0.3638, allocations: 133.6 kB / 0.5059 GB, free: 9.379 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.048e-05/0.3638, allocations: 16 kB / 0.5059 GB, free: 9.363 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0006955/0.3645, allocations: 405 kB / 0.5063 GB, free: 8.969 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007467/0.3653, allocations: 445.6 kB / 0.5067 GB, free: 8.504 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.108e-05/0.3653, allocations: 7.938 kB / 0.5067 GB, free: 8.496 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.962e-05/0.3654, allocations: 0 / 0.5067 GB, free: 8.496 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.177e-06/0.3654, allocations: 8 kB / 0.5067 GB, free: 8.488 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00144/0.3668, allocations: 0.9559 MB / 0.5077 GB, free: 7.465 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008216/0.3677, allocations: 390.9 kB / 0.508 GB, free: 7.047 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003161/0.368, allocations: 203.5 kB / 0.5082 GB, free: 6.836 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.086e-05/0.3681, allocations: 7.938 kB / 0.5082 GB, free: 6.828 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.991e-05/0.3681, allocations: 46.48 kB / 0.5083 GB, free: 6.773 MB / 362.7 MB Notification: Performance of pre-optimization done (n=45): time 2.044e-06/0.3681, allocations: 0 / 0.5083 GB, free: 6.773 MB / 362.7 MB Notification: Performance of matching and sorting (n=73): time 0.007147/0.3752, allocations: 1.997 MB / 0.5102 GB, free: 4.77 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.88e-05/0.3754, allocations: 141 kB / 0.5104 GB, free: 4.602 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001946/0.3756, allocations: 173.8 kB / 0.5105 GB, free: 4.426 MB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 7.716e-05/0.3757, allocations: 25.7 kB / 0.5106 GB, free: 4.395 MB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.114e-05/0.3757, allocations: 145.5 kB / 0.5107 GB, free: 4.25 MB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001942/0.3759, allocations: 181.3 kB / 0.5109 GB, free: 4.07 MB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.551e-05/0.376, allocations: 0 / 0.5109 GB, free: 4.07 MB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001236/0.3761, allocations: 350.8 kB / 0.5112 GB, free: 3.719 MB / 362.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0006137/0.3768, allocations: 461.5 kB / 0.5116 GB, free: 3.27 MB / 362.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0007162/0.3775, allocations: 0.6368 MB / 0.5123 GB, free: 2.555 MB / 362.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00057/0.3781, allocations: 418 kB / 0.5127 GB, free: 2.145 MB / 362.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.192e-06/0.3781, allocations: 4 kB / 0.5127 GB, free: 2.141 MB / 362.7 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.001575/0.3797, allocations: 1.041 MB / 0.5137 GB, free: 1.094 MB / 362.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.152e-05/0.3797, allocations: 8 kB / 0.5137 GB, free: 1.086 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.133e-05/0.3797, allocations: 4 kB / 0.5137 GB, free: 1.082 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.548e-05/0.3797, allocations: 12.72 kB / 0.5137 GB, free: 1.07 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001328/0.3811, allocations: 227.6 kB / 0.5139 GB, free: 0.8477 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.864e-05/0.3811, allocations: 12 kB / 0.5139 GB, free: 0.8359 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009415/0.3821, allocations: 111.7 kB / 0.514 GB, free: 0.7266 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.878e-05/0.3822, allocations: 28 kB / 0.5141 GB, free: 0.6992 MB / 362.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 () * 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.0002353/0.3824, allocations: 132.8 kB / 0.5142 GB, free: 0.5625 MB / 362.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002921/0.3827, allocations: 145.2 kB / 0.5143 GB, free: 424 kB / 362.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001716/0.3829, allocations: 47.41 kB / 0.5144 GB, free: 376 kB / 362.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.947e-06/0.3829, allocations: 8 kB / 0.5144 GB, free: 368 kB / 362.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.648e-06/0.3829, allocations: 4 kB / 0.5144 GB, free: 364 kB / 362.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.857e-06/0.3829, allocations: 3.984 kB / 0.5144 GB, free: 360 kB / 362.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.2096/0.5925, allocations: 1.884 MB / 0.5162 GB, free: 89.84 MB / 362.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.874e-05/0.5926, allocations: 10.56 kB / 0.5163 GB, free: 89.84 MB / 362.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008713/0.5935, allocations: 207.6 kB / 0.5164 GB, free: 89.83 MB / 362.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.885e-05/0.5935, allocations: 20.08 kB / 0.5165 GB, free: 89.83 MB / 362.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.918e-05/0.5936, allocations: 14.06 kB / 0.5165 GB, free: 89.83 MB / 362.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.107e-05/0.5937, allocations: 23.5 kB / 0.5165 GB, free: 89.83 MB / 362.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.394e-05/0.5937, allocations: 15.06 kB / 0.5165 GB, free: 89.82 MB / 362.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001678/0.5954, allocations: 1.701 MB / 0.5182 GB, free: 88.5 MB / 362.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002448/0.5956, allocations: 170.8 kB / 0.5183 GB, free: 88.39 MB / 362.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.853e-05/0.5957, allocations: 16.22 kB / 0.5184 GB, free: 88.39 MB / 362.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006633/0.5964, allocations: 85.89 kB / 0.5184 GB, free: 88.39 MB / 362.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002264/0.5966, allocations: 105.7 kB / 0.5185 GB, free: 88.37 MB / 362.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.385e-05/0.5967, allocations: 30.09 kB / 0.5186 GB, free: 88.37 MB / 362.7 MB Notification: Performance of sorting global known variables: time 0.0001324/0.5968, allocations: 136.5 kB / 0.5187 GB, free: 88.3 MB / 362.7 MB Notification: Performance of sort global known variables: time 5.41e-07/0.5968, allocations: 0 / 0.5187 GB, free: 88.3 MB / 362.7 MB Notification: Performance of remove unused functions: time 0.0007711/0.5976, allocations: 103.2 kB / 0.5188 GB, free: 88.3 MB / 362.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 () * 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.0001883/0.5978, allocations: 124.2 kB / 0.5189 GB, free: 88.2 MB / 362.7 MB Notification: Performance of simCode: created initialization part: time 0.001291/0.5991, allocations: 0.8239 MB / 0.5197 GB, free: 87.86 MB / 362.7 MB Notification: Performance of simCode: created event and clocks part: time 6.252e-06/0.5991, allocations: 1.938 kB / 0.5197 GB, free: 87.86 MB / 362.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003922/0.5995, allocations: 216.3 kB / 0.5199 GB, free: 87.78 MB / 362.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006728/0.6002, allocations: 105.6 kB / 0.52 GB, free: 87.75 MB / 362.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001707/0.6019, allocations: 0.9295 MB / 0.5209 GB, free: 87.02 MB / 362.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003482/0.6023, allocations: 0.8193 MB / 0.5217 GB, free: 86.32 MB / 362.7 MB Notification: Performance of simCode: alias equations: time 0.0005916/0.6029, allocations: 89.73 kB / 0.5218 GB, free: 86.28 MB / 362.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002856/0.6032, allocations: 45.41 kB / 0.5219 GB, free: 86.27 MB / 362.7 MB Notification: Performance of SimCode: time 5.71e-07/0.6032, allocations: 0 / 0.5219 GB, free: 86.27 MB / 362.7 MB Notification: Performance of Templates: time 0.01147/0.6147, allocations: 7.178 MB / 0.5289 GB, free: 84.49 MB / 362.7 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelica/testsuite/ReferenceFiles/Modelica_Synchronous/Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.mat","../files/Modelica_Synchronous_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.T,PI.k,PI.y,angle.phi,gain.k,gain.y,hold1.y_start,kinematicPTP.nout,kinematicPTP.p_deltaq[1],kinematicPTP.p_q_begin[1],kinematicPTP.p_q_end[1],kinematicPTP.p_qd_max[1],kinematicPTP.p_qdd_max[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd_max[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.w,periodicRealClock.period,periodicRealClock.useSolver,speed.flange.phi,speed.w,super.factor,super.inferFactor,time