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.00125/0.00125, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001386/0.001386, allocations: 212.6 kB / 24.51 MB, free: 3.945 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.365/1.365, allocations: 230.6 MB / 258.3 MB, free: 7.801 MB / 206.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: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001417/0.001417, allocations: 43.94 kB / 378.5 MB, free: 2.988 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2269/0.2283, allocations: 53.36 MB / 431.8 MB, free: 6.648 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003528/0.2318, allocations: 2.249 MB / 434.1 MB, free: 4.395 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001311/0.2331, allocations: 0.7677 MB / 434.9 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001176/0.2332, allocations: 7.938 kB / 434.9 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002436/0.2335, allocations: 51.62 kB / 434.9 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001846/0.2337, allocations: 63.48 kB / 435 MB, free: 3.5 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004346/0.2341, allocations: 167.7 kB / 435.1 MB, free: 3.336 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003942/0.2345, allocations: 379.6 kB / 435.5 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001679/0.2347, allocations: 63.81 kB / 435.6 MB, free: 2.902 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000269/0.2349, allocations: 171.5 kB / 435.7 MB, free: 2.734 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002362/0.2352, allocations: 179.3 kB / 435.9 MB, free: 2.559 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.592e-05/0.2352, allocations: 36 kB / 436 MB, free: 2.523 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.397e-05/0.2353, allocations: 32 kB / 436 MB, free: 2.492 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001213/0.2354, allocations: 99.66 kB / 436.1 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000124/0.2355, allocations: 123.4 kB / 436.2 MB, free: 2.273 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003822/0.2359, allocations: 333 kB / 436.5 MB, free: 1.949 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.955e-06/0.2359, allocations: 0 / 436.5 MB, free: 1.949 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.262e-06/0.2359, allocations: 4 kB / 436.5 MB, free: 1.945 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.501e-06/0.2359, allocations: 0 / 436.5 MB, free: 1.945 MB / 334.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.001165/0.2371, allocations: 0.5483 MB / 437.1 MB, free: 1.367 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.219e-05/0.2371, allocations: 8.031 kB / 437.1 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.984e-05/0.2371, allocations: 8.688 kB / 437.1 MB, free: 1.348 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.042e-05/0.2372, allocations: 70.72 kB / 437.2 MB, free: 1.27 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.153e-05/0.2373, allocations: 36.75 kB / 437.2 MB, free: 1.234 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003452/0.2376, allocations: 210.5 kB / 437.4 MB, free: 1.004 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003045/0.2379, allocations: 347.9 kB / 437.7 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.406e-05/0.238, allocations: 36.08 kB / 437.8 MB, free: 0.5625 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001199/0.2392, allocations: 0.548 MB / 438.3 MB, free: 15.99 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.748e-05/0.2392, allocations: 4 kB / 438.3 MB, free: 15.98 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.702e-05/0.2392, allocations: 16 kB / 438.3 MB, free: 15.97 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.498e-06/0.2393, allocations: 8 kB / 438.4 MB, free: 15.96 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00143/0.2407, allocations: 0.5113 MB / 438.9 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001442/0.2421, allocations: 0.8983 MB / 439.8 MB, free: 14.48 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001429/0.2436, allocations: 469.4 kB / 440.2 MB, free: 13.99 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000628/0.2442, allocations: 247 kB / 440.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.986e-05/0.2442, allocations: 4 kB / 440.5 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.458e-05/0.2443, allocations: 54.48 kB / 440.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.024e-06/0.2443, allocations: 0 / 440.5 MB, free: 13.68 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.0398/0.2841, allocations: 5.748 MB / 446.3 MB, free: 7.918 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001167/0.2842, allocations: 149.2 kB / 446.4 MB, free: 7.742 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002729/0.2844, allocations: 192.1 kB / 446.6 MB, free: 7.547 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.136e-05/0.2845, allocations: 41.7 kB / 446.6 MB, free: 7.5 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001058/0.2846, allocations: 141.7 kB / 446.8 MB, free: 7.355 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000216/0.2849, allocations: 202.3 kB / 447 MB, free: 7.156 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003052/0.2852, allocations: 114.6 kB / 447.1 MB, free: 7.039 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001696/0.2853, allocations: 346.8 kB / 447.4 MB, free: 6.691 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001596/0.2869, allocations: 0.6227 MB / 448.1 MB, free: 6.066 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001733/0.2887, allocations: 0.8003 MB / 448.9 MB, free: 5.191 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003006/0.2917, allocations: 1.26 MB / 450.1 MB, free: 3.852 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.066e-06/0.2917, allocations: 0 / 450.1 MB, free: 3.852 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003512/0.2952, allocations: 1.403 MB / 451.5 MB, free: 2.441 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.172e-05/0.2952, allocations: 8 kB / 451.5 MB, free: 2.434 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.394e-05/0.2952, allocations: 11.94 kB / 451.5 MB, free: 2.422 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.188e-05/0.2952, allocations: 12.06 kB / 451.5 MB, free: 2.41 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001353/0.2966, allocations: 207.7 kB / 451.8 MB, free: 2.207 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.203e-05/0.2966, allocations: 19.92 kB / 451.8 MB, free: 2.188 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009257/0.2975, allocations: 103.8 kB / 451.9 MB, free: 2.086 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.407e-05/0.2976, allocations: 24 kB / 451.9 MB, free: 2.062 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 25 * 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 (84): * Single equations (assignments): 84 * 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.0003101/0.2979, allocations: 182.1 kB / 452.1 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003126/0.2983, allocations: 161.2 kB / 452.2 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001586/0.2984, allocations: 71.23 kB / 452.3 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.686e-06/0.2984, allocations: 8 kB / 452.3 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.482e-06/0.2984, allocations: 0 / 452.3 MB, free: 1.637 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.517e-06/0.2984, allocations: 3.984 kB / 452.3 MB, free: 1.633 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004757/0.3032, allocations: 1.968 MB / 454.3 MB, free: 15.49 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.477e-05/0.3032, allocations: 8 kB / 454.3 MB, free: 15.48 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000732/0.3039, allocations: 183.9 kB / 454.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.687e-05/0.304, allocations: 16 kB / 454.5 MB, free: 15.29 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.737e-05/0.304, allocations: 24 kB / 454.5 MB, free: 15.26 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.887e-05/0.304, allocations: 27.8 kB / 454.5 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.122e-05/0.304, allocations: 15.94 kB / 454.5 MB, free: 15.22 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00319/0.3072, allocations: 1.573 MB / 456.1 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001914/0.3074, allocations: 87.64 kB / 456.2 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.318e-05/0.3075, allocations: 27.98 kB / 456.2 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005664/0.3081, allocations: 75.92 kB / 456.3 MB, free: 13.3 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001976/0.3083, allocations: 103.9 kB / 456.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.058e-05/0.3083, allocations: 28 kB / 456.4 MB, free: 13.18 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001437/0.3085, allocations: 155.5 kB / 456.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3085, allocations: 0 / 456.6 MB, free: 13.02 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006502/0.3091, allocations: 124 kB / 456.7 MB, free: 12.9 MB / 366.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.003523/0.3126, allocations: 2.153 MB / 458.9 MB, free: 10.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002701/0.3153, allocations: 1.043 MB / 459.9 MB, free: 9.547 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.899e-06/0.3153, allocations: 4.125 kB / 459.9 MB, free: 9.543 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009667/0.3163, allocations: 341.8 kB / 460.2 MB, free: 9.211 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008507/0.3172, allocations: 134.2 kB / 460.4 MB, free: 9.082 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01306/0.3302, allocations: 6.814 MB / 467.2 MB, free: 1.77 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002391/0.3304, allocations: 211.3 kB / 467.4 MB, free: 1.539 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004754/0.3309, allocations: 99.28 kB / 467.5 MB, free: 1.441 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003909/0.3313, allocations: 115.4 kB / 467.6 MB, free: 1.332 MB / 366.1 MB Notification: Performance of SimCode: time 5.81e-07/0.3313, allocations: 0 / 467.6 MB, free: 1.332 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0369/0.3682, allocations: 12.43 MB / 480 MB, free: 5.109 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.23/11.59, allocations: 8.047 kB / 480 MB, free: 5.102 MB / 382.1 MB " [Timeout remaining time 648] (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/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] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:PI.T,PI.k,PI.u,PI.x,PI.y,angle.flange.phi,angle.flange.tau,angle.phi,der(load.w),der(speed.flange.phi),feedback1.u1,feedback1.u2,feedback1.y,feedback2.u1,feedback2.u2,feedback2.y,gain.k,gain.u,gain.y,hold1.u,hold1.y,hold1.y_start,kinematicPTP.endTime,kinematicPTP.moving[1],kinematicPTP.nout,kinematicPTP.q[1],kinematicPTP.q_begin[1],kinematicPTP.q_end[1],kinematicPTP.qd[1],kinematicPTP.qd_max[1],kinematicPTP.qdd[1],kinematicPTP.qdd_max[1],kinematicPTP.startTime,load.J,load.a,load.flange_a.phi,load.flange_a.tau,load.flange_b.phi,load.flange_b.tau,load.phi,load.stateSelect,load.w,periodicRealClock.period,periodicRealClock.useSolver,previous(PI.x),sample1.u,sample1.y,sample2.u,sample2.y,sample3.u,sample3.y,speed.flange.phi,speed.flange.tau,speed.w,super.factor,super.inferFactor,super.u,super.y,time,torque.flange.phi,torque.flange.tau,torque.tau,torque.useSupport [Calling sys.exit(0), Time elapsed: 14.172680806019343]