Running: ./testmodel.py --libraries=/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_Synchronous_Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) loadFile("/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo", uses=false) Using package Modelica_Synchronous with version 0.93.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo) Using package ModelicaServices with version 4.0.0 (/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-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(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0007016/0.0007016, allocations: 91.5 kB / 16.04 MB, free: 5.742 MB / 13.93 MB Notification: Performance of loadFile(/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/converted-libraries/.openmodelica/libraries/Modelica_Synchronous 0.93.0-master/package.mo): time 0.06847/0.06847, allocations: 12.63 MB / 29.41 MB, free: 6.09 MB / 24.77 MB Notification: Performance of FrontEnd - loaded program: time 0.0001613/0.0001614, allocations: 0 / 40.27 MB, free: 0.6289 MB / 24.77 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.004074/0.00425, allocations: 2.833 MB / 43.1 MB, free: 6.07 MB / 33.03 MB Notification: Automatically loaded package Complex 4.0.0 due to uses annotation. Notification: Automatically loaded package Modelica 4.0.0 due to usage. Notification: Performance of NFInst.instantiate(Modelica_Synchronous.Examples.CascadeControlledDrive.SuperSampled): time 1.373/1.377, allocations: 278.2 MB / 321.3 MB, free: 9.984 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001047/1.378, allocations: 0.7212 MB / 322.1 MB, free: 9.262 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001094/1.378, allocations: 7.938 kB / 322.1 MB, free: 9.254 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.000221/1.379, allocations: 41.67 kB / 322.1 MB, free: 9.215 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001584/1.379, allocations: 43.69 kB / 322.1 MB, free: 9.172 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004022/1.379, allocations: 148.9 kB / 322.3 MB, free: 9.027 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003302/1.38, allocations: 356.1 kB / 322.6 MB, free: 8.68 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002464/1.38, allocations: 179.3 kB / 322.8 MB, free: 8.504 MB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001773/1.38, allocations: 135.5 kB / 322.9 MB, free: 8.371 MB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001931/1.38, allocations: 147.3 kB / 323.1 MB, free: 8.227 MB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.13e-05/1.38, allocations: 17.31 kB / 323.1 MB, free: 8.211 MB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.561e-05/1.38, allocations: 16 kB / 323.1 MB, free: 8.195 MB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 8.999e-05/1.38, allocations: 79.77 kB / 323.2 MB, free: 8.117 MB / 250.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001372/1.381, allocations: 151.4 kB / 323.4 MB, free: 7.965 MB / 250.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002873/1.381, allocations: 298.9 kB / 323.6 MB, free: 7.672 MB / 250.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.569e-06/1.381, allocations: 0 / 323.6 MB, free: 7.672 MB / 250.7 MB Notification: Performance of FrontEnd: time 1.443e-06/1.381, allocations: 0 / 323.6 MB, free: 7.672 MB / 250.7 MB Notification: Performance of Transformations before backend: time 4.568e-06/1.381, allocations: 0 / 323.6 MB, free: 7.672 MB / 250.7 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.001033/1.382, allocations: 0.5755 MB / 324.2 MB, free: 7.055 MB / 250.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.484e-05/1.382, allocations: 10.03 kB / 324.2 MB, free: 7.047 MB / 250.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.151e-05/1.382, allocations: 40.59 kB / 324.3 MB, free: 7.008 MB / 250.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003325/1.382, allocations: 264.3 kB / 324.5 MB, free: 6.711 MB / 250.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001955/1.383, allocations: 147.9 kB / 324.7 MB, free: 6.551 MB / 250.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.426e-05/1.383, allocations: 32.28 kB / 324.7 MB, free: 6.52 MB / 250.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001033/1.384, allocations: 0.5545 MB / 325.3 MB, free: 5.949 MB / 250.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.631e-05/1.384, allocations: 4 kB / 325.3 MB, free: 5.945 MB / 250.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.091e-05/1.384, allocations: 8.594 kB / 325.3 MB, free: 5.938 MB / 250.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.317e-06/1.384, allocations: 8 kB / 325.3 MB, free: 5.93 MB / 250.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00122/1.385, allocations: 0.5296 MB / 325.8 MB, free: 5.406 MB / 250.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001286/1.386, allocations: 1.029 MB / 326.8 MB, free: 4.309 MB / 250.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001348/1.388, allocations: 0.52 MB / 327.4 MB, free: 3.754 MB / 250.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005356/1.388, allocations: 267.4 kB / 327.6 MB, free: 3.48 MB / 250.7 MB Notification: Performance of preOpt evalFunc (simulation): time 4.008e-05/1.388, allocations: 11.92 kB / 327.6 MB, free: 3.469 MB / 250.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.392e-05/1.388, allocations: 46.56 kB / 327.7 MB, free: 3.414 MB / 250.7 MB Notification: Performance of pre-optimization done (n=44): time 2.033e-06/1.388, allocations: 0 / 327.7 MB, free: 3.414 MB / 250.7 MB Notification: Performance of matching and sorting (n=72): time 0.03436/1.423, allocations: 6.745 MB / 334.4 MB, free: 12.65 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.678e-05/1.423, allocations: 149 kB / 334.6 MB, free: 12.48 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001943/1.423, allocations: 182.7 kB / 334.7 MB, free: 12.29 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 6.866e-05/1.423, allocations: 45.7 kB / 334.8 MB, free: 12.23 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.653e-05/1.423, allocations: 141.4 kB / 334.9 MB, free: 12.09 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001855/1.423, allocations: 189.3 kB / 335.1 MB, free: 11.9 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.324e-05/1.423, allocations: 16 kB / 335.1 MB, free: 11.89 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001203/1.423, allocations: 342.8 kB / 335.5 MB, free: 11.54 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.00144/1.425, allocations: 0.6539 MB / 336.1 MB, free: 10.89 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001521/1.426, allocations: 0.8353 MB / 336.9 MB, free: 9.98 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002743/1.429, allocations: 1.322 MB / 338.3 MB, free: 8.578 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.158e-06/1.429, allocations: 0 / 338.3 MB, free: 8.578 MB / 266.7 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003155/1.432, allocations: 1.472 MB / 339.7 MB, free: 7.102 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.154e-05/1.432, allocations: 12.36 kB / 339.8 MB, free: 7.09 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.646e-06/1.432, allocations: 4 kB / 339.8 MB, free: 7.086 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.167e-05/1.432, allocations: 8 kB / 339.8 MB, free: 7.078 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001257/1.434, allocations: 235.7 kB / 340 MB, free: 6.848 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.272e-05/1.434, allocations: 11.94 kB / 340 MB, free: 6.836 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008488/1.435, allocations: 123.7 kB / 340.1 MB, free: 6.715 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.026e-05/1.435, allocations: 28 kB / 340.2 MB, free: 6.688 MB / 266.7 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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002891/1.435, allocations: 190.5 kB / 340.3 MB, free: 6.492 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002825/1.435, allocations: 153.2 kB / 340.5 MB, free: 6.336 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001365/1.435, allocations: 67.3 kB / 340.6 MB, free: 6.27 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.885e-06/1.435, allocations: 8 kB / 340.6 MB, free: 6.262 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.893e-06/1.435, allocations: 0 / 340.6 MB, free: 6.262 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.929e-06/1.435, allocations: 7.984 kB / 340.6 MB, free: 6.254 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004239/1.44, allocations: 2.281 MB / 342.9 MB, free: 3.789 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.506e-05/1.44, allocations: 12 kB / 342.9 MB, free: 3.777 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0006956/1.44, allocations: 204.3 kB / 343.1 MB, free: 3.578 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.326e-05/1.44, allocations: 19.98 kB / 343.1 MB, free: 3.559 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.644e-05/1.441, allocations: 24 kB / 343.1 MB, free: 3.535 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.197e-05/1.441, allocations: 19.92 kB / 343.1 MB, free: 3.516 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.047e-05/1.441, allocations: 15.94 kB / 343.1 MB, free: 3.5 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002843/1.443, allocations: 1.677 MB / 344.8 MB, free: 1.668 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001639/1.444, allocations: 156.7 kB / 345 MB, free: 1.496 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.701e-05/1.444, allocations: 31.98 kB / 345 MB, free: 1.465 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005552/1.444, allocations: 95.98 kB / 345.1 MB, free: 1.371 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001901/1.444, allocations: 95.66 kB / 345.2 MB, free: 1.277 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.664e-05/1.444, allocations: 32 kB / 345.2 MB, free: 1.246 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001113/1.445, allocations: 142.6 kB / 345.4 MB, free: 1.109 MB / 266.7 MB Notification: Performance of sort global known variables: time 2.4e-07/1.445, allocations: 0 / 345.4 MB, free: 1.109 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005463/1.445, allocations: 120 kB / 345.5 MB, free: 0.9922 MB / 266.7 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.0001596/1.445, allocations: 138.9 kB / 345.6 MB, free: 0.8438 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002484/1.448, allocations: 1.194 MB / 346.8 MB, free: 15.64 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.29e-06/1.448, allocations: 4 kB / 346.8 MB, free: 15.64 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009239/1.449, allocations: 374.7 kB / 347.2 MB, free: 15.28 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009058/1.45, allocations: 144.6 kB / 347.3 MB, free: 15.14 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002162/1.452, allocations: 1.371 MB / 348.7 MB, free: 13.61 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003902/1.452, allocations: 0.8093 MB / 349.5 MB, free: 12.78 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0005567/1.453, allocations: 91.36 kB / 349.6 MB, free: 12.69 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002724/1.453, allocations: 39.42 kB / 349.6 MB, free: 12.65 MB / 282.7 MB Notification: Performance of SimCode: time 2.41e-07/1.453, allocations: 8 kB / 349.6 MB, free: 12.64 MB / 282.7 MB Notification: Performance of Templates: time 0.01094/1.464, allocations: 7.46 MB / 357.1 MB, free: 5.188 MB / 282.7 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