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.002179/0.002179, allocations: 103.1 kB / 16.02 MB, free: 6.324 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.001221/0.001222, allocations: 200.1 kB / 16.95 MB, free: 6.145 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.632/1.632, allocations: 205.1 MB / 222.8 MB, free: 12.43 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.08408/0.08408, allocations: 12.59 MB / 282.7 MB, free: 15.63 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.002107/0.002107, allocations: 84.62 kB / 343 MB, free: 3.316 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2564/0.2585, allocations: 49.38 MB / 392.4 MB, free: 49.18 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled): time 0.003125/0.2617, allocations: 2.361 MB / 394.7 MB, free: 47.54 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001271/0.263, allocations: 0.8048 MB / 395.5 MB, free: 46.97 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001319/0.2632, allocations: 3.844 kB / 395.5 MB, free: 46.97 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002696/0.2634, allocations: 44.67 kB / 395.6 MB, free: 46.95 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001692/0.2636, allocations: 46.89 kB / 395.6 MB, free: 46.92 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004029/0.264, allocations: 153.1 kB / 395.8 MB, free: 46.84 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003408/0.2644, allocations: 369.8 kB / 396.1 MB, free: 46.68 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001718/0.2646, allocations: 99.02 kB / 396.2 MB, free: 46.63 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001829/0.2647, allocations: 159.6 kB / 396.4 MB, free: 46.56 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002019/0.265, allocations: 172.2 kB / 396.5 MB, free: 46.48 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 4.96e-05/0.265, allocations: 40.97 kB / 396.6 MB, free: 46.47 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.771e-05/0.2651, allocations: 33.38 kB / 396.6 MB, free: 46.47 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001001/0.2652, allocations: 90.2 kB / 396.7 MB, free: 46.43 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 9.903e-05/0.2653, allocations: 154.3 kB / 396.9 MB, free: 46.31 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002275/0.2655, allocations: 312.2 kB / 397.2 MB, free: 46.08 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.2655, allocations: 0 / 397.2 MB, free: 46.08 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.323e-06/0.2655, allocations: 0 / 397.2 MB, free: 46.08 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.294e-06/0.2655, allocations: 0 / 397.2 MB, free: 46.08 MB / 318.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.0009454/0.2665, allocations: 0.6101 MB / 397.8 MB, free: 45.55 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.363e-05/0.2665, allocations: 8.75 kB / 397.8 MB, free: 45.55 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.241e-05/0.2666, allocations: 42.06 kB / 397.8 MB, free: 45.53 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002373/0.2669, allocations: 269.7 kB / 398.1 MB, free: 45.26 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001582/0.267, allocations: 139.9 kB / 398.2 MB, free: 45.14 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.404e-05/0.2671, allocations: 27.66 kB / 398.2 MB, free: 45.13 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001009/0.2681, allocations: 0.5482 MB / 398.8 MB, free: 44.77 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.709e-05/0.2681, allocations: 5.25 kB / 398.8 MB, free: 44.77 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.351e-05/0.2682, allocations: 10.59 kB / 398.8 MB, free: 44.76 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.162e-05/0.2682, allocations: 10.33 kB / 398.8 MB, free: 44.75 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001245/0.2694, allocations: 0.5193 MB / 399.3 MB, free: 44.52 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001202/0.2707, allocations: 1.008 MB / 400.3 MB, free: 43.62 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001359/0.272, allocations: 0.5099 MB / 400.9 MB, free: 43.32 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005343/0.2726, allocations: 255.8 kB / 401.1 MB, free: 43.18 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.209e-05/0.2726, allocations: 8.188 kB / 401.1 MB, free: 43.17 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.194e-05/0.2727, allocations: 49.97 kB / 401.2 MB, free: 43.12 MB / 318.1 MB Notification: Performance of pre-optimization done (n=44): time 1.804e-06/0.2727, allocations: 0 / 401.2 MB, free: 43.12 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.03915/0.3118, allocations: 5.699 MB / 406.9 MB, free: 39.29 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001133/0.312, allocations: 141 kB / 407 MB, free: 39.12 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002274/0.3122, allocations: 198.5 kB / 407.2 MB, free: 38.91 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 9.708e-05/0.3123, allocations: 38.08 kB / 407.2 MB, free: 38.87 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.318e-05/0.3124, allocations: 149.5 kB / 407.4 MB, free: 38.72 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001908/0.3126, allocations: 193.3 kB / 407.6 MB, free: 38.53 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000351/0.313, allocations: 110.7 kB / 407.7 MB, free: 38.41 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.227e-05/0.3131, allocations: 346.7 kB / 408 MB, free: 38.06 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001816/0.3149, allocations: 0.6148 MB / 408.6 MB, free: 37.45 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00191/0.3168, allocations: 0.8011 MB / 409.4 MB, free: 36.57 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002601/0.3194, allocations: 1.247 MB / 410.7 MB, free: 35.25 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.557e-06/0.3195, allocations: 4 kB / 410.7 MB, free: 35.24 MB / 318.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003574/0.323, allocations: 1.398 MB / 412.1 MB, free: 33.84 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.583e-05/0.3231, allocations: 8 kB / 412.1 MB, free: 33.83 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.51e-05/0.3231, allocations: 8 kB / 412.1 MB, free: 33.82 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.314e-05/0.3231, allocations: 8 kB / 412.1 MB, free: 33.81 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001723/0.3249, allocations: 207.6 kB / 412.3 MB, free: 33.61 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.967e-05/0.3249, allocations: 8 kB / 412.3 MB, free: 33.6 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001236/0.3261, allocations: 111.8 kB / 412.4 MB, free: 33.49 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000108/0.3263, allocations: 27.94 kB / 412.5 MB, free: 33.46 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.000368/0.3266, allocations: 185.6 kB / 412.6 MB, free: 33.27 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000354/0.327, allocations: 149.2 kB / 412.8 MB, free: 33.12 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001644/0.3272, allocations: 55.31 kB / 412.8 MB, free: 33.06 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.425e-06/0.3272, allocations: 11.98 kB / 412.8 MB, free: 33.05 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.708e-06/0.3272, allocations: 4 kB / 412.8 MB, free: 33.05 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.017e-06/0.3272, allocations: 4 kB / 412.9 MB, free: 33.04 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00542/0.3327, allocations: 2.168 MB / 415 MB, free: 30.69 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.505e-05/0.3327, allocations: 11.98 kB / 415 MB, free: 30.68 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0009928/0.3337, allocations: 188.3 kB / 415.2 MB, free: 30.5 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.534e-05/0.3337, allocations: 12 kB / 415.2 MB, free: 30.48 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.447e-05/0.3338, allocations: 28 kB / 415.3 MB, free: 30.46 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.461e-05/0.3338, allocations: 15.94 kB / 415.3 MB, free: 30.44 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.137e-05/0.3339, allocations: 19.94 kB / 415.3 MB, free: 30.42 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003611/0.3375, allocations: 1.557 MB / 416.8 MB, free: 28.72 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002173/0.3377, allocations: 156.6 kB / 417 MB, free: 28.55 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.628e-05/0.3378, allocations: 31.92 kB / 417 MB, free: 28.52 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000734/0.3386, allocations: 79.91 kB / 417.1 MB, free: 28.44 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002274/0.3388, allocations: 91.73 kB / 417.2 MB, free: 28.35 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.653e-05/0.3389, allocations: 32 kB / 417.2 MB, free: 28.32 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001378/0.339, allocations: 152.2 kB / 417.4 MB, free: 28.17 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.339, allocations: 4 kB / 417.4 MB, free: 28.16 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.001009/0.34, allocations: 120 kB / 417.5 MB, free: 28.05 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.0001494/0.3402, allocations: 131 kB / 417.6 MB, free: 27.91 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002678/0.3429, allocations: 1.15 MB / 418.8 MB, free: 26.76 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 6.592e-06/0.3429, allocations: 11.94 kB / 418.8 MB, free: 26.75 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0007935/0.3437, allocations: 339.2 kB / 419.1 MB, free: 26.42 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008295/0.3445, allocations: 136.2 kB / 419.3 MB, free: 26.29 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002025/0.3466, allocations: 1.318 MB / 420.6 MB, free: 24.8 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002521/0.3468, allocations: 0.8129 MB / 421.4 MB, free: 23.96 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005877/0.3474, allocations: 95.34 kB / 421.5 MB, free: 23.87 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000282/0.3477, allocations: 39.44 kB / 421.5 MB, free: 23.83 MB / 318.1 MB Notification: Performance of SimCode: time 1.002e-06/0.3477, allocations: 4 kB / 421.5 MB, free: 23.83 MB / 318.1 MB Notification: Performance of Templates: time 0.0114/0.3591, allocations: 7.961 MB / 429.5 MB, free: 15.87 MB / 318.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","../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