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.00132/0.00132, allocations: 85.91 kB / 20.68 MB, free: 1.035 MB / 14.72 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.001541/0.001541, allocations: 164.8 kB / 23.95 MB, free: 4.172 MB / 14.72 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.446/1.446, allocations: 177.2 MB / 204.3 MB, free: 9.16 MB / 190.1 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.734e-06/1.734e-06, allocations: 0 / 325 MB, free: 0.5625 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 3.36e-05/3.534e-05, allocations: 9.734 kB / 325 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.00427/0.004306, allocations: 2.264 MB / 327.3 MB, free: 15.04 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001895/0.006201, allocations: 0.7646 MB / 328.1 MB, free: 14.52 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001709/0.006372, allocations: 11.84 kB / 328.1 MB, free: 14.51 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003447/0.006716, allocations: 60.39 kB / 328.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002506/0.006967, allocations: 57.58 kB / 328.2 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005664/0.007533, allocations: 168.2 kB / 328.4 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005112/0.008045, allocations: 378.7 kB / 328.7 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002126/0.008257, allocations: 70.91 kB / 328.8 MB, free: 14.15 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004684/0.008726, allocations: 227.2 kB / 329 MB, free: 14.05 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002732/0.008999, allocations: 144 kB / 329.2 MB, free: 14 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.636e-05/0.009065, allocations: 34.44 kB / 329.2 MB, free: 14 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.466e-05/0.00913, allocations: 34.12 kB / 329.2 MB, free: 14 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002036/0.009333, allocations: 97.22 kB / 329.3 MB, free: 13.95 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001555/0.009489, allocations: 103.5 kB / 329.4 MB, free: 13.89 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000592/0.01008, allocations: 361.2 kB / 329.8 MB, free: 13.72 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.958e-06/0.01008, allocations: 0 / 329.8 MB, free: 13.72 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.01009, allocations: 0 / 329.8 MB, free: 13.72 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.206e-05/0.0101, allocations: 0 / 329.8 MB, free: 13.72 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.001443/0.01154, allocations: 0.5421 MB / 330.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.233e-05/0.01158, allocations: 12.78 kB / 330.3 MB, free: 13.27 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001132/0.0117, allocations: 38.53 kB / 330.4 MB, free: 13.25 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004467/0.01214, allocations: 211.8 kB / 330.6 MB, free: 13.05 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004264/0.01257, allocations: 351.7 kB / 330.9 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.647e-05/0.01266, allocations: 35.16 kB / 331 MB, free: 12.66 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001512/0.01417, allocations: 0.5462 MB / 331.5 MB, free: 12.31 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.569e-05/0.01419, allocations: 5.031 kB / 331.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.371e-05/0.01424, allocations: 10.31 kB / 331.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.142e-05/0.01425, allocations: 7.5 kB / 331.5 MB, free: 12.3 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00168/0.01593, allocations: 0.5144 MB / 332 MB, free: 12.06 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00175/0.01768, allocations: 0.8435 MB / 332.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001701/0.01938, allocations: 474.7 kB / 333.3 MB, free: 11.06 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0008146/0.0202, allocations: 237.1 kB / 333.6 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.053e-05/0.02026, allocations: 13.72 kB / 333.6 MB, free: 10.92 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.069e-05/0.0203, allocations: 39.12 kB / 333.6 MB, free: 10.88 MB / 302.1 MB Notification: Performance of pre-optimization done (n=45): time 1.703e-06/0.0203, allocations: 1.844 kB / 333.6 MB, free: 10.88 MB / 302.1 MB Notification: Performance of matching and sorting (n=73): time 0.0414/0.0617, allocations: 5.749 MB / 339.4 MB, free: 6.555 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001546/0.06185, allocations: 153 kB / 339.5 MB, free: 6.371 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002733/0.06212, allocations: 199.2 kB / 339.7 MB, free: 6.168 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 9.94e-05/0.06222, allocations: 37.7 kB / 339.8 MB, free: 6.125 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001051/0.06233, allocations: 137.8 kB / 339.9 MB, free: 5.988 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002303/0.06256, allocations: 194.3 kB / 340.1 MB, free: 5.797 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003003/0.06286, allocations: 98.28 kB / 340.2 MB, free: 5.695 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001941/0.06305, allocations: 342.8 kB / 340.5 MB, free: 5.352 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001783/0.06484, allocations: 0.6064 MB / 341.1 MB, free: 4.746 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002082/0.06692, allocations: 0.6976 MB / 341.8 MB, free: 4.02 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003372/0.07029, allocations: 1.118 MB / 342.9 MB, free: 2.871 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.07029, allocations: 0 / 342.9 MB, free: 2.871 MB / 302.1 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.003889/0.07418, allocations: 1.298 MB / 344.2 MB, free: 1.57 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.292e-05/0.07421, allocations: 4 kB / 344.2 MB, free: 1.566 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.33e-05/0.07422, allocations: 4 kB / 344.2 MB, free: 1.562 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.592e-05/0.07424, allocations: 4 kB / 344.2 MB, free: 1.559 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001332/0.07558, allocations: 183.7 kB / 344.4 MB, free: 1.379 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.328e-05/0.07559, allocations: 4 kB / 344.4 MB, free: 1.375 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009767/0.07657, allocations: 91.88 kB / 344.5 MB, free: 1.285 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.486e-05/0.07665, allocations: 16 kB / 344.5 MB, free: 1.27 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.0003818/0.07703, allocations: 177.6 kB / 344.7 MB, free: 1.086 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003414/0.07737, allocations: 157.7 kB / 344.9 MB, free: 0.9258 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001704/0.07755, allocations: 67.3 kB / 344.9 MB, free: 0.8555 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.588e-06/0.07755, allocations: 8 kB / 344.9 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.054e-05/0.07757, allocations: 0 / 344.9 MB, free: 0.8477 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.378e-06/0.07757, allocations: 3.984 kB / 344.9 MB, free: 0.8438 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005173/0.08275, allocations: 1.918 MB / 346.9 MB, free: 14.76 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.554e-05/0.08276, allocations: 12 kB / 346.9 MB, free: 14.75 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008187/0.08358, allocations: 192.5 kB / 347.1 MB, free: 14.56 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.584e-05/0.0836, allocations: 12 kB / 347.1 MB, free: 14.55 MB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.448e-05/0.08367, allocations: 24 kB / 347.1 MB, free: 14.53 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.839e-05/0.08369, allocations: 19.92 kB / 347.1 MB, free: 14.51 MB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.137e-05/0.0837, allocations: 15.94 kB / 347.1 MB, free: 14.49 MB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003689/0.08739, allocations: 1.554 MB / 348.7 MB, free: 12.79 MB / 318.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000231/0.08762, allocations: 91.7 kB / 348.8 MB, free: 12.7 MB / 318.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.331e-05/0.08771, allocations: 31.92 kB / 348.8 MB, free: 12.66 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006378/0.08834, allocations: 75.92 kB / 348.9 MB, free: 12.59 MB / 318.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002352/0.08858, allocations: 103.6 kB / 349 MB, free: 12.49 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.752e-05/0.08864, allocations: 32 kB / 349 MB, free: 12.46 MB / 318.1 MB Notification: Performance of sorting global known variables: time 0.0001592/0.0888, allocations: 148.3 kB / 349.2 MB, free: 12.31 MB / 318.1 MB Notification: Performance of sort global known variables: time 7e-08/0.0888, allocations: 0 / 349.2 MB, free: 12.31 MB / 318.1 MB Notification: Performance of remove unused functions: time 0.0006561/0.08945, allocations: 120.1 kB / 349.3 MB, free: 12.2 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.0002536/0.08971, allocations: 138.9 kB / 349.4 MB, free: 12.05 MB / 318.1 MB Notification: Performance of simCode: created initialization part: time 0.003092/0.0928, allocations: 0.9948 MB / 350.4 MB, free: 11.05 MB / 318.1 MB Notification: Performance of simCode: created event and clocks part: time 4.228e-06/0.0928, allocations: 0 / 350.4 MB, free: 11.05 MB / 318.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001135/0.09394, allocations: 342.1 kB / 350.7 MB, free: 10.72 MB / 318.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009031/0.09484, allocations: 128.4 kB / 350.9 MB, free: 10.59 MB / 318.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002539/0.09738, allocations: 1.114 MB / 352 MB, free: 9.316 MB / 318.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002507/0.09763, allocations: 207.2 kB / 352.2 MB, free: 9.09 MB / 318.1 MB Notification: Performance of simCode: alias equations: time 0.0004701/0.0981, allocations: 95.11 kB / 352.3 MB, free: 8.996 MB / 318.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003286/0.09843, allocations: 44.48 kB / 352.3 MB, free: 8.953 MB / 318.1 MB Notification: Performance of SimCode: time 6.21e-07/0.09843, allocations: 0 / 352.3 MB, free: 8.953 MB / 318.1 MB Notification: Performance of Templates: time 0.01608/0.1145, allocations: 8.63 MB / 360.9 MB, free: 400 kB / 318.1 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=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 480] 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.683555871248245]