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.001152/0.001152, allocations: 84.19 kB / 15.75 MB, free: 416 kB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0017/0.0017, allocations: 175.4 kB / 16.63 MB, free: 6.887 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.845/1.845, allocations: 205.4 MB / 222.8 MB, free: 5.648 MB / 174.1 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.0845/0.0845, allocations: 12.6 MB / 283.7 MB, free: 8.688 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.0006825/0.0006826, allocations: 16 kB / 344.5 MB, free: 21.27 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09954/0.1002, allocations: 50.39 MB / 394.9 MB, free: 2.797 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled): time 0.003138/0.1034, allocations: 1.938 MB / 396.8 MB, free: 0.8398 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001735/0.1052, allocations: 0.7808 MB / 397.6 MB, free: 52 kB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002898/0.1055, allocations: 7.938 kB / 397.6 MB, free: 44 kB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003303/0.1059, allocations: 43.75 kB / 397.7 MB, free: 0 / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002961/0.1062, allocations: 47.8 kB / 397.7 MB, free: 15.95 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005925/0.1068, allocations: 127.7 kB / 397.9 MB, free: 15.82 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004671/0.1073, allocations: 339.6 kB / 398.2 MB, free: 15.49 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001778/0.1074, allocations: 70 kB / 398.3 MB, free: 15.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002268/0.1077, allocations: 135.5 kB / 398.4 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002148/0.1079, allocations: 151.2 kB / 398.5 MB, free: 15.15 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.606e-05/0.108, allocations: 16 kB / 398.5 MB, free: 15.13 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.012e-05/0.108, allocations: 16 kB / 398.6 MB, free: 15.12 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.051e-05/0.1081, allocations: 67.78 kB / 398.6 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 6.952e-05/0.1082, allocations: 69.52 kB / 398.7 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002228/0.1084, allocations: 219.7 kB / 398.9 MB, free: 14.76 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.502e-06/0.1084, allocations: 4 kB / 398.9 MB, free: 14.76 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.343e-06/0.1084, allocations: 0 / 398.9 MB, free: 14.76 MB / 302.1 MB Notification: Performance of Transformations before backend: time 4.449e-06/0.1084, allocations: 0 / 398.9 MB, free: 14.76 MB / 302.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.001069/0.1095, allocations: 0.581 MB / 399.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.296e-05/0.1096, allocations: 8.031 kB / 399.5 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.591e-05/0.1096, allocations: 35.62 kB / 399.5 MB, free: 14.08 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003528/0.11, allocations: 267.1 kB / 399.8 MB, free: 13.78 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002071/0.1102, allocations: 145.6 kB / 399.9 MB, free: 13.62 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.86e-05/0.1103, allocations: 28 kB / 400 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001124/0.1114, allocations: 0.5649 MB / 400.5 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.694e-05/0.1115, allocations: 0 / 400.5 MB, free: 13 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.362e-05/0.1115, allocations: 12 kB / 400.5 MB, free: 12.99 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.107e-06/0.1115, allocations: 4 kB / 400.6 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001255/0.1128, allocations: 0.5386 MB / 401.1 MB, free: 12.45 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001502/0.1143, allocations: 1.022 MB / 402.1 MB, free: 11.35 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001503/0.1158, allocations: 0.5186 MB / 402.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005746/0.1164, allocations: 271.7 kB / 402.9 MB, free: 10.52 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.447e-05/0.1165, allocations: 12.19 kB / 402.9 MB, free: 10.5 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.677e-05/0.1165, allocations: 38.69 kB / 402.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.572e-06/0.1165, allocations: 0 / 402.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03462/0.1511, allocations: 6.748 MB / 409.7 MB, free: 3.695 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001614/0.1513, allocations: 156.9 kB / 409.8 MB, free: 3.508 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002676/0.1516, allocations: 182.7 kB / 410 MB, free: 3.32 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001181/0.1517, allocations: 41.7 kB / 410.1 MB, free: 3.273 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001038/0.1519, allocations: 145.4 kB / 410.2 MB, free: 3.129 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002203/0.1521, allocations: 193.3 kB / 410.4 MB, free: 2.938 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.876e-05/0.1522, allocations: 16 kB / 410.4 MB, free: 2.922 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001719/0.1523, allocations: 334.8 kB / 410.7 MB, free: 2.586 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001522/0.1539, allocations: 0.6578 MB / 411.4 MB, free: 1.926 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001667/0.1555, allocations: 0.8315 MB / 412.2 MB, free: 1.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001447/0.157, allocations: 0.6021 MB / 412.8 MB, free: 432 kB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.957e-06/0.157, allocations: 4 kB / 412.8 MB, free: 428 kB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003402/0.1604, allocations: 1.468 MB / 414.3 MB, free: 14.94 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.316e-05/0.1605, allocations: 11.95 kB / 414.3 MB, free: 14.93 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.475e-05/0.1605, allocations: 4 kB / 414.3 MB, free: 14.93 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.451e-05/0.1605, allocations: 12 kB / 414.3 MB, free: 14.91 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001249/0.1618, allocations: 227.7 kB / 414.6 MB, free: 14.69 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.737e-05/0.1618, allocations: 15.94 kB / 414.6 MB, free: 14.68 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008745/0.1627, allocations: 115.8 kB / 414.7 MB, free: 14.56 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.985e-05/0.1628, allocations: 32 kB / 414.7 MB, free: 14.53 MB / 318.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.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.0003514/0.1632, allocations: 186 kB / 414.9 MB, free: 14.34 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003229/0.1635, allocations: 149.2 kB / 415 MB, free: 14.19 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001953/0.1637, allocations: 67.25 kB / 415.1 MB, free: 14.12 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.464e-06/0.1637, allocations: 8 kB / 415.1 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.045e-05/0.1638, allocations: 4 kB / 415.1 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.704e-06/0.1638, allocations: 3.984 kB / 415.1 MB, free: 14.11 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004818/0.1686, allocations: 2.286 MB / 417.4 MB, free: 11.64 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-05/0.1686, allocations: 8 kB / 417.4 MB, free: 11.63 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007619/0.1694, allocations: 207.9 kB / 417.6 MB, free: 11.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.349e-05/0.1695, allocations: 15.94 kB / 417.6 MB, free: 11.41 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.475e-05/0.1695, allocations: 27.95 kB / 417.7 MB, free: 11.38 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.284e-05/0.1696, allocations: 31.86 kB / 417.7 MB, free: 11.35 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.181e-05/0.1696, allocations: 15.94 kB / 417.7 MB, free: 11.34 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003073/0.1727, allocations: 1.65 MB / 419.4 MB, free: 9.535 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002452/0.1729, allocations: 160.6 kB / 419.5 MB, free: 9.359 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.267e-05/0.173, allocations: 31.98 kB / 419.5 MB, free: 9.328 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005711/0.1736, allocations: 95.94 kB / 419.6 MB, free: 9.234 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002322/0.1738, allocations: 99.7 kB / 419.7 MB, free: 9.137 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.66e-05/0.1739, allocations: 40.12 kB / 419.8 MB, free: 9.098 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001972/0.1741, allocations: 140.3 kB / 419.9 MB, free: 8.961 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1741, allocations: 3.938 kB / 419.9 MB, free: 8.957 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0007848/0.1749, allocations: 124 kB / 420 MB, free: 8.836 MB / 318.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 (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.000192/0.1751, allocations: 139 kB / 420.2 MB, free: 8.691 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002582/0.1777, allocations: 1.19 MB / 421.4 MB, free: 7.5 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.429e-06/0.1777, allocations: 0 / 421.4 MB, free: 7.5 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009266/0.1786, allocations: 383.2 kB / 421.7 MB, free: 7.129 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008417/0.1795, allocations: 132.2 kB / 421.9 MB, free: 7 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002425/0.1819, allocations: 1.331 MB / 423.2 MB, free: 5.504 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004289/0.1824, allocations: 0.8132 MB / 424 MB, free: 4.668 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0006101/0.183, allocations: 87.38 kB / 424.1 MB, free: 4.578 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002837/0.1833, allocations: 39.42 kB / 424.1 MB, free: 4.543 MB / 318.1 MB Notification: Performance of SimCode: time 9.52e-07/0.1833, allocations: 480 / 424.1 MB, free: 4.543 MB / 318.1 MB Notification: Performance of Templates: time 0.1923/0.3755, allocations: 7.245 MB / 431.4 MB, free: 38.8 MB / 318.1 MB make -j1 -f Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.makefile Environment - environmentSimulation: (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) Environment - environmentSimulation: 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