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.0014/0.0014, allocations: 105 kB / 16.31 MB, free: 6.359 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.001482/0.001482, allocations: 184.6 kB / 17.24 MB, free: 5.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.729/1.729, allocations: 205.1 MB / 223.1 MB, free: 12.25 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.1111/0.1111, allocations: 12.58 MB / 283.1 MB, free: 15.48 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.002946/0.002946, allocations: 79.89 kB / 343.5 MB, free: 2.957 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3758/0.3788, allocations: 49.39 MB / 392.9 MB, free: 49.15 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled): time 0.004418/0.3833, allocations: 2.32 MB / 395.2 MB, free: 47.54 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001639/0.3849, allocations: 0.8195 MB / 396 MB, free: 46.96 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001581/0.3851, allocations: 3.594 kB / 396 MB, free: 46.96 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003359/0.3855, allocations: 51.05 kB / 396.1 MB, free: 46.93 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002126/0.3857, allocations: 57.53 kB / 396.1 MB, free: 46.89 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005193/0.3862, allocations: 167 kB / 396.3 MB, free: 46.8 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004084/0.3866, allocations: 368.6 kB / 396.6 MB, free: 46.65 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002113/0.3868, allocations: 95.7 kB / 396.7 MB, free: 46.61 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002298/0.3871, allocations: 159.1 kB / 396.9 MB, free: 46.52 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002339/0.3873, allocations: 173.4 kB / 397.1 MB, free: 46.39 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 6.461e-05/0.3874, allocations: 32.28 kB / 397.1 MB, free: 46.39 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.862e-05/0.3875, allocations: 32.84 kB / 397.1 MB, free: 46.39 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001111/0.3876, allocations: 91.19 kB / 397.2 MB, free: 46.32 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001337/0.3877, allocations: 148.9 kB / 397.4 MB, free: 46.2 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003335/0.388, allocations: 311.2 kB / 397.7 MB, free: 45.97 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.498e-06/0.3881, allocations: 1.031 kB / 397.7 MB, free: 45.97 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.853e-06/0.3881, allocations: 0 / 397.7 MB, free: 45.97 MB / 318.1 MB Notification: Performance of Transformations before backend: time 8.246e-06/0.3881, allocations: 0 / 397.7 MB, free: 45.97 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.001161/0.3893, allocations: 0.6182 MB / 398.3 MB, free: 45.43 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.682e-05/0.3893, allocations: 9.719 kB / 398.3 MB, free: 45.43 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.234e-05/0.3894, allocations: 37.97 kB / 398.3 MB, free: 45.41 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002988/0.3897, allocations: 269.3 kB / 398.6 MB, free: 45.14 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001935/0.3899, allocations: 140 kB / 398.7 MB, free: 45.02 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.011e-05/0.39, allocations: 31.22 kB / 398.8 MB, free: 45.01 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001245/0.3912, allocations: 0.5475 MB / 399.3 MB, free: 44.66 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.23e-05/0.3913, allocations: 9.031 kB / 399.3 MB, free: 44.65 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.212e-05/0.3913, allocations: 11.44 kB / 399.3 MB, free: 44.64 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.852e-05/0.3914, allocations: 6.875 kB / 399.3 MB, free: 44.64 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001542/0.3929, allocations: 0.5151 MB / 399.9 MB, free: 44.41 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001576/0.3945, allocations: 1.008 MB / 400.9 MB, free: 43.51 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001677/0.3962, allocations: 0.5013 MB / 401.4 MB, free: 43.21 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006398/0.3968, allocations: 267 kB / 401.6 MB, free: 43.06 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.768e-05/0.3969, allocations: 5.125 kB / 401.6 MB, free: 43.06 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.724e-05/0.3969, allocations: 37.28 kB / 401.7 MB, free: 43.02 MB / 318.1 MB Notification: Performance of pre-optimization done (n=44): time 1.933e-06/0.3969, allocations: 5.219 kB / 401.7 MB, free: 43.02 MB / 318.1 MB Notification: Performance of matching and sorting (n=72): time 0.03769/0.4346, allocations: 5.711 MB / 407.4 MB, free: 39.09 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.558e-05/0.4348, allocations: 148.9 kB / 407.5 MB, free: 38.92 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001772/0.4349, allocations: 195.4 kB / 407.7 MB, free: 38.71 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 6.813e-05/0.435, allocations: 37.7 kB / 407.8 MB, free: 38.67 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.558e-05/0.4351, allocations: 141.5 kB / 407.9 MB, free: 38.53 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001483/0.4352, allocations: 189.3 kB / 408.1 MB, free: 38.34 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002569/0.4355, allocations: 110.7 kB / 408.2 MB, free: 38.23 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 8.584e-05/0.4356, allocations: 342.8 kB / 408.5 MB, free: 37.88 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001412/0.437, allocations: 0.6149 MB / 409.1 MB, free: 37.27 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001493/0.4385, allocations: 0.8002 MB / 409.9 MB, free: 36.39 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00264/0.4412, allocations: 1.251 MB / 411.2 MB, free: 35.06 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.021e-06/0.4412, allocations: 4 kB / 411.2 MB, free: 35.05 MB / 318.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.00314/0.4443, allocations: 1.393 MB / 412.6 MB, free: 33.65 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.749e-05/0.4444, allocations: 8 kB / 412.6 MB, free: 33.64 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.456e-05/0.4444, allocations: 12.27 kB / 412.6 MB, free: 33.63 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.068e-05/0.4444, allocations: 12 kB / 412.6 MB, free: 33.62 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001266/0.4457, allocations: 207.6 kB / 412.8 MB, free: 33.42 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.61e-05/0.4457, allocations: 11.94 kB / 412.8 MB, free: 33.41 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009552/0.4467, allocations: 103.7 kB / 412.9 MB, free: 33.3 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.861e-05/0.4468, allocations: 32.22 kB / 413 MB, free: 33.27 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.0003377/0.4471, allocations: 182.2 kB / 413.1 MB, free: 33.09 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003115/0.4474, allocations: 161.6 kB / 413.3 MB, free: 32.92 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001881/0.4476, allocations: 55.31 kB / 413.3 MB, free: 32.86 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.178e-06/0.4477, allocations: 8 kB / 413.4 MB, free: 32.86 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.345e-05/0.4477, allocations: 0 / 413.4 MB, free: 32.86 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.427e-05/0.4477, allocations: 8.078 kB / 413.4 MB, free: 32.85 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004313/0.452, allocations: 2.172 MB / 415.5 MB, free: 30.49 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.808e-06/0.4521, allocations: 8 kB / 415.5 MB, free: 30.48 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006919/0.4527, allocations: 191.7 kB / 415.7 MB, free: 30.3 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.191e-05/0.4528, allocations: 12 kB / 415.7 MB, free: 30.29 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.034e-05/0.4528, allocations: 27.98 kB / 415.8 MB, free: 30.26 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.948e-06/0.4528, allocations: 15.94 kB / 415.8 MB, free: 30.24 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.466e-06/0.4528, allocations: 15.94 kB / 415.8 MB, free: 30.23 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002699/0.4556, allocations: 1.553 MB / 417.4 MB, free: 28.52 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001662/0.4557, allocations: 164.6 kB / 417.5 MB, free: 28.34 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.604e-05/0.4558, allocations: 23.98 kB / 417.5 MB, free: 28.32 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000548/0.4564, allocations: 75.98 kB / 417.6 MB, free: 28.25 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001808/0.4565, allocations: 99.66 kB / 417.7 MB, free: 28.15 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.293e-05/0.4566, allocations: 32 kB / 417.7 MB, free: 28.12 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001145/0.4567, allocations: 147.4 kB / 417.9 MB, free: 27.97 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.4567, allocations: 0 / 417.9 MB, free: 27.97 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006689/0.4574, allocations: 124 kB / 418 MB, free: 27.85 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.0001668/0.4576, allocations: 131 kB / 418.1 MB, free: 27.71 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.002494/0.4601, allocations: 1.152 MB / 419.3 MB, free: 26.57 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 5.781e-06/0.4601, allocations: 4 kB / 419.3 MB, free: 26.56 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000849/0.4609, allocations: 338 kB / 419.6 MB, free: 26.23 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008324/0.4618, allocations: 132.7 kB / 419.7 MB, free: 26.11 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002173/0.464, allocations: 1.185 MB / 420.9 MB, free: 24.76 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003258/0.4643, allocations: 0.8129 MB / 421.7 MB, free: 23.92 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0005481/0.4649, allocations: 91.38 kB / 421.8 MB, free: 23.83 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002529/0.4651, allocations: 39.42 kB / 421.9 MB, free: 23.79 MB / 318.1 MB Notification: Performance of SimCode: time 9.31e-07/0.4651, allocations: 0 / 421.9 MB, free: 23.79 MB / 318.1 MB Notification: Performance of Templates: time 0.0125/0.4776, allocations: 8.139 MB / 430 MB, free: 15.65 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","/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