Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.002368/0.002368, allocations: 91.61 kB / 20.96 MB, free: 3.465 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.002605/0.002605, allocations: 165.6 kB / 24.27 MB, free: 156 kB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.546/1.546, allocations: 177.1 MB / 204.6 MB, free: 5.617 MB / 186.7 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") translateModel(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,tolerance=1e-06,outputFormat="mat",numberOfIntervals=8007,variableFilter="time|load.phi|load.w|PI.x|PI.y",fileNamePrefix="Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 272.3 MB, free: 1.879 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.926e-05/3.063e-05, allocations: 2.312 kB / 272.3 MB, free: 1.875 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004415/0.004446, allocations: 2.322 MB / 274.6 MB, free: 15.54 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001785/0.006231, allocations: 0.7754 MB / 275.4 MB, free: 14.76 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001573/0.006388, allocations: 11.94 kB / 275.4 MB, free: 14.75 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003164/0.006705, allocations: 47.58 kB / 275.4 MB, free: 14.7 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.000241/0.006946, allocations: 63.48 kB / 275.5 MB, free: 14.64 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005617/0.007507, allocations: 171.5 kB / 275.7 MB, free: 14.47 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0005656/0.008073, allocations: 379.5 kB / 276 MB, free: 14.1 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002062/0.008279, allocations: 67.84 kB / 276.1 MB, free: 14.04 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004543/0.008734, allocations: 227.5 kB / 276.3 MB, free: 13.81 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000269/0.009003, allocations: 147.6 kB / 276.5 MB, free: 13.67 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 7.217e-05/0.009075, allocations: 32 kB / 276.5 MB, free: 13.64 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.777e-05/0.009142, allocations: 36 kB / 276.5 MB, free: 13.6 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001349/0.009277, allocations: 95.7 kB / 276.6 MB, free: 13.51 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.0001596/0.009437, allocations: 111.7 kB / 276.7 MB, free: 13.4 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0005125/0.00995, allocations: 350.8 kB / 277.1 MB, free: 13.05 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 8.065e-06/0.009958, allocations: 7.984 kB / 277.1 MB, free: 13.05 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.493e-06/0.009959, allocations: 0 / 277.1 MB, free: 13.05 MB / 266.7 MB Notification: Performance of Transformations before backend: time 6.462e-06/0.009966, allocations: 0 / 277.1 MB, free: 13.05 MB / 266.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.001361/0.01133, allocations: 0.644 MB / 277.7 MB, free: 12.37 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.762e-05/0.01136, allocations: 8.031 kB / 277.7 MB, free: 12.36 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001396/0.0115, allocations: 68.75 kB / 277.8 MB, free: 12.29 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003851/0.01189, allocations: 212.6 kB / 278 MB, free: 12.06 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004874/0.01238, allocations: 339.9 kB / 278.4 MB, free: 11.66 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.792e-05/0.01244, allocations: 36.31 kB / 278.4 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00128/0.01372, allocations: 0.5239 MB / 278.9 MB, free: 11.06 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.739e-05/0.01375, allocations: 11.92 kB / 278.9 MB, free: 11.05 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.751e-05/0.01379, allocations: 12 kB / 278.9 MB, free: 11.04 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.34e-05/0.0138, allocations: 12 kB / 278.9 MB, free: 11.03 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001498/0.0153, allocations: 455.6 kB / 279.4 MB, free: 10.58 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001706/0.01701, allocations: 0.9841 MB / 280.4 MB, free: 9.535 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001643/0.01865, allocations: 479 kB / 280.8 MB, free: 9.02 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000707/0.01936, allocations: 238.8 kB / 281.1 MB, free: 8.77 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 6.07e-05/0.01942, allocations: 12 kB / 281.1 MB, free: 8.758 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.016e-05/0.01946, allocations: 49.33 kB / 281.1 MB, free: 8.699 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 1.683e-06/0.01946, allocations: 0 / 281.1 MB, free: 8.699 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.02518/0.04463, allocations: 3.348 MB / 284.5 MB, free: 5.348 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002206/0.04486, allocations: 149 kB / 284.6 MB, free: 5.172 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004547/0.04531, allocations: 265.8 kB / 284.9 MB, free: 4.895 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 0.0001212/0.04543, allocations: 37.7 kB / 284.9 MB, free: 4.852 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0002147/0.04565, allocations: 196.5 kB / 285.1 MB, free: 4.652 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.000489/0.04614, allocations: 210.3 kB / 285.3 MB, free: 4.445 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0004587/0.04659, allocations: 112 kB / 285.4 MB, free: 4.328 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0004006/0.04699, allocations: 0.5313 MB / 286 MB, free: 3.785 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.002539/0.04953, allocations: 0.5674 MB / 286.5 MB, free: 3.219 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002687/0.05222, allocations: 0.6874 MB / 287.2 MB, free: 2.492 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.004794/0.05702, allocations: 1.12 MB / 288.3 MB, free: 1.332 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.086e-05/0.05703, allocations: 4 kB / 288.3 MB, free: 1.328 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.005677/0.0627, allocations: 1.266 MB / 289.6 MB, free: 56 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 3.658e-05/0.06274, allocations: 8 kB / 289.6 MB, free: 48 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.427e-05/0.06275, allocations: 0 / 289.6 MB, free: 48 kB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.383e-05/0.06279, allocations: 4 kB / 289.6 MB, free: 44 kB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.1217/0.1845, allocations: 157.5 kB / 289.8 MB, free: 28.55 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.609e-05/0.1845, allocations: 7.094 kB / 289.8 MB, free: 28.55 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009554/0.1854, allocations: 71.33 kB / 289.9 MB, free: 28.55 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.012e-05/0.1855, allocations: 19.16 kB / 289.9 MB, free: 28.55 MB / 266.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 3 (kinematicPTP.noWphase,kinematicPTP.motion_ref,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 (67): * Single equations (assignments): 67 * 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.0002854/0.1858, allocations: 210.2 kB / 290.1 MB, free: 28.39 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004096/0.1862, allocations: 174.1 kB / 290.2 MB, free: 28.36 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000199/0.1864, allocations: 66.31 kB / 290.3 MB, free: 28.36 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.268e-06/0.1864, allocations: 9.984 kB / 290.3 MB, free: 28.36 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.983e-06/0.1864, allocations: 1.438 kB / 290.3 MB, free: 28.36 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.006e-05/0.1864, allocations: 4.641 kB / 290.3 MB, free: 28.36 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0045/0.1909, allocations: 2.046 MB / 292.4 MB, free: 27.47 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.371e-05/0.191, allocations: 9.859 kB / 292.4 MB, free: 27.47 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007229/0.1917, allocations: 174.7 kB / 292.6 MB, free: 27.45 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.651e-05/0.1917, allocations: 14.16 kB / 292.6 MB, free: 27.45 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.348e-05/0.1917, allocations: 26.16 kB / 292.6 MB, free: 27.45 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.622e-05/0.1918, allocations: 20.72 kB / 292.6 MB, free: 27.44 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.077e-05/0.1918, allocations: 15.84 kB / 292.6 MB, free: 27.44 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00305/0.1948, allocations: 1.67 MB / 294.3 MB, free: 26.33 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002203/0.195, allocations: 89.45 kB / 294.4 MB, free: 26.29 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.978e-05/0.1951, allocations: 29.75 kB / 294.4 MB, free: 26.28 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005683/0.1957, allocations: 57.64 kB / 294.5 MB, free: 26.27 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002419/0.1959, allocations: 101.3 kB / 294.6 MB, free: 26.24 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.078e-05/0.196, allocations: 30.36 kB / 294.6 MB, free: 26.23 MB / 266.7 MB Notification: Performance of sorting global known variables: time 0.0001185/0.1961, allocations: 177.3 kB / 294.8 MB, free: 26.11 MB / 266.7 MB Notification: Performance of sort global known variables: time 6e-08/0.1961, allocations: 0 / 294.8 MB, free: 26.11 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0006514/0.1968, allocations: 119.2 kB / 294.9 MB, free: 26.09 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: 3 (kinematicPTP.moving[1],kinematicPTP.motion_ref,kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (73): * Single equations (assignments): 73 * 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.0001525/0.1969, allocations: 136.9 kB / 295 MB, free: 25.97 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.002777/0.1997, allocations: 0.9702 MB / 296 MB, free: 25.74 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 1.19e-05/0.1997, allocations: 2.125 kB / 296 MB, free: 25.74 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0008971/0.2006, allocations: 301.8 kB / 296.3 MB, free: 25.65 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009352/0.2015, allocations: 162.7 kB / 296.5 MB, free: 25.6 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00225/0.2038, allocations: 1.229 MB / 297.7 MB, free: 24.61 MB / 266.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002327/0.204, allocations: 203.8 kB / 297.9 MB, free: 24.52 MB / 266.7 MB Notification: Performance of simCode: alias equations: time 0.0004613/0.2045, allocations: 86.03 kB / 298 MB, free: 24.5 MB / 266.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003135/0.2048, allocations: 45.92 kB / 298 MB, free: 24.48 MB / 266.7 MB Notification: Performance of SimCode: time 1.162e-06/0.2048, allocations: 0 / 298 MB, free: 24.48 MB / 266.7 MB Notification: Performance of Templates: time 0.01267/0.2175, allocations: 8.736 MB / 306.7 MB, free: 19.39 MB / 266.7 MB " [Timeout remaining time 660] make -j1 -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile [Timeout 660] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=240 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 240] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.906582975992933]