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-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_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.001489/0.001489, allocations: 183.7 kB / 16.45 MB, free: 5.656 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.536/1.536, allocations: 205.4 MB / 222.6 MB, free: 9.109 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.0007723/0.0007722, allocations: 101.8 kB / 270.9 MB, free: 8.348 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.06968/0.06968, allocations: 12.59 MB / 331.8 MB, free: 11.38 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0004052/0.0004052, allocations: 12 kB / 392 MB, free: 66.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07867/0.07909, allocations: 50.38 MB / 442.4 MB, free: 16.46 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled): time 0.002078/0.0812, allocations: 1.926 MB / 444.3 MB, free: 14.52 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001131/0.08236, allocations: 0.7846 MB / 445.1 MB, free: 13.73 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001816/0.08256, allocations: 7.938 kB / 445.1 MB, free: 13.72 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002645/0.08284, allocations: 35.77 kB / 445.1 MB, free: 13.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001885/0.08304, allocations: 55.67 kB / 445.2 MB, free: 13.63 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004334/0.08348, allocations: 127.8 kB / 445.3 MB, free: 13.5 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002844/0.08378, allocations: 335.6 kB / 445.6 MB, free: 13.18 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001537/0.08394, allocations: 74 kB / 445.7 MB, free: 13.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001966/0.08414, allocations: 127.5 kB / 445.8 MB, free: 12.98 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000185/0.08434, allocations: 151.3 kB / 446 MB, free: 12.83 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.632e-05/0.08439, allocations: 16 kB / 446 MB, free: 12.82 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 4.104e-05/0.08444, allocations: 20 kB / 446 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.209e-05/0.08451, allocations: 67.78 kB / 446.1 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.668e-05/0.08457, allocations: 73.52 kB / 446.1 MB, free: 12.65 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001653/0.08474, allocations: 219.7 kB / 446.4 MB, free: 12.44 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.797e-06/0.08475, allocations: 0 / 446.4 MB, free: 12.44 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.502e-06/0.08476, allocations: 0 / 446.4 MB, free: 12.44 MB / 298.7 MB Notification: Performance of Transformations before backend: time 9.318e-06/0.08478, allocations: 4 kB / 446.4 MB, free: 12.43 MB / 298.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.0009749/0.08576, allocations: 0.581 MB / 446.9 MB, free: 11.8 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.123e-05/0.0858, allocations: 12.03 kB / 447 MB, free: 11.79 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.361e-05/0.08588, allocations: 35.62 kB / 447 MB, free: 11.75 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000267/0.08616, allocations: 267 kB / 447.3 MB, free: 11.45 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001634/0.08633, allocations: 145.6 kB / 447.4 MB, free: 11.29 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.047e-05/0.08639, allocations: 28 kB / 447.4 MB, free: 11.27 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009933/0.08739, allocations: 0.561 MB / 448 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/0.08742, allocations: 0 / 448 MB, free: 10.68 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.238e-05/0.08746, allocations: 12 kB / 448 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.783e-06/0.08747, allocations: 8 kB / 448 MB, free: 10.66 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001177/0.08865, allocations: 0.5347 MB / 448.5 MB, free: 10.12 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001226/0.08989, allocations: 1.026 MB / 449.6 MB, free: 9.02 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001407/0.09131, allocations: 0.5108 MB / 450.1 MB, free: 8.473 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005388/0.09186, allocations: 267.8 kB / 450.3 MB, free: 8.199 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.451e-05/0.09192, allocations: 12.11 kB / 450.3 MB, free: 8.188 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.335e-05/0.09195, allocations: 46.69 kB / 450.4 MB, free: 8.133 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 2.034e-06/0.09196, allocations: 0 / 450.4 MB, free: 8.133 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.03649/0.1284, allocations: 6.744 MB / 457.1 MB, free: 1.375 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.709e-05/0.1286, allocations: 149 kB / 457.3 MB, free: 1.195 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000158/0.1287, allocations: 191 kB / 457.5 MB, free: 1 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.097e-05/0.1288, allocations: 41.7 kB / 457.5 MB, free: 0.9531 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.006e-05/0.1289, allocations: 145.5 kB / 457.7 MB, free: 0.8086 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001295/0.129, allocations: 185.4 kB / 457.8 MB, free: 0.625 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.341e-05/0.1291, allocations: 15.94 kB / 457.9 MB, free: 0.6094 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.451e-05/0.1291, allocations: 342.8 kB / 458.2 MB, free: 272 kB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00151/0.1306, allocations: 0.6579 MB / 458.8 MB, free: 15.6 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001676/0.1323, allocations: 0.8315 MB / 459.7 MB, free: 14.7 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001521/0.1339, allocations: 0.5981 MB / 460.3 MB, free: 14.1 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.476e-06/0.1339, allocations: 4 kB / 460.3 MB, free: 14.1 MB / 314.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003525/0.1374, allocations: 1.472 MB / 461.7 MB, free: 12.62 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.481e-05/0.1374, allocations: 11.95 kB / 461.8 MB, free: 12.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.368e-05/0.1375, allocations: 4 kB / 461.8 MB, free: 12.6 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.766e-05/0.1375, allocations: 12 kB / 461.8 MB, free: 12.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001358/0.1389, allocations: 227.7 kB / 462 MB, free: 12.37 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.474e-05/0.1389, allocations: 11.94 kB / 462 MB, free: 12.36 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009999/0.1399, allocations: 123.7 kB / 462.1 MB, free: 12.23 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.297e-05/0.14, allocations: 32 kB / 462.2 MB, free: 12.2 MB / 314.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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (83): * Single equations (assignments): 83 * 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.0003322/0.1403, allocations: 177.4 kB / 462.3 MB, free: 12.02 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003168/0.1407, allocations: 153.5 kB / 462.5 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001636/0.1408, allocations: 71.25 kB / 462.6 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.837e-06/0.1409, allocations: 8 kB / 462.6 MB, free: 11.79 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.188e-06/0.1409, allocations: 4 kB / 462.6 MB, free: 11.78 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.127e-06/0.1409, allocations: 3.984 kB / 462.6 MB, free: 11.78 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004917/0.1458, allocations: 2.288 MB / 464.9 MB, free: 9.309 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.77e-05/0.1459, allocations: 8.234 kB / 464.9 MB, free: 9.301 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007747/0.1466, allocations: 204.4 kB / 465.1 MB, free: 9.102 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.697e-05/0.1467, allocations: 12 kB / 465.1 MB, free: 9.09 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.909e-05/0.1467, allocations: 35.95 kB / 465.1 MB, free: 9.055 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.857e-05/0.1468, allocations: 27.86 kB / 465.1 MB, free: 9.027 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.251e-05/0.1468, allocations: 20 kB / 465.2 MB, free: 9.008 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003206/0.15, allocations: 1.651 MB / 466.8 MB, free: 7.207 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002059/0.1502, allocations: 172.5 kB / 467 MB, free: 7.02 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.207e-05/0.1503, allocations: 24 kB / 467 MB, free: 6.996 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006627/0.151, allocations: 99.92 kB / 467.1 MB, free: 6.898 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001852/0.1512, allocations: 99.7 kB / 467.2 MB, free: 6.801 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.164e-05/0.1512, allocations: 31.95 kB / 467.2 MB, free: 6.77 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.000134/0.1514, allocations: 144.2 kB / 467.4 MB, free: 6.629 MB / 314.7 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1514, allocations: 0 / 467.4 MB, free: 6.629 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006864/0.1521, allocations: 124 kB / 467.5 MB, free: 6.508 MB / 314.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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.0001707/0.1523, allocations: 127.1 kB / 467.6 MB, free: 6.375 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00287/0.1551, allocations: 1.194 MB / 468.8 MB, free: 5.18 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 8.817e-06/0.1552, allocations: 4 kB / 468.8 MB, free: 5.176 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001017/0.1562, allocations: 374.7 kB / 469.2 MB, free: 4.812 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008425/0.157, allocations: 140.2 kB / 469.3 MB, free: 4.676 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002471/0.1595, allocations: 1.36 MB / 470.7 MB, free: 3.145 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003986/0.1599, allocations: 0.8132 MB / 471.5 MB, free: 2.309 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003469/0.1603, allocations: 47.42 kB / 471.5 MB, free: 2.266 MB / 314.7 MB Notification: Performance of SimCode: time 2.465e-06/0.1603, allocations: 0 / 471.5 MB, free: 2.266 MB / 314.7 MB Notification: Performance of Templates: time 0.01031/0.1706, allocations: 7.099 MB / 478.6 MB, free: 11.14 MB / 330.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/jenkins/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.T,PI.k,PI.u,PI.x,PI.y,angle.flange.phi,angle.flange.tau,angle.phi,der(load.w),der(speed.flange.phi),feedback1.u1,feedback1.u2,feedback1.y,feedback2.u1,feedback2.u2,feedback2.y,gain.k,gain.u,gain.y,hold1.u,hold1.y,hold1.y_start,kinematicPTP.endTime,kinematicPTP.moving[1],kinematicPTP.nout,kinematicPTP.q[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd[1],kinematicPTP.qd_max[1],kinematicPTP.qdd[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.a,load.flange_a.phi,load.flange_a.tau,load.flange_b.phi,load.flange_b.tau,load.phi,load.w,periodicRealClock.period,periodicRealClock.useSolver,previous(PI.x),sample1.u,sample1.y,sample2.u,sample2.y,sample3.u,sample3.y,speed.flange.phi,speed.flange.tau,speed.w,super.factor,super.inferFactor,super.u,super.y,time,torque.flange.phi,torque.flange.tau,torque.tau