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.001242/0.001242, allocations: 180.6 kB / 16.45 MB, free: 5.551 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.298/1.298, allocations: 205.4 MB / 222.6 MB, free: 9.125 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.0007816/0.0007817, allocations: 94.3 kB / 270.9 MB, free: 8.363 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.06638/0.06638, allocations: 12.59 MB / 331.8 MB, free: 11.39 MB / 282.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0003853/0.0003854, allocations: 12 kB / 392.6 MB, free: 66.25 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07501/0.07541, allocations: 50.38 MB / 443 MB, free: 15.82 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled): time 0.001825/0.07727, allocations: 1.93 MB / 445 MB, free: 13.87 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009609/0.07825, allocations: 0.7924 MB / 445.8 MB, free: 13.07 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001083/0.07837, allocations: 4 kB / 445.8 MB, free: 13.06 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0001893/0.07857, allocations: 39.77 kB / 445.8 MB, free: 13.02 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001357/0.07872, allocations: 51.67 kB / 445.8 MB, free: 12.97 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003373/0.07906, allocations: 127.8 kB / 446 MB, free: 12.85 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002223/0.07929, allocations: 331.6 kB / 446.3 MB, free: 12.52 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001357/0.07943, allocations: 74 kB / 446.4 MB, free: 12.45 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001429/0.07958, allocations: 135.5 kB / 446.5 MB, free: 12.32 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000151/0.07974, allocations: 143.4 kB / 446.6 MB, free: 12.18 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.794e-05/0.07979, allocations: 20 kB / 446.7 MB, free: 12.16 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.768e-05/0.07983, allocations: 16 kB / 446.7 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 6.548e-05/0.07991, allocations: 75.72 kB / 446.7 MB, free: 12.07 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 5.067e-05/0.07996, allocations: 65.58 kB / 446.8 MB, free: 12 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0001597/0.08013, allocations: 219.7 kB / 447 MB, free: 11.79 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.08014, allocations: 0 / 447 MB, free: 11.79 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.252e-06/0.08015, allocations: 0 / 447 MB, free: 11.79 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.649e-06/0.08016, allocations: 0 / 447 MB, free: 11.79 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.0009037/0.08107, allocations: 0.581 MB / 447.6 MB, free: 11.15 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 2.821e-05/0.0811, allocations: 8.031 kB / 447.6 MB, free: 11.14 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.524e-05/0.08117, allocations: 39.62 kB / 447.7 MB, free: 11.11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002532/0.08143, allocations: 271 kB / 447.9 MB, free: 10.8 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001544/0.0816, allocations: 149.6 kB / 448.1 MB, free: 10.64 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.593e-05/0.08165, allocations: 24 kB / 448.1 MB, free: 10.61 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0009427/0.0826, allocations: 0.561 MB / 448.6 MB, free: 10.02 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.453e-05/0.08263, allocations: 0 / 448.6 MB, free: 10.02 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.158e-05/0.08266, allocations: 12 kB / 448.7 MB, free: 10.01 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.873e-06/0.08268, allocations: 12 kB / 448.7 MB, free: 10 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001179/0.08386, allocations: 0.5347 MB / 449.2 MB, free: 9.465 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001165/0.08503, allocations: 1.022 MB / 450.2 MB, free: 8.367 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001362/0.08641, allocations: 0.5108 MB / 450.7 MB, free: 7.82 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005239/0.08695, allocations: 279.6 kB / 451 MB, free: 7.535 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.881e-05/0.08699, allocations: 8.328 kB / 451 MB, free: 7.527 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.079e-05/0.08702, allocations: 50.73 kB / 451.1 MB, free: 7.469 MB / 298.7 MB Notification: Performance of pre-optimization done (n=44): time 1.854e-06/0.08703, allocations: 0 / 451.1 MB, free: 7.469 MB / 298.7 MB Notification: Performance of matching and sorting (n=72): time 0.03719/0.1242, allocations: 6.744 MB / 457.8 MB, free: 0.7109 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.524e-05/0.1243, allocations: 152.9 kB / 458 MB, free: 0.5273 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000159/0.1245, allocations: 182.7 kB / 458.1 MB, free: 348 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 7.26e-05/0.1246, allocations: 41.7 kB / 458.2 MB, free: 300 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.293e-05/0.1246, allocations: 141.5 kB / 458.3 MB, free: 156 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001683/0.1248, allocations: 193.4 kB / 458.5 MB, free: 15.96 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.193e-05/0.1249, allocations: 16 kB / 458.5 MB, free: 15.94 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.000129/0.125, allocations: 338.8 kB / 458.9 MB, free: 15.6 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001561/0.1266, allocations: 0.6539 MB / 459.5 MB, free: 14.95 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001672/0.1283, allocations: 0.8315 MB / 460.3 MB, free: 14.04 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001536/0.1298, allocations: 0.6021 MB / 460.9 MB, free: 13.44 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.909e-06/0.1298, allocations: 0 / 460.9 MB, free: 13.44 MB / 314.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003508/0.1334, allocations: 1.468 MB / 462.4 MB, free: 11.96 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.964e-05/0.1334, allocations: 15.94 kB / 462.4 MB, free: 11.95 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.374e-05/0.1334, allocations: 8.375 kB / 462.4 MB, free: 11.94 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.146e-05/0.1335, allocations: 8 kB / 462.4 MB, free: 11.93 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001315/0.1348, allocations: 231.7 kB / 462.7 MB, free: 11.71 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.612e-05/0.1348, allocations: 11.94 kB / 462.7 MB, free: 11.7 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009603/0.1358, allocations: 127.7 kB / 462.8 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.644e-05/0.1359, allocations: 28 kB / 462.8 MB, free: 11.54 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.0003273/0.1362, allocations: 185.4 kB / 463 MB, free: 11.35 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003004/0.1365, allocations: 149.5 kB / 463.2 MB, free: 11.2 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001642/0.1367, allocations: 71.25 kB / 463.2 MB, free: 11.13 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.035e-06/0.1367, allocations: 8 kB / 463.2 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.908e-06/0.1367, allocations: 0 / 463.2 MB, free: 11.12 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.494e-06/0.1367, allocations: 7.922 kB / 463.2 MB, free: 11.11 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004693/0.1414, allocations: 2.284 MB / 465.5 MB, free: 8.648 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.394e-05/0.1415, allocations: 12 kB / 465.5 MB, free: 8.637 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007613/0.1422, allocations: 204.3 kB / 465.7 MB, free: 8.438 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.934e-05/0.1423, allocations: 16 kB / 465.8 MB, free: 8.422 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.794e-05/0.1423, allocations: 27.95 kB / 465.8 MB, free: 8.395 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.622e-05/0.1423, allocations: 20 kB / 465.8 MB, free: 8.375 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.218e-05/0.1423, allocations: 19.92 kB / 465.8 MB, free: 8.355 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003172/0.1455, allocations: 1.658 MB / 467.5 MB, free: 6.547 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002072/0.1458, allocations: 160.6 kB / 467.6 MB, free: 6.371 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.94e-05/0.1458, allocations: 31.98 kB / 467.7 MB, free: 6.34 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005904/0.1464, allocations: 99.94 kB / 467.8 MB, free: 6.242 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000183/0.1466, allocations: 95.7 kB / 467.9 MB, free: 6.148 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.875e-05/0.1467, allocations: 35.95 kB / 467.9 MB, free: 6.113 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001226/0.1468, allocations: 140.3 kB / 468 MB, free: 5.977 MB / 314.7 MB Notification: Performance of sort global known variables: time 2.21e-07/0.1468, allocations: 0 / 468 MB, free: 5.977 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0006428/0.1475, allocations: 120 kB / 468.1 MB, free: 5.859 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.0001685/0.1476, allocations: 143.2 kB / 468.3 MB, free: 5.711 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.002872/0.1505, allocations: 1.186 MB / 469.5 MB, free: 4.523 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.123e-06/0.1506, allocations: 3.938 kB / 469.5 MB, free: 4.52 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.001036/0.1516, allocations: 378.8 kB / 469.8 MB, free: 4.152 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008771/0.1525, allocations: 136.2 kB / 470 MB, free: 4.02 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002475/0.155, allocations: 1.364 MB / 471.3 MB, free: 2.484 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004051/0.1554, allocations: 0.817 MB / 472.2 MB, free: 1.645 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003388/0.1558, allocations: 47.42 kB / 472.2 MB, free: 1.602 MB / 314.7 MB Notification: Performance of SimCode: time 6.91e-07/0.1558, allocations: 3.938 kB / 472.2 MB, free: 1.598 MB / 314.7 MB Notification: Performance of Templates: time 0.009691/0.1655, allocations: 7.074 MB / 479.3 MB, free: 10.49 MB / 330.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/jenkins1/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.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