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.001612/0.001612, allocations: 80.34 kB / 22.21 MB, free: 2.281 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.001217/0.001217, allocations: 167.1 kB / 25.61 MB, free: 8.898 MB / 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.013/1.013, allocations: 177 MB / 205.9 MB, free: 4.453 MB / 186.7 MB " [Timeout remaining time 179] 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 2.214e-06/2.214e-06, allocations: 0 / 274.1 MB, free: 4.316 MB / 250.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.76e-05/2.982e-05, allocations: 2.312 kB / 274.1 MB, free: 4.312 MB / 250.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003199/0.003228, allocations: 2.326 MB / 276.4 MB, free: 1.984 MB / 250.7 MB Notification: Performance of NFInst.instExpressions: time 0.001234/0.004463, allocations: 0.7893 MB / 277.2 MB, free: 1.191 MB / 250.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001458/0.004608, allocations: 8.719 kB / 277.2 MB, free: 1.184 MB / 250.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002778/0.004886, allocations: 51.56 kB / 277.3 MB, free: 1.133 MB / 250.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001839/0.00507, allocations: 65.25 kB / 277.3 MB, free: 1.07 MB / 250.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005631/0.005633, allocations: 172.6 kB / 277.5 MB, free: 0.9023 MB / 250.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003255/0.005959, allocations: 380.2 kB / 277.9 MB, free: 0.5312 MB / 250.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001504/0.006109, allocations: 63.86 kB / 277.9 MB, free: 480 kB / 250.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003045/0.006414, allocations: 237.9 kB / 278.2 MB, free: 244 kB / 250.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001752/0.006589, allocations: 139.6 kB / 278.3 MB, free: 104 kB / 250.7 MB Notification: Performance of NFPackage.collectConstants: time 4.078e-05/0.00663, allocations: 32 kB / 278.3 MB, free: 72 kB / 250.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.537e-05/0.006665, allocations: 36 kB / 278.4 MB, free: 36 kB / 250.7 MB Notification: Performance of NFScalarize.scalarize: time 9.415e-05/0.006759, allocations: 99.69 kB / 278.5 MB, free: 15.94 MB / 266.7 MB Notification: Performance of NFVerifyModel.verify: time 7.718e-05/0.006836, allocations: 99.7 kB / 278.6 MB, free: 15.84 MB / 266.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002712/0.007107, allocations: 263 kB / 278.8 MB, free: 15.58 MB / 266.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.697e-06/0.007111, allocations: 4 kB / 278.8 MB, free: 15.58 MB / 266.7 MB Notification: Performance of FrontEnd: time 7.61e-07/0.007112, allocations: 0 / 278.8 MB, free: 15.58 MB / 266.7 MB Notification: Performance of Transformations before backend: time 5.4e-06/0.007117, allocations: 0 / 278.8 MB, free: 15.58 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.000751/0.007868, allocations: 0.6326 MB / 279.4 MB, free: 14.91 MB / 266.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.555e-05/0.007904, allocations: 12.02 kB / 279.5 MB, free: 14.9 MB / 266.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.336e-05/0.007987, allocations: 68.75 kB / 279.5 MB, free: 14.83 MB / 266.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002319/0.008219, allocations: 204.6 kB / 279.7 MB, free: 14.61 MB / 266.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001864/0.008405, allocations: 339.9 kB / 280.1 MB, free: 14.21 MB / 266.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.345e-05/0.008449, allocations: 28.38 kB / 280.1 MB, free: 14.18 MB / 266.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000526/0.008975, allocations: 423.9 kB / 280.5 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.459e-05/0.00899, allocations: 3.938 kB / 280.5 MB, free: 13.73 MB / 266.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.47e-05/0.009014, allocations: 12 kB / 280.5 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.464e-06/0.009022, allocations: 8 kB / 280.5 MB, free: 13.71 MB / 266.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003042/0.009326, allocations: 206.4 kB / 280.7 MB, free: 13.51 MB / 266.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008439/0.01017, allocations: 0.8905 MB / 281.6 MB, free: 12.56 MB / 266.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005318/0.0107, allocations: 328.6 kB / 281.9 MB, free: 12.19 MB / 266.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001398/0.01084, allocations: 130.8 kB / 282.1 MB, free: 12.05 MB / 266.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.761e-05/0.01088, allocations: 8 kB / 282.1 MB, free: 12.04 MB / 266.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.871e-05/0.01091, allocations: 49.27 kB / 282.1 MB, free: 11.98 MB / 266.7 MB Notification: Performance of pre-optimization done (n=45): time 2.014e-06/0.01091, allocations: 0 / 282.1 MB, free: 11.98 MB / 266.7 MB Notification: Performance of matching and sorting (n=73): time 0.006957/0.01787, allocations: 2.396 MB / 284.5 MB, free: 9.582 MB / 266.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.233e-05/0.01794, allocations: 149 kB / 284.7 MB, free: 9.406 MB / 266.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001488/0.01809, allocations: 233.8 kB / 284.9 MB, free: 9.16 MB / 266.7 MB Notification: Performance of collectPreVariables (initialization): time 5.881e-05/0.01815, allocations: 41.7 kB / 284.9 MB, free: 9.113 MB / 266.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.141e-05/0.01823, allocations: 196.5 kB / 285.1 MB, free: 8.914 MB / 266.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001308/0.01836, allocations: 190.3 kB / 285.3 MB, free: 8.727 MB / 266.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001839/0.01854, allocations: 103.9 kB / 285.4 MB, free: 8.617 MB / 266.7 MB Notification: Performance of setup shared object (initialization): time 0.0001181/0.01866, allocations: 0.5156 MB / 285.9 MB, free: 8.09 MB / 266.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000296/0.01896, allocations: 249.2 kB / 286.2 MB, free: 7.848 MB / 266.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003456/0.0193, allocations: 375.9 kB / 286.5 MB, free: 7.441 MB / 266.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005735/0.01988, allocations: 0.5303 MB / 287.1 MB, free: 6.871 MB / 266.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.034e-06/0.01988, allocations: 0 / 287.1 MB, free: 6.871 MB / 266.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001041/0.02092, allocations: 0.6651 MB / 287.7 MB, free: 6.199 MB / 266.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.179e-05/0.02094, allocations: 4 kB / 287.7 MB, free: 6.195 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.064e-05/0.02095, allocations: 4 kB / 287.7 MB, free: 6.191 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.636e-05/0.02097, allocations: 4 kB / 287.7 MB, free: 6.188 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0008539/0.02182, allocations: 159.8 kB / 287.9 MB, free: 6.031 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.197e-06/0.02183, allocations: 7.984 kB / 287.9 MB, free: 6.023 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005249/0.02236, allocations: 72.14 kB / 288 MB, free: 5.953 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 6.507e-05/0.02242, allocations: 19.98 kB / 288 MB, free: 5.934 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.0002487/0.02267, allocations: 192.3 kB / 288.2 MB, free: 5.734 MB / 266.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002996/0.02297, allocations: 157.7 kB / 288.3 MB, free: 5.574 MB / 266.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001205/0.02309, allocations: 59.31 kB / 288.4 MB, free: 5.516 MB / 266.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.136e-06/0.0231, allocations: 8 kB / 288.4 MB, free: 5.508 MB / 266.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.608e-06/0.02311, allocations: 4 kB / 288.4 MB, free: 5.504 MB / 266.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.211e-05/0.02312, allocations: 3.984 kB / 288.4 MB, free: 5.5 MB / 266.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00243/0.02555, allocations: 1.449 MB / 289.9 MB, free: 3.844 MB / 266.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.14e-05/0.02556, allocations: 12 kB / 289.9 MB, free: 3.832 MB / 266.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0005105/0.02607, allocations: 168.5 kB / 290 MB, free: 3.668 MB / 266.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.322e-05/0.02608, allocations: 12 kB / 290 MB, free: 3.656 MB / 266.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.862e-05/0.02613, allocations: 28 kB / 290.1 MB, free: 3.629 MB / 266.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.634e-05/0.02615, allocations: 23.92 kB / 290.1 MB, free: 3.605 MB / 266.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.114e-05/0.02616, allocations: 15.94 kB / 290.1 MB, free: 3.59 MB / 266.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001059/0.02722, allocations: 1.042 MB / 291.2 MB, free: 2.336 MB / 266.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003178/0.02754, allocations: 95.61 kB / 291.3 MB, free: 2.242 MB / 266.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.73e-05/0.02759, allocations: 24 kB / 291.3 MB, free: 2.219 MB / 266.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0004026/0.028, allocations: 67.94 kB / 291.3 MB, free: 2.152 MB / 266.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001593/0.02816, allocations: 83.64 kB / 291.4 MB, free: 2.07 MB / 266.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.114e-05/0.0282, allocations: 31.98 kB / 291.5 MB, free: 2.039 MB / 266.7 MB Notification: Performance of sorting global known variables: time 8.986e-05/0.02829, allocations: 168.1 kB / 291.6 MB, free: 1.875 MB / 266.7 MB Notification: Performance of sort global known variables: time 8e-08/0.02829, allocations: 0 / 291.6 MB, free: 1.875 MB / 266.7 MB Notification: Performance of remove unused functions: time 0.0005723/0.02886, allocations: 116 kB / 291.7 MB, free: 1.762 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.0001609/0.02902, allocations: 143 kB / 291.9 MB, free: 1.613 MB / 266.7 MB Notification: Performance of simCode: created initialization part: time 0.000814/0.02983, allocations: 0.496 MB / 292.4 MB, free: 1.113 MB / 266.7 MB Notification: Performance of simCode: created event and clocks part: time 6.302e-06/0.02984, allocations: 4 kB / 292.4 MB, free: 1.109 MB / 266.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0002497/0.03009, allocations: 162.7 kB / 292.5 MB, free: 0.9492 MB / 266.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007719/0.03086, allocations: 140.2 kB / 292.7 MB, free: 0.8164 MB / 266.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001808/0.03267, allocations: 1.112 MB / 293.8 MB, free: 15.48 MB / 282.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001382/0.03281, allocations: 138.6 kB / 293.9 MB, free: 15.33 MB / 282.7 MB Notification: Performance of simCode: alias equations: time 0.0004066/0.03322, allocations: 75.2 kB / 294 MB, free: 15.26 MB / 282.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003872/0.0336, allocations: 134.2 kB / 294.1 MB, free: 15.13 MB / 282.7 MB Notification: Performance of SimCode: time 1.713e-06/0.03361, allocations: 0 / 294.1 MB, free: 15.13 MB / 282.7 MB Notification: Performance of Templates: time 0.01384/0.04745, allocations: 9.589 MB / 303.7 MB, free: 5.621 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","",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 3.0816167052835226]