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/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+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/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 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 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+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/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001864/0.001864, allocations: 103.6 kB / 16.45 MB, free: 6.445 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002213/0.002213, allocations: 192.5 kB / 17.39 MB, free: 5.684 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.542/1.542, allocations: 205.1 MB / 223.3 MB, free: 12.23 MB / 190.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.08171/0.08171, allocations: 12.59 MB / 283.2 MB, free: 15.4 MB / 238.1 MB Notification: Modelica requested package Complex of version 3.2.3. Complex 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica_Synchronous requested package ModelicaServices of version 3.2.3. ModelicaServices 4.0.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.0017/0.0017, allocations: 85.59 kB / 394.1 MB, free: 45.43 MB / 318.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09846/0.1002, allocations: 49.41 MB / 443.5 MB, free: 0.5 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled): time 0.00347/0.1037, allocations: 2.316 MB / 445.9 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001436/0.1052, allocations: 0.8153 MB / 446.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001347/0.1053, allocations: 4 kB / 446.7 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003081/0.1056, allocations: 51.58 kB / 446.7 MB, free: 13.29 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001997/0.1058, allocations: 55.5 kB / 446.8 MB, free: 13.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004506/0.1063, allocations: 171.6 kB / 447 MB, free: 13.06 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003803/0.1067, allocations: 375.3 kB / 447.3 MB, free: 12.7 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002011/0.1069, allocations: 103.3 kB / 447.4 MB, free: 12.6 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002152/0.1071, allocations: 151.5 kB / 447.6 MB, free: 12.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002328/0.1073, allocations: 175.3 kB / 447.7 MB, free: 12.28 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.96e-05/0.1074, allocations: 32 kB / 447.8 MB, free: 12.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.714e-05/0.1075, allocations: 32 kB / 447.8 MB, free: 12.21 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001091/0.1076, allocations: 103.7 kB / 447.9 MB, free: 12.11 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001247/0.1077, allocations: 139.3 kB / 448 MB, free: 11.98 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003538/0.1081, allocations: 322.8 kB / 448.4 MB, free: 11.66 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.651e-06/0.1081, allocations: 0 / 448.4 MB, free: 11.66 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1081, allocations: 4 kB / 448.4 MB, free: 11.66 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.496e-06/0.1081, allocations: 3.938 kB / 448.4 MB, free: 11.65 MB / 334.1 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.001194/0.1093, allocations: 0.6122 MB / 449 MB, free: 10.99 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.696e-05/0.1093, allocations: 8.031 kB / 449 MB, free: 10.98 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.282e-05/0.1094, allocations: 36.59 kB / 449 MB, free: 10.95 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003692/0.1098, allocations: 278.3 kB / 449.3 MB, free: 10.64 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001924/0.11, allocations: 142.2 kB / 449.4 MB, free: 10.48 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.777e-05/0.1101, allocations: 24.38 kB / 449.5 MB, free: 10.46 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001103/0.1112, allocations: 0.5491 MB / 450 MB, free: 9.883 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.777e-05/0.1112, allocations: 3.938 kB / 450 MB, free: 9.879 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.503e-05/0.1112, allocations: 12 kB / 450 MB, free: 9.867 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.037e-06/0.1113, allocations: 8 kB / 450 MB, free: 9.859 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001326/0.1126, allocations: 0.5113 MB / 450.5 MB, free: 9.348 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001417/0.114, allocations: 1.01 MB / 451.5 MB, free: 8.262 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001621/0.1157, allocations: 0.5063 MB / 452.1 MB, free: 7.719 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006314/0.1163, allocations: 259.4 kB / 452.3 MB, free: 7.453 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.701e-05/0.1164, allocations: 4 kB / 452.3 MB, free: 7.449 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.199e-05/0.1164, allocations: 46.53 kB / 452.4 MB, free: 7.395 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 1.683e-06/0.1164, allocations: 0 / 452.4 MB, free: 7.395 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.03721/0.1536, allocations: 5.703 MB / 458.1 MB, free: 1.672 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001039/0.1538, allocations: 152.9 kB / 458.2 MB, free: 1.492 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002064/0.154, allocations: 195.4 kB / 458.4 MB, free: 1.293 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 7.242e-05/0.154, allocations: 41.7 kB / 458.4 MB, free: 1.246 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.197e-05/0.1541, allocations: 137.5 kB / 458.6 MB, free: 1.105 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001802/0.1543, allocations: 197.2 kB / 458.8 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002755/0.1546, allocations: 106.7 kB / 458.9 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001317/0.1548, allocations: 346.8 kB / 459.2 MB, free: 464 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001597/0.1564, allocations: 0.6149 MB / 459.8 MB, free: 15.83 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001693/0.1581, allocations: 0.8041 MB / 460.6 MB, free: 14.95 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003108/0.1612, allocations: 1.244 MB / 461.9 MB, free: 13.63 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.244e-06/0.1612, allocations: 4 kB / 461.9 MB, free: 13.62 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003569/0.1648, allocations: 1.394 MB / 463.3 MB, free: 12.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.465e-05/0.1648, allocations: 8 kB / 463.3 MB, free: 12.22 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.462e-05/0.1648, allocations: 11.94 kB / 463.3 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.767e-05/0.1649, allocations: 8.188 kB / 463.3 MB, free: 12.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001329/0.1662, allocations: 215.6 kB / 463.5 MB, free: 11.99 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.134e-05/0.1662, allocations: 11.94 kB / 463.5 MB, free: 11.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009325/0.1672, allocations: 103.7 kB / 463.6 MB, free: 11.88 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.082e-05/0.1673, allocations: 28 kB / 463.7 MB, free: 11.85 MB / 350.1 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.noWphase,kinematicPTP.moving[1]) * 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0003278/0.1676, allocations: 185.6 kB / 463.8 MB, free: 11.66 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002863/0.1679, allocations: 153.1 kB / 464 MB, free: 11.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001545/0.1681, allocations: 59.31 kB / 464 MB, free: 11.45 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.135e-06/0.1681, allocations: 8 kB / 464 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.962e-05/0.1681, allocations: 3.984 kB / 464.1 MB, free: 11.44 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.827e-06/0.1681, allocations: 4 kB / 464.1 MB, free: 11.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004667/0.1728, allocations: 2.164 MB / 466.2 MB, free: 9.086 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.117e-05/0.1728, allocations: 12.03 kB / 466.2 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007365/0.1736, allocations: 183.7 kB / 466.4 MB, free: 8.895 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.537e-05/0.1736, allocations: 16 kB / 466.4 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.094e-05/0.1737, allocations: 24 kB / 466.4 MB, free: 8.855 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.335e-05/0.1737, allocations: 15.94 kB / 466.5 MB, free: 8.84 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.209e-05/0.1737, allocations: 19.94 kB / 466.5 MB, free: 8.82 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003157/0.1769, allocations: 1.557 MB / 468 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002074/0.1771, allocations: 152.7 kB / 468.2 MB, free: 6.941 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.456e-05/0.1771, allocations: 31.98 kB / 468.2 MB, free: 6.91 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005865/0.1777, allocations: 79.97 kB / 468.3 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002032/0.178, allocations: 91.67 kB / 468.4 MB, free: 6.742 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.649e-05/0.178, allocations: 32 kB / 468.4 MB, free: 6.711 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001327/0.1781, allocations: 147.4 kB / 468.6 MB, free: 6.566 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.723e-06/0.1782, allocations: 192 / 468.6 MB, free: 6.566 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006771/0.1788, allocations: 123.9 kB / 468.7 MB, free: 6.445 MB / 350.1 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001656/0.179, allocations: 143.2 kB / 468.8 MB, free: 6.293 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002861/0.1819, allocations: 1.14 MB / 470 MB, free: 5.156 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.673e-06/0.1819, allocations: 8.125 kB / 470 MB, free: 5.148 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001003/0.1829, allocations: 334 kB / 470.3 MB, free: 4.824 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008607/0.1838, allocations: 141 kB / 470.4 MB, free: 4.688 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002234/0.186, allocations: 1.166 MB / 471.6 MB, free: 3.355 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003809/0.1864, allocations: 0.8129 MB / 472.4 MB, free: 2.52 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0004497/0.1869, allocations: 95.31 kB / 472.5 MB, free: 2.426 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002759/0.1872, allocations: 43.42 kB / 472.6 MB, free: 2.383 MB / 350.1 MB Notification: Performance of SimCode: time 4.61e-07/0.1872, allocations: 0 / 472.6 MB, free: 2.383 MB / 350.1 MB Notification: Performance of Templates: time 0.01394/0.2011, allocations: 8.501 MB / 481.1 MB, free: 9.863 MB / 366.1 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","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/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