Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.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 4.0.0+maint.om/package.mo", uses=false) Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+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.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001036/0.001036, allocations: 111.9 kB / 17.68 MB, free: 5.355 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.001189/0.001189, allocations: 192 kB / 18.62 MB, free: 4.434 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.281/1.281, allocations: 222.9 MB / 242.3 MB, free: 15.16 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001034/0.001034, allocations: 55.36 kB / 302 MB, free: 5.164 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1078/0.1088, allocations: 49.45 MB / 351.5 MB, free: 3.695 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003877/0.1128, allocations: 2.316 MB / 353.8 MB, free: 1.355 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001269/0.114, allocations: 0.7677 MB / 354.6 MB, free: 0.582 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000141/0.1142, allocations: 7.938 kB / 354.6 MB, free: 0.5742 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002598/0.1145, allocations: 51.58 kB / 354.6 MB, free: 0.5234 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001724/0.1147, allocations: 59.56 kB / 354.7 MB, free: 476 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004201/0.1151, allocations: 163.7 kB / 354.8 MB, free: 312 kB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003705/0.1155, allocations: 371.6 kB / 355.2 MB, free: 15.94 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000199/0.1157, allocations: 99.16 kB / 355.3 MB, free: 15.84 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002113/0.1159, allocations: 159.4 kB / 355.5 MB, free: 15.69 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000231/0.1161, allocations: 171.3 kB / 355.6 MB, free: 15.52 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.256e-05/0.1162, allocations: 36 kB / 355.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.432e-05/0.1162, allocations: 32 kB / 355.7 MB, free: 15.45 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001083/0.1164, allocations: 95.77 kB / 355.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001311/0.1165, allocations: 147.2 kB / 355.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003092/0.1168, allocations: 322.8 kB / 356.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.268e-06/0.1168, allocations: 0 / 356.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.443e-06/0.1168, allocations: 0 / 356.3 MB, free: 14.9 MB / 302.1 MB Notification: Performance of Transformations before backend: time 9.919e-06/0.1168, allocations: 0 / 356.3 MB, free: 14.9 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.001101/0.118, allocations: 0.6122 MB / 356.9 MB, free: 14.24 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.492e-05/0.118, allocations: 15.89 kB / 356.9 MB, free: 14.22 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.511e-05/0.1181, allocations: 36.56 kB / 356.9 MB, free: 14.19 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003956/0.1185, allocations: 276.3 kB / 357.2 MB, free: 13.88 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001748/0.1187, allocations: 134.2 kB / 357.3 MB, free: 13.73 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.402e-05/0.1187, allocations: 28.38 kB / 357.3 MB, free: 13.7 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001017/0.1198, allocations: 0.5623 MB / 357.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.591e-05/0.1198, allocations: 0 / 357.9 MB, free: 13.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.325e-05/0.1198, allocations: 12 kB / 357.9 MB, free: 13.11 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.574e-06/0.1198, allocations: 4 kB / 357.9 MB, free: 13.1 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00123/0.1211, allocations: 0.5157 MB / 358.4 MB, free: 12.59 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001426/0.1225, allocations: 1.002 MB / 359.4 MB, free: 11.51 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001426/0.124, allocations: 0.5063 MB / 359.9 MB, free: 10.96 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0005431/0.1245, allocations: 259.4 kB / 360.2 MB, free: 10.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.136e-05/0.1246, allocations: 11.94 kB / 360.2 MB, free: 10.69 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.273e-05/0.1246, allocations: 38.56 kB / 360.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of pre-optimization done (n=44): time 1.543e-06/0.1246, allocations: 0 / 360.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=72): time 0.03645/0.1611, allocations: 5.703 MB / 365.9 MB, free: 4.926 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.859e-05/0.1612, allocations: 141 kB / 366.1 MB, free: 4.758 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002066/0.1614, allocations: 203 kB / 366.3 MB, free: 4.551 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 7.584e-05/0.1615, allocations: 41.7 kB / 366.3 MB, free: 4.504 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.855e-05/0.1616, allocations: 141.5 kB / 366.5 MB, free: 4.363 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001617/0.1617, allocations: 185.4 kB / 366.6 MB, free: 4.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002898/0.162, allocations: 110.6 kB / 366.8 MB, free: 4.062 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001208/0.1622, allocations: 346.8 kB / 367.1 MB, free: 3.715 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001429/0.1636, allocations: 0.6149 MB / 367.7 MB, free: 3.102 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001524/0.1651, allocations: 0.8002 MB / 368.5 MB, free: 2.223 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002716/0.1679, allocations: 1.24 MB / 369.7 MB, free: 0.9062 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.46e-06/0.1679, allocations: 4 kB / 369.8 MB, free: 0.9023 MB / 302.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.1589/0.3268, allocations: 1.394 MB / 371.1 MB, free: 26.03 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.132e-05/0.3269, allocations: 7.719 kB / 371.2 MB, free: 26.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.066e-05/0.3269, allocations: 6.359 kB / 371.2 MB, free: 26.03 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.259e-05/0.3269, allocations: 8.938 kB / 371.2 MB, free: 26.03 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001368/0.3283, allocations: 209.6 kB / 371.4 MB, free: 26.03 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.047e-05/0.3284, allocations: 21.69 kB / 371.4 MB, free: 26.03 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009322/0.3293, allocations: 102 kB / 371.5 MB, free: 26.03 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.315e-05/0.3294, allocations: 28.67 kB / 371.5 MB, free: 26.03 MB / 302.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.0002826/0.3297, allocations: 190.5 kB / 371.7 MB, free: 25.91 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003148/0.33, allocations: 148.7 kB / 371.9 MB, free: 25.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001534/0.3302, allocations: 62.89 kB / 371.9 MB, free: 25.87 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.429e-05/0.3302, allocations: 8.25 kB / 371.9 MB, free: 25.87 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.287e-06/0.3302, allocations: 0.6562 kB / 371.9 MB, free: 25.87 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.094e-05/0.3302, allocations: 7.922 kB / 371.9 MB, free: 25.87 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00457/0.3348, allocations: 2.166 MB / 374.1 MB, free: 25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.306e-05/0.3348, allocations: 12.81 kB / 374.1 MB, free: 25 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007207/0.3356, allocations: 184.6 kB / 374.3 MB, free: 24.98 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.481e-05/0.3356, allocations: 13.75 kB / 374.3 MB, free: 24.98 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.167e-05/0.3357, allocations: 23.97 kB / 374.3 MB, free: 24.98 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.669e-05/0.3357, allocations: 20.8 kB / 374.3 MB, free: 24.97 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.548e-06/0.3357, allocations: 18.16 kB / 374.4 MB, free: 24.97 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002762/0.3385, allocations: 1.561 MB / 375.9 MB, free: 24.05 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001777/0.3386, allocations: 163.9 kB / 376.1 MB, free: 23.92 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.13e-05/0.3387, allocations: 30.97 kB / 376.1 MB, free: 23.91 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005397/0.3393, allocations: 76.84 kB / 376.2 MB, free: 23.9 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001882/0.3395, allocations: 97.11 kB / 376.3 MB, free: 23.87 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.917e-05/0.3395, allocations: 38.95 kB / 376.3 MB, free: 23.86 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001079/0.3396, allocations: 141.5 kB / 376.5 MB, free: 23.77 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.81e-07/0.3396, allocations: 1.375 kB / 376.5 MB, free: 23.77 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0006544/0.3403, allocations: 121.8 kB / 376.6 MB, free: 23.75 MB / 302.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.0001331/0.3404, allocations: 135.5 kB / 376.7 MB, free: 23.64 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.002565/0.343, allocations: 1.137 MB / 377.9 MB, free: 23.21 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 6.843e-06/0.343, allocations: 1.062 kB / 377.9 MB, free: 23.21 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009041/0.3439, allocations: 341.7 kB / 378.2 MB, free: 23.12 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008659/0.3448, allocations: 129.5 kB / 378.3 MB, free: 23.08 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002131/0.347, allocations: 1.173 MB / 379.5 MB, free: 22.21 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003331/0.3473, allocations: 0.8082 MB / 380.3 MB, free: 21.52 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0004614/0.3478, allocations: 98.08 kB / 380.4 MB, free: 21.48 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002835/0.3481, allocations: 43.23 kB / 380.4 MB, free: 21.48 MB / 302.1 MB Notification: Performance of SimCode: time 1.412e-06/0.3481, allocations: 0 / 380.4 MB, free: 21.48 MB / 302.1 MB Notification: Performance of Templates: time 0.01415/0.3622, allocations: 8.159 MB / 388.6 MB, free: 18.46 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -s gbode -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches