Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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.00168/0.00168, allocations: 109.1 kB / 21.22 MB, free: 0.6484 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.001939/0.001939, allocations: 210.9 kB / 24.52 MB, free: 3.941 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.515/1.515, allocations: 230.5 MB / 258.2 MB, free: 7.801 MB / 206.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: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001887/0.001887, allocations: 59.91 kB / 378.5 MB, free: 2.859 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3354/0.3373, allocations: 53.42 MB / 431.9 MB, free: 6.465 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.00383/0.3411, allocations: 2.285 MB / 434.2 MB, free: 4.172 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001515/0.3426, allocations: 0.8223 MB / 435 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001555/0.3428, allocations: 15.88 kB / 435 MB, free: 3.328 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002565/0.343, allocations: 55.56 kB / 435.1 MB, free: 3.273 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002157/0.3433, allocations: 71.48 kB / 435.1 MB, free: 3.203 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005677/0.3438, allocations: 198.8 kB / 435.3 MB, free: 3.012 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004264/0.3443, allocations: 395.4 kB / 435.7 MB, free: 2.625 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001726/0.3444, allocations: 73.98 kB / 435.8 MB, free: 2.555 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003114/0.3447, allocations: 179.4 kB / 436 MB, free: 2.379 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002392/0.345, allocations: 187.3 kB / 436.2 MB, free: 2.195 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.202e-05/0.345, allocations: 36 kB / 436.2 MB, free: 2.16 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.659e-05/0.3451, allocations: 35.94 kB / 436.2 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001282/0.3452, allocations: 119.6 kB / 436.3 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000136/0.3454, allocations: 131.3 kB / 436.5 MB, free: 1.879 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000447/0.3458, allocations: 386.3 kB / 436.8 MB, free: 1.5 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.288e-06/0.3458, allocations: 0 / 436.8 MB, free: 1.5 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.452e-06/0.3458, allocations: 3.938 kB / 436.9 MB, free: 1.496 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.305e-05/0.3458, allocations: 0 / 436.9 MB, free: 1.496 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: 74 * Number of variables: 74 Notification: Performance of Generate backend data structure: time 0.001256/0.3471, allocations: 0.6026 MB / 437.5 MB, free: 0.8594 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.448e-05/0.3471, allocations: 8.031 kB / 437.5 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.617e-05/0.3471, allocations: 8.688 kB / 437.5 MB, free: 0.8438 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.646e-05/0.3472, allocations: 78.72 kB / 437.5 MB, free: 0.7578 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.038e-05/0.3473, allocations: 44.7 kB / 437.6 MB, free: 0.7148 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003966/0.3477, allocations: 249.3 kB / 437.8 MB, free: 456 kB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003451/0.348, allocations: 347.9 kB / 438.2 MB, free: 40 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.082e-05/0.3481, allocations: 40.11 kB / 438.2 MB, free: 0 / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001248/0.3494, allocations: 0.5704 MB / 438.8 MB, free: 15.4 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.255e-05/0.3494, allocations: 8 kB / 438.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.98e-05/0.3494, allocations: 8 kB / 438.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.016e-05/0.3494, allocations: 12 kB / 438.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001422/0.3508, allocations: 0.5191 MB / 439.3 MB, free: 14.86 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001522/0.3524, allocations: 0.9024 MB / 440.2 MB, free: 13.89 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001487/0.3539, allocations: 474.4 kB / 440.7 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006447/0.3545, allocations: 246.8 kB / 440.9 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.192e-05/0.3545, allocations: 4 kB / 440.9 MB, free: 13.14 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.026e-05/0.3546, allocations: 50.36 kB / 441 MB, free: 13.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.823e-06/0.3546, allocations: 4 kB / 441 MB, free: 13.07 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.03741/0.392, allocations: 5.774 MB / 446.8 MB, free: 7.289 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001434/0.3921, allocations: 160.8 kB / 446.9 MB, free: 7.102 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003574/0.3925, allocations: 265.8 kB / 447.2 MB, free: 6.836 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.277e-05/0.3926, allocations: 37.7 kB / 447.2 MB, free: 6.793 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001394/0.3927, allocations: 153.7 kB / 447.4 MB, free: 6.637 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002356/0.393, allocations: 198.4 kB / 447.6 MB, free: 6.441 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003351/0.3933, allocations: 114.6 kB / 447.7 MB, free: 6.32 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001872/0.3935, allocations: 347.2 kB / 448 MB, free: 5.973 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001697/0.3952, allocations: 0.6266 MB / 448.6 MB, free: 5.348 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.00184/0.397, allocations: 0.8042 MB / 449.4 MB, free: 4.469 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003247/0.4003, allocations: 1.256 MB / 450.7 MB, free: 3.133 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.586e-06/0.4003, allocations: 3.938 kB / 450.7 MB, free: 3.129 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.00444/0.4047, allocations: 1.407 MB / 452.1 MB, free: 1.715 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.233e-05/0.4047, allocations: 8 kB / 452.1 MB, free: 1.707 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.586e-05/0.4048, allocations: 8.234 kB / 452.1 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.709e-05/0.4048, allocations: 8 kB / 452.1 MB, free: 1.691 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001843/0.4067, allocations: 219.6 kB / 452.4 MB, free: 1.477 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.725e-05/0.4067, allocations: 15.94 kB / 452.4 MB, free: 1.461 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009989/0.4077, allocations: 99.77 kB / 452.5 MB, free: 1.363 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.66e-05/0.4078, allocations: 31.98 kB / 452.5 MB, free: 1.332 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.0003742/0.4081, allocations: 193.6 kB / 452.7 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003753/0.4085, allocations: 165.3 kB / 452.8 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000185/0.4087, allocations: 75.55 kB / 452.9 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.282e-05/0.4087, allocations: 11.94 kB / 452.9 MB, free: 0.8789 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.309e-05/0.4087, allocations: 4 kB / 452.9 MB, free: 0.875 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.028e-05/0.4087, allocations: 3.984 kB / 452.9 MB, free: 0.8711 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005088/0.4138, allocations: 1.969 MB / 454.9 MB, free: 14.73 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.289e-05/0.4139, allocations: 8 kB / 454.9 MB, free: 14.72 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007725/0.4146, allocations: 195.7 kB / 455.1 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.358e-05/0.4147, allocations: 16 kB / 455.1 MB, free: 14.51 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 7.9e-05/0.4147, allocations: 24 kB / 455.1 MB, free: 14.49 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.934e-05/0.4148, allocations: 19.92 kB / 455.2 MB, free: 14.47 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.757e-05/0.4148, allocations: 19.88 kB / 455.2 MB, free: 14.45 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003559/0.4183, allocations: 1.577 MB / 456.8 MB, free: 12.72 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002953/0.4186, allocations: 107.6 kB / 456.9 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.000107/0.4187, allocations: 31.92 kB / 456.9 MB, free: 12.58 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006602/0.4194, allocations: 75.92 kB / 457 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002308/0.4196, allocations: 95.64 kB / 457.1 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.197e-05/0.4197, allocations: 35.98 kB / 457.1 MB, free: 12.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002134/0.4199, allocations: 193.3 kB / 457.3 MB, free: 12.19 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4199, allocations: 0 / 457.3 MB, free: 12.19 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007163/0.4206, allocations: 124 kB / 457.4 MB, free: 12.07 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.003749/0.4244, allocations: 2.161 MB / 459.6 MB, free: 9.746 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003004/0.4274, allocations: 1.046 MB / 460.6 MB, free: 8.699 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.445e-05/0.4274, allocations: 448 / 460.6 MB, free: 8.699 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001058/0.4284, allocations: 341.9 kB / 461 MB, free: 8.367 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001003/0.4294, allocations: 147.1 kB / 461.1 MB, free: 8.227 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01462/0.4441, allocations: 6.957 MB / 468.1 MB, free: 0.7734 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002879/0.4443, allocations: 224.7 kB / 468.3 MB, free: 0.5312 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005306/0.4449, allocations: 100.1 kB / 468.4 MB, free: 444 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004144/0.4453, allocations: 123.4 kB / 468.5 MB, free: 324 kB / 366.1 MB Notification: Performance of SimCode: time 8.12e-07/0.4453, allocations: 0 / 468.5 MB, free: 324 kB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03832/0.4836, allocations: 12.9 MB / 481.4 MB, free: 3.598 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.61/12.09, allocations: 4.062 kB / 481.4 MB, free: 3.594 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.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),fastClock.factor,fastClock.resolution,fastClock.useSolver,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,previous(PI.x),sample1.u,sample1.y,sample2.u,sample2.y,sample3.u,sample3.y,slowClock.factor,slowClock.resolution,slowClock.useSolver,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: 15.064132860046811]