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.0009878/0.0009878, allocations: 101.6 kB / 16.07 MB, free: 28 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.001288/0.001288, allocations: 181.2 kB / 16.96 MB, free: 6.879 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.234/1.234, allocations: 205.4 MB / 223.1 MB, free: 5.762 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.06031/0.06031, allocations: 12.61 MB / 284 MB, free: 8.816 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.0006394/0.0006393, allocations: 24 kB / 345.2 MB, free: 20.94 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07294/0.07359, allocations: 50.39 MB / 395.5 MB, free: 2.461 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled): time 0.002378/0.076, allocations: 2 MB / 397.5 MB, free: 452 kB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001277/0.0773, allocations: 0.7921 MB / 398.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001547/0.07748, allocations: 3.938 kB / 398.3 MB, free: 15.64 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000224/0.07772, allocations: 43.75 kB / 398.4 MB, free: 15.59 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001747/0.07791, allocations: 47.69 kB / 398.4 MB, free: 15.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004335/0.07835, allocations: 147.8 kB / 398.6 MB, free: 15.4 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003536/0.07871, allocations: 355.6 kB / 398.9 MB, free: 15.05 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001741/0.0789, allocations: 79.55 kB / 399 MB, free: 14.98 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002204/0.07912, allocations: 131.5 kB / 399.1 MB, free: 14.85 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002136/0.07935, allocations: 163.2 kB / 399.3 MB, free: 14.69 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.431e-05/0.07941, allocations: 16 kB / 399.3 MB, free: 14.67 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.766e-05/0.07946, allocations: 20 kB / 399.3 MB, free: 14.65 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.201e-05/0.07955, allocations: 71.78 kB / 399.4 MB, free: 14.58 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001308/0.07969, allocations: 156.9 kB / 399.5 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002783/0.07998, allocations: 290.8 kB / 399.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.166e-06/0.07999, allocations: 0 / 399.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.482e-06/0.08, allocations: 0 / 399.8 MB, free: 14.14 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.744e-06/0.08001, allocations: 0 / 399.8 MB, free: 14.14 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.001029/0.08104, allocations: 0.5773 MB / 400.4 MB, free: 13.51 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.387e-05/0.08109, allocations: 8.031 kB / 400.4 MB, free: 13.5 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.901e-05/0.08117, allocations: 40.56 kB / 400.5 MB, free: 13.46 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003054/0.08148, allocations: 264.4 kB / 400.7 MB, free: 13.17 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000186/0.08168, allocations: 146.2 kB / 400.9 MB, free: 13.01 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.047e-05/0.08175, allocations: 32.38 kB / 400.9 MB, free: 12.98 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001091/0.08285, allocations: 0.5685 MB / 401.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.833e-05/0.08288, allocations: 0 / 401.5 MB, free: 12.38 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.467e-05/0.08292, allocations: 15.98 kB / 401.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.566e-06/0.08293, allocations: 8 kB / 401.5 MB, free: 12.36 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001343/0.08428, allocations: 0.5347 MB / 402 MB, free: 11.82 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001376/0.08567, allocations: 1.021 MB / 403 MB, free: 10.72 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001535/0.08722, allocations: 0.5218 MB / 403.6 MB, free: 10.16 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000613/0.08784, allocations: 271.3 kB / 403.8 MB, free: 9.887 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.444e-05/0.0879, allocations: 16.12 kB / 403.8 MB, free: 9.871 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.392e-05/0.08793, allocations: 46.5 kB / 403.9 MB, free: 9.816 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.673e-06/0.08794, allocations: 0 / 403.9 MB, free: 9.816 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03744/0.1254, allocations: 6.738 MB / 410.6 MB, free: 3.062 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.1255, allocations: 148.9 kB / 410.8 MB, free: 2.887 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002016/0.1257, allocations: 186.7 kB / 410.9 MB, free: 2.695 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 8.207e-05/0.1258, allocations: 37.7 kB / 411 MB, free: 2.652 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.941e-05/0.1259, allocations: 145.5 kB / 411.1 MB, free: 2.508 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001805/0.1261, allocations: 189.3 kB / 411.3 MB, free: 2.32 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001155/0.1262, allocations: 57.69 kB / 411.4 MB, free: 2.258 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001259/0.1264, allocations: 346.8 kB / 411.7 MB, free: 1.91 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001616/0.128, allocations: 0.6578 MB / 412.4 MB, free: 1.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001702/0.1297, allocations: 0.8393 MB / 413.2 MB, free: 340 kB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003068/0.1328, allocations: 1.322 MB / 414.5 MB, free: 14.93 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.559e-06/0.1328, allocations: 4 kB / 414.5 MB, free: 14.93 MB / 318.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003551/0.1364, allocations: 1.48 MB / 416 MB, free: 13.45 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.065e-05/0.1364, allocations: 7.984 kB / 416 MB, free: 13.44 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.299e-05/0.1364, allocations: 8 kB / 416 MB, free: 13.43 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.197e-05/0.1364, allocations: 8.047 kB / 416 MB, free: 13.42 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001285/0.1377, allocations: 235.7 kB / 416.3 MB, free: 13.19 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.921e-05/0.1378, allocations: 8 kB / 416.3 MB, free: 13.18 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009331/0.1387, allocations: 127.7 kB / 416.4 MB, free: 13.06 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 7.428e-05/0.1388, allocations: 24 kB / 416.4 MB, free: 13.04 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.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.0003063/0.1391, allocations: 182.2 kB / 416.6 MB, free: 12.85 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002769/0.1394, allocations: 149.2 kB / 416.7 MB, free: 12.7 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001806/0.1396, allocations: 67.3 kB / 416.8 MB, free: 12.63 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.414e-06/0.1396, allocations: 8.469 kB / 416.8 MB, free: 12.62 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.625e-06/0.1396, allocations: 4 kB / 416.8 MB, free: 12.62 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.637e-06/0.1396, allocations: 7.984 kB / 416.8 MB, free: 12.61 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00463/0.1442, allocations: 2.292 MB / 419.1 MB, free: 10.13 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.449e-05/0.1443, allocations: 12 kB / 419.1 MB, free: 10.12 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007293/0.145, allocations: 204.2 kB / 419.3 MB, free: 9.922 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.374e-05/0.145, allocations: 12 kB / 419.3 MB, free: 9.91 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.613e-05/0.1451, allocations: 28 kB / 419.4 MB, free: 9.883 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.674e-05/0.1451, allocations: 23.92 kB / 419.4 MB, free: 9.859 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.02e-05/0.1451, allocations: 15.94 kB / 419.4 MB, free: 9.844 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003205/0.1483, allocations: 1.662 MB / 421.1 MB, free: 8.027 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001807/0.1485, allocations: 164.7 kB / 421.2 MB, free: 7.848 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.855e-05/0.1486, allocations: 27.98 kB / 421.3 MB, free: 7.82 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005898/0.1492, allocations: 95.92 kB / 421.4 MB, free: 7.727 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001739/0.1494, allocations: 95.66 kB / 421.4 MB, free: 7.633 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.125e-05/0.1494, allocations: 28 kB / 421.5 MB, free: 7.605 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001105/0.1496, allocations: 152.2 kB / 421.6 MB, free: 7.457 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.5e-07/0.1496, allocations: 4 kB / 421.6 MB, free: 7.453 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.000611/0.1502, allocations: 116 kB / 421.7 MB, free: 7.34 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 (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.0001372/0.1503, allocations: 135.3 kB / 421.9 MB, free: 7.199 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.00276/0.1531, allocations: 1.194 MB / 423.1 MB, free: 6 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 3.827e-06/0.1531, allocations: 3.938 kB / 423.1 MB, free: 5.996 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001008/0.1541, allocations: 378.6 kB / 423.4 MB, free: 5.629 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009678/0.1551, allocations: 144.4 kB / 423.6 MB, free: 5.488 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002221/0.1573, allocations: 1.371 MB / 425 MB, free: 3.953 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000355/0.1577, allocations: 0.8093 MB / 425.8 MB, free: 3.121 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005435/0.1583, allocations: 95.34 kB / 425.9 MB, free: 3.023 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002759/0.1585, allocations: 47.36 kB / 425.9 MB, free: 2.977 MB / 318.1 MB Notification: Performance of SimCode: time 4.71e-07/0.1585, allocations: 4 kB / 425.9 MB, free: 2.973 MB / 318.1 MB Notification: Performance of Templates: time 0.1471/0.3057, allocations: 7.447 MB / 433.4 MB, free: 39.18 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