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.002615/0.002615, allocations: 99.53 kB / 20.97 MB, free: 3.457 MB / 18.57 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.003245/0.003245, allocations: 164.8 kB / 24.27 MB, free: 156 kB / 18.57 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.534/1.534, allocations: 177 MB / 204.4 MB, free: 5.629 MB / 186.7 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.493e-06/1.493e-06, allocations: 0 / 272.2 MB, free: 1.84 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.082e-05/3.231e-05, allocations: 2.312 kB / 272.2 MB, free: 1.836 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.00439/0.004423, allocations: 2.314 MB / 274.5 MB, free: 15.5 MB / 266.7 MB Notification: Performance of NFInst.instExpressions: time 0.001955/0.006377, allocations: 0.7792 MB / 275.3 MB, free: 14.72 MB / 266.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001827/0.00656, allocations: 8 kB / 275.3 MB, free: 14.71 MB / 266.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0003566/0.006917, allocations: 47.58 kB / 275.3 MB, free: 14.66 MB / 266.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002416/0.007158, allocations: 67.42 kB / 275.4 MB, free: 14.6 MB / 266.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005411/0.007699, allocations: 171.5 kB / 275.6 MB, free: 14.43 MB / 266.7 MB Notification: Performance of NFFlatten.flatten: time 0.0004852/0.008184, allocations: 379.5 kB / 275.9 MB, free: 14.06 MB / 266.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001909/0.008375, allocations: 67.84 kB / 276 MB, free: 14 MB / 266.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004325/0.008808, allocations: 223.5 kB / 276.2 MB, free: 13.78 MB / 266.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002621/0.00907, allocations: 147.6 kB / 276.4 MB, free: 13.63 MB / 266.7 MB Notification: Performance of NFPackage.collectConstants: time 6.741e-05/0.009137, allocations: 39.94 kB / 276.4 MB, free: 13.59 MB / 266.7 MB Notification: Performance of NFFlatten.collectFunctions: time 6.708e-05/0.009204, allocations: 36 kB / 276.4 MB, free: 13.56 MB / 266.7 MB Notification: Performance of NFScalarize.scalarize: time 0.0001418/0.009346, allocations: 95.7 kB / 276.5 MB, free: 13.46 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 0.000144/0.00949, allocations: 107.7 kB / 276.6 MB, free: 13.36 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000527/0.01002, allocations: 354.9 kB / 277 MB, free: 13.01 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.369e-06/0.01002, allocations: 0 / 277 MB, free: 13.01 MB / 266.7 MB Notification: Performance of FrontEnd: time 1.513e-06/0.01002, allocations: 0 / 277 MB, free: 13.01 MB / 266.7 MB Notification: Performance of Transformations before backend: time 7.233e-06/0.01003, allocations: 0 / 277 MB, free: 13.01 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.001358/0.01139, allocations: 0.644 MB / 277.6 MB, free: 12.33 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.954e-05/0.01144, allocations: 11.98 kB / 277.6 MB, free: 12.32 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001482/0.01159, allocations: 68.75 kB / 277.7 MB, free: 12.25 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006693/0.01226, allocations: 210.9 kB / 277.9 MB, free: 12.02 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003763/0.01263, allocations: 343.9 kB / 278.2 MB, free: 11.62 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.545e-05/0.01272, allocations: 32.31 kB / 278.3 MB, free: 11.59 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001293/0.01401, allocations: 0.5393 MB / 278.8 MB, free: 11.01 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.313e-05/0.01403, allocations: 11.92 kB / 278.8 MB, free: 11 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.087e-05/0.01407, allocations: 12 kB / 278.8 MB, free: 10.99 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.137e-05/0.01409, allocations: 8 kB / 278.8 MB, free: 10.98 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001432/0.01552, allocations: 459.6 kB / 279.3 MB, free: 10.53 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001774/0.01729, allocations: 0.9803 MB / 280.3 MB, free: 9.488 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001559/0.01885, allocations: 476.5 kB / 280.7 MB, free: 8.973 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006564/0.01951, allocations: 234.7 kB / 281 MB, free: 8.727 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 5.377e-05/0.01956, allocations: 11.94 kB / 281 MB, free: 8.715 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.882e-05/0.01962, allocations: 49.53 kB / 281 MB, free: 8.656 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 2.364e-06/0.01962, allocations: 0 / 281 MB, free: 8.656 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.0173/0.03692, allocations: 3.357 MB / 284.4 MB, free: 5.293 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001505/0.03707, allocations: 149 kB / 284.5 MB, free: 5.117 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005747/0.03765, allocations: 257.8 kB / 284.8 MB, free: 4.848 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 7.747e-05/0.03773, allocations: 37.7 kB / 284.8 MB, free: 4.805 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001528/0.03788, allocations: 196.5 kB / 285 MB, free: 4.605 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002485/0.03813, allocations: 210.3 kB / 285.2 MB, free: 4.398 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003099/0.03844, allocations: 116 kB / 285.3 MB, free: 4.277 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0003062/0.03874, allocations: 0.5274 MB / 285.8 MB, free: 3.738 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001607/0.04035, allocations: 0.5674 MB / 286.4 MB, free: 3.172 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001719/0.04207, allocations: 0.6874 MB / 287.1 MB, free: 2.445 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003086/0.04516, allocations: 1.12 MB / 288.2 MB, free: 1.285 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.132e-06/0.04516, allocations: 4 kB / 288.2 MB, free: 1.281 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.003559/0.04872, allocations: 1.262 MB / 289.5 MB, free: 12 kB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.659e-05/0.04875, allocations: 8.219 kB / 289.5 MB, free: 4 kB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.939e-06/0.04876, allocations: 4 kB / 289.5 MB, free: 0 / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.516e-05/0.0488, allocations: 4.047 kB / 289.5 MB, free: 15.99 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001233/0.05004, allocations: 163.6 kB / 289.7 MB, free: 15.84 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.635e-05/0.05005, allocations: 8.297 kB / 289.7 MB, free: 15.83 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008598/0.05091, allocations: 67.92 kB / 289.7 MB, free: 15.76 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.594e-05/0.051, allocations: 24.22 kB / 289.8 MB, free: 15.74 MB / 282.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.0003844/0.05138, allocations: 212.7 kB / 290 MB, free: 15.52 MB / 282.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0004326/0.05181, allocations: 193.3 kB / 290.2 MB, free: 15.32 MB / 282.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002102/0.05202, allocations: 59.31 kB / 290.2 MB, free: 15.27 MB / 282.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.004e-05/0.05203, allocations: 8 kB / 290.2 MB, free: 15.26 MB / 282.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.1e-05/0.05205, allocations: 3.984 kB / 290.2 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.743e-06/0.05205, allocations: 0 / 290.2 MB, free: 15.25 MB / 282.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005144/0.0572, allocations: 2.048 MB / 292.3 MB, free: 12.99 MB / 282.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.604e-05/0.05721, allocations: 12.97 kB / 292.3 MB, free: 12.98 MB / 282.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007221/0.05793, allocations: 167.7 kB / 292.5 MB, free: 12.82 MB / 282.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.997e-05/0.05795, allocations: 16 kB / 292.5 MB, free: 12.8 MB / 282.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.132e-05/0.05802, allocations: 28 kB / 292.5 MB, free: 12.77 MB / 282.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.848e-05/0.05803, allocations: 19.92 kB / 292.5 MB, free: 12.75 MB / 282.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.702e-05/0.05805, allocations: 15.94 kB / 292.5 MB, free: 12.74 MB / 282.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003428/0.06148, allocations: 1.677 MB / 294.2 MB, free: 10.85 MB / 282.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002265/0.0617, allocations: 79.7 kB / 294.3 MB, free: 10.77 MB / 282.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.809e-05/0.06178, allocations: 27.98 kB / 294.3 MB, free: 10.75 MB / 282.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005286/0.06231, allocations: 59.95 kB / 294.4 MB, free: 10.69 MB / 282.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002259/0.06254, allocations: 103.6 kB / 294.5 MB, free: 10.59 MB / 282.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.64e-05/0.06259, allocations: 32 kB / 294.5 MB, free: 10.55 MB / 282.7 MB Notification: Performance of sorting global known variables: time 0.000163/0.06276, allocations: 172.2 kB / 294.7 MB, free: 10.39 MB / 282.7 MB Notification: Performance of sort global known variables: time 7e-08/0.06276, allocations: 0 / 294.7 MB, free: 10.39 MB / 282.7 MB Notification: Performance of remove unused functions: time 0.0006403/0.0634, allocations: 120 kB / 294.8 MB, free: 10.27 MB / 282.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.0002241/0.06362, allocations: 143 kB / 294.9 MB, free: 10.12 MB / 282.7 MB Notification: Performance of simCode: created initialization part: time 0.002812/0.06643, allocations: 0.9607 MB / 295.9 MB, free: 9.152 MB / 282.7 MB Notification: Performance of simCode: created event and clocks part: time 5.381e-06/0.06644, allocations: 0 / 295.9 MB, free: 9.152 MB / 282.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0009069/0.06735, allocations: 310.1 kB / 296.2 MB, free: 8.848 MB / 282.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009201/0.06827, allocations: 147.2 kB / 296.3 MB, free: 8.707 MB / 282.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002597/0.07086, allocations: 1.23 MB / 297.6 MB, free: 7.258 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002512/0.07111, allocations: 207.3 kB / 297.8 MB, free: 7.035 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004661/0.07158, allocations: 95.11 kB / 297.9 MB, free: 6.941 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002829/0.07186, allocations: 40.48 kB / 297.9 MB, free: 6.902 MB / 282.7 MB Notification: Performance of SimCode: time 1.643e-06/0.07186, allocations: 0 / 297.9 MB, free: 6.902 MB / 282.7 MB Notification: Performance of Templates: time 0.1291/0.201, allocations: 8.724 MB / 306.6 MB, free: 41.34 MB / 282.7 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=240 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 240] 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.920137998065911]