Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001301/0.001301, allocations: 86.56 kB / 20.68 MB, free: 1.031 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.00143/0.00143, allocations: 161.8 kB / 23.95 MB, free: 4.164 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.452/1.452, allocations: 177 MB / 204.1 MB, free: 9.18 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/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_trunk_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_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.793e-06/1.793e-06, allocations: 0 / 325 MB, free: 0.5195 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.686e-05/2.865e-05, allocations: 2.281 kB / 325 MB, free: 0.5156 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.00404/0.004068, allocations: 2.255 MB / 327.2 MB, free: 15 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001714/0.005782, allocations: 0.7736 MB / 328 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001581/0.00594, allocations: 8.531 kB / 328 MB, free: 14.47 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003345/0.006275, allocations: 55.52 kB / 328.1 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002369/0.006511, allocations: 58.56 kB / 328.1 MB, free: 14.4 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005305/0.007042, allocations: 168.1 kB / 328.3 MB, free: 14.31 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005221/0.007564, allocations: 381.9 kB / 328.7 MB, free: 14.14 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001989/0.007763, allocations: 64 kB / 328.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004747/0.008238, allocations: 226.8 kB / 329 MB, free: 14.02 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000291/0.008529, allocations: 144.2 kB / 329.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 7.263e-05/0.008601, allocations: 33.78 kB / 329.1 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.666e-05/0.008668, allocations: 34.56 kB / 329.2 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001643/0.008832, allocations: 100.8 kB / 329.3 MB, free: 13.91 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001684/0.009001, allocations: 103.7 kB / 329.4 MB, free: 13.86 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005498/0.009551, allocations: 359.2 kB / 329.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.009554, allocations: 1.125 kB / 329.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.225e-06/0.009556, allocations: 0 / 329.7 MB, free: 13.69 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.334e-06/0.009564, allocations: 0 / 329.7 MB, free: 13.69 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.001413/0.01098, allocations: 0.538 MB / 330.3 MB, free: 13.25 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.836e-05/0.01102, allocations: 13.58 kB / 330.3 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000103/0.01113, allocations: 41.88 kB / 330.3 MB, free: 13.23 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004682/0.0116, allocations: 216.7 kB / 330.5 MB, free: 13.02 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003632/0.01196, allocations: 347.8 kB / 330.9 MB, free: 12.65 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.632e-05/0.01204, allocations: 38.94 kB / 330.9 MB, free: 12.63 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001407/0.01344, allocations: 0.5513 MB / 331.4 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.408e-05/0.01347, allocations: 5.062 kB / 331.5 MB, free: 12.27 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.163e-05/0.01351, allocations: 15.16 kB / 331.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.163e-05/0.01352, allocations: 6.5 kB / 331.5 MB, free: 12.25 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001605/0.01513, allocations: 0.5117 MB / 332 MB, free: 12.02 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001562/0.01669, allocations: 0.842 MB / 332.8 MB, free: 11.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001621/0.01831, allocations: 468.6 kB / 333.3 MB, free: 11.03 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007164/0.01902, allocations: 246.6 kB / 333.5 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.485e-05/0.01907, allocations: 9.625 kB / 333.5 MB, free: 10.89 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.659e-05/0.01911, allocations: 47.08 kB / 333.6 MB, free: 10.84 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 2.014e-06/0.01911, allocations: 0 / 333.6 MB, free: 10.84 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.04256/0.06167, allocations: 5.753 MB / 339.3 MB, free: 6.508 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001392/0.06181, allocations: 145 kB / 339.5 MB, free: 6.332 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.00026/0.06207, allocations: 198.7 kB / 339.7 MB, free: 6.129 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.032e-05/0.06216, allocations: 37.7 kB / 339.7 MB, free: 6.086 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001003/0.06226, allocations: 141.8 kB / 339.8 MB, free: 5.945 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002004/0.06246, allocations: 194.3 kB / 340 MB, free: 5.754 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002934/0.06275, allocations: 98.28 kB / 340.1 MB, free: 5.652 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001567/0.06291, allocations: 342.8 kB / 340.5 MB, free: 5.309 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001757/0.06467, allocations: 0.6064 MB / 341.1 MB, free: 4.703 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001875/0.06654, allocations: 0.6937 MB / 341.8 MB, free: 3.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003492/0.07003, allocations: 1.114 MB / 342.9 MB, free: 2.836 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.026e-06/0.07004, allocations: 0 / 342.9 MB, free: 2.836 MB / 302.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.00405/0.07409, allocations: 1.294 MB / 344.2 MB, free: 1.535 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.054e-05/0.07412, allocations: 12.03 kB / 344.2 MB, free: 1.523 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.096e-05/0.07413, allocations: 0 / 344.2 MB, free: 1.523 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.883e-05/0.07416, allocations: 8 kB / 344.2 MB, free: 1.516 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001375/0.07553, allocations: 179.7 kB / 344.4 MB, free: 1.34 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.679e-05/0.07555, allocations: 7.984 kB / 344.4 MB, free: 1.332 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009552/0.0765, allocations: 91.88 kB / 344.5 MB, free: 1.242 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.949e-05/0.07659, allocations: 23.98 kB / 344.5 MB, free: 1.219 MB / 302.1 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.0003748/0.07697, allocations: 173.6 kB / 344.7 MB, free: 1.039 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003367/0.0773, allocations: 153.4 kB / 344.8 MB, free: 0.8828 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002141/0.07752, allocations: 63.3 kB / 344.9 MB, free: 0.8164 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.689e-06/0.07753, allocations: 8 kB / 344.9 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.336e-06/0.07754, allocations: 0 / 344.9 MB, free: 0.8086 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.142e-05/0.07755, allocations: 7.984 kB / 344.9 MB, free: 0.8008 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005303/0.08285, allocations: 1.914 MB / 346.8 MB, free: 14.72 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.174e-05/0.08287, allocations: 12 kB / 346.8 MB, free: 14.71 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008649/0.08374, allocations: 183.7 kB / 347 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.443e-05/0.08376, allocations: 16 kB / 347 MB, free: 14.52 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.668e-05/0.08382, allocations: 24 kB / 347 MB, free: 14.49 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.091e-05/0.08384, allocations: 23.92 kB / 347.1 MB, free: 14.47 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.554e-05/0.08386, allocations: 15.94 kB / 347.1 MB, free: 14.45 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003774/0.08763, allocations: 1.558 MB / 348.6 MB, free: 12.74 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000237/0.08787, allocations: 91.7 kB / 348.7 MB, free: 12.65 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.544e-05/0.08795, allocations: 31.98 kB / 348.7 MB, free: 12.62 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006629/0.08862, allocations: 83.97 kB / 348.8 MB, free: 12.54 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000229/0.08884, allocations: 99.58 kB / 348.9 MB, free: 12.44 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.525e-05/0.0889, allocations: 32.19 kB / 349 MB, free: 12.41 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001719/0.08907, allocations: 148.3 kB / 349.1 MB, free: 12.27 MB / 318.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.08907, allocations: 3.938 kB / 349.1 MB, free: 12.26 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006807/0.08975, allocations: 116 kB / 349.2 MB, free: 12.15 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: 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.0002093/0.08996, allocations: 134.9 kB / 349.4 MB, free: 12.01 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003144/0.09311, allocations: 0.9947 MB / 350.3 MB, free: 11.01 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 9.438e-06/0.09312, allocations: 4 kB / 350.4 MB, free: 11.01 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001177/0.09429, allocations: 338.2 kB / 350.7 MB, free: 10.68 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00093/0.09522, allocations: 127.9 kB / 350.8 MB, free: 10.55 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002662/0.09788, allocations: 1.107 MB / 351.9 MB, free: 9.285 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002574/0.09814, allocations: 211.2 kB / 352.1 MB, free: 9.055 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004508/0.09859, allocations: 95.16 kB / 352.2 MB, free: 8.961 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003151/0.09891, allocations: 40.5 kB / 352.3 MB, free: 8.922 MB / 318.1 MB Notification: Performance of SimCode: time 5.31e-07/0.09891, allocations: 0 / 352.3 MB, free: 8.922 MB / 318.1 MB Notification: Performance of Templates: time 0.01686/0.1158, allocations: 8.633 MB / 360.9 MB, free: 360 kB / 318.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.makefile [Timeout 660] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & ./Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_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.786055151373148]