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.001417/0.001417, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.001711/0.001711, allocations: 216.9 kB / 24.53 MB, free: 4.012 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.648/1.648, allocations: 230.5 MB / 258.2 MB, free: 8.031 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.001859/0.001859, allocations: 67.89 kB / 378.5 MB, free: 3.066 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4505/0.4523, allocations: 53.42 MB / 432 MB, free: 6.719 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004713/0.457, allocations: 2.428 MB / 434.4 MB, free: 4.281 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001943/0.459, allocations: 0.8727 MB / 435.3 MB, free: 3.402 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002364/0.4592, allocations: 11.94 kB / 435.3 MB, free: 3.391 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003976/0.4596, allocations: 59.48 kB / 435.3 MB, free: 3.332 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002716/0.4599, allocations: 67.48 kB / 435.4 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007553/0.4606, allocations: 203.6 kB / 435.6 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005098/0.4612, allocations: 391.5 kB / 436 MB, free: 2.684 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002135/0.4614, allocations: 73.55 kB / 436 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003654/0.4617, allocations: 183.4 kB / 436.2 MB, free: 2.434 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002846/0.462, allocations: 187.2 kB / 436.4 MB, free: 2.25 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.147e-05/0.4621, allocations: 32 kB / 436.4 MB, free: 2.219 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.135e-05/0.4621, allocations: 36 kB / 436.5 MB, free: 2.184 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001317/0.4623, allocations: 111.6 kB / 436.6 MB, free: 2.074 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001646/0.4624, allocations: 159.1 kB / 436.7 MB, free: 1.918 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005075/0.4629, allocations: 382.3 kB / 437.1 MB, free: 1.543 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.939e-06/0.4629, allocations: 0 / 437.1 MB, free: 1.543 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.564e-06/0.4629, allocations: 0 / 437.1 MB, free: 1.543 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.055e-06/0.4629, allocations: 0 / 437.1 MB, free: 1.543 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.001263/0.4642, allocations: 0.5948 MB / 437.7 MB, free: 0.9141 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.008e-05/0.4643, allocations: 12.03 kB / 437.7 MB, free: 0.9023 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.139e-05/0.4643, allocations: 8.688 kB / 437.7 MB, free: 0.8945 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.507e-05/0.4644, allocations: 70.72 kB / 437.8 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.557e-05/0.4645, allocations: 44.7 kB / 437.8 MB, free: 0.7734 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005624/0.465, allocations: 261.3 kB / 438.1 MB, free: 0.4922 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003865/0.4654, allocations: 347.9 kB / 438.4 MB, free: 88 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.441e-05/0.4655, allocations: 36.12 kB / 438.5 MB, free: 52 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001285/0.4668, allocations: 0.5665 MB / 439 MB, free: 15.46 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.936e-05/0.4668, allocations: 4 kB / 439 MB, free: 15.45 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.661e-05/0.4668, allocations: 12 kB / 439.1 MB, free: 15.44 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.076e-05/0.4668, allocations: 8 kB / 439.1 MB, free: 15.43 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001484/0.4683, allocations: 0.5035 MB / 439.6 MB, free: 14.93 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00173/0.47, allocations: 0.9608 MB / 440.5 MB, free: 13.91 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001674/0.4717, allocations: 490.4 kB / 441 MB, free: 13.39 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006316/0.4723, allocations: 235.5 kB / 441.2 MB, free: 13.15 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.662e-05/0.4724, allocations: 15.98 kB / 441.2 MB, free: 13.13 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.358e-05/0.4724, allocations: 42.44 kB / 441.3 MB, free: 13.08 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.774e-06/0.4724, allocations: 4 kB / 441.3 MB, free: 13.08 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03872/0.5112, allocations: 5.771 MB / 447.1 MB, free: 7.301 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001771/0.5113, allocations: 157 kB / 447.2 MB, free: 7.117 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003589/0.5117, allocations: 253.9 kB / 447.5 MB, free: 6.863 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.225e-05/0.5118, allocations: 37.7 kB / 447.5 MB, free: 6.82 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001431/0.5119, allocations: 153.7 kB / 447.7 MB, free: 6.664 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002632/0.5122, allocations: 198.3 kB / 447.8 MB, free: 6.469 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000337/0.5125, allocations: 114.6 kB / 448 MB, free: 6.348 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002203/0.5127, allocations: 350.8 kB / 448.3 MB, free: 5.996 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001721/0.5145, allocations: 0.611 MB / 448.9 MB, free: 5.387 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001893/0.5164, allocations: 0.8002 MB / 449.7 MB, free: 4.512 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003367/0.5197, allocations: 1.244 MB / 451 MB, free: 3.188 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.022e-05/0.5197, allocations: 4 kB / 451 MB, free: 3.184 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.004045/0.5238, allocations: 1.402 MB / 452.4 MB, free: 1.773 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.616e-05/0.5238, allocations: 12.03 kB / 452.4 MB, free: 1.762 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.315e-05/0.5238, allocations: 7.984 kB / 452.4 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.379e-05/0.5239, allocations: 8 kB / 452.4 MB, free: 1.746 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001458/0.5253, allocations: 207.6 kB / 452.6 MB, free: 1.543 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.099e-05/0.5254, allocations: 19.92 kB / 452.6 MB, free: 1.523 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.001087/0.5265, allocations: 99.84 kB / 452.7 MB, free: 1.426 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.000126/0.5266, allocations: 27.98 kB / 452.7 MB, free: 1.398 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: 2 (kinematicPTP.noWphase,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 (83): * Single equations (assignments): 83 * 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.0005542/0.5271, allocations: 189.6 kB / 452.9 MB, free: 1.203 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000539/0.5277, allocations: 165.3 kB / 453.1 MB, free: 1.035 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002996/0.528, allocations: 71.55 kB / 453.2 MB, free: 0.9648 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.735e-05/0.528, allocations: 8.469 kB / 453.2 MB, free: 0.957 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.84e-05/0.528, allocations: 4 kB / 453.2 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.455e-05/0.528, allocations: 11.92 kB / 453.2 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005918/0.5339, allocations: 2.155 MB / 455.3 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.461e-05/0.534, allocations: 12 kB / 455.3 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008143/0.5348, allocations: 179.7 kB / 455.5 MB, free: 14.42 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.954e-05/0.5348, allocations: 12 kB / 455.5 MB, free: 14.41 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 9.43e-05/0.5349, allocations: 27.98 kB / 455.6 MB, free: 14.38 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.723e-05/0.5349, allocations: 20.22 kB / 455.6 MB, free: 14.36 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.384e-05/0.5349, allocations: 15.94 kB / 455.6 MB, free: 14.34 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003932/0.5389, allocations: 1.565 MB / 457.2 MB, free: 12.62 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003534/0.5392, allocations: 103.6 kB / 457.3 MB, free: 12.52 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001119/0.5393, allocations: 32.05 kB / 457.3 MB, free: 12.49 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0007023/0.54, allocations: 76.16 kB / 457.4 MB, free: 12.42 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002575/0.5403, allocations: 95.64 kB / 457.5 MB, free: 12.32 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.841e-05/0.5404, allocations: 32 kB / 457.5 MB, free: 12.29 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002854/0.5406, allocations: 185.1 kB / 457.7 MB, free: 12.11 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.5406, allocations: 0 / 457.7 MB, free: 12.11 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008865/0.5415, allocations: 124 kB / 457.8 MB, free: 11.99 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: 2 (kinematicPTP.moving[1],kinematicPTP.noWphase) * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (72): * Single equations (assignments): 72 * 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.004451/0.546, allocations: 2.148 MB / 459.9 MB, free: 9.688 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.00344/0.5494, allocations: 1.023 MB / 461 MB, free: 8.66 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.55e-05/0.5494, allocations: 8.062 kB / 461 MB, free: 8.652 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001171/0.5506, allocations: 325.9 kB / 461.3 MB, free: 8.336 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001287/0.5519, allocations: 155 kB / 461.4 MB, free: 8.191 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01793/0.5698, allocations: 6.902 MB / 468.3 MB, free: 0.793 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007836/0.5706, allocations: 0.8323 MB / 469.2 MB, free: 15.93 MB / 382.1 MB Notification: Performance of simCode: alias equations: time 0.0008475/0.5715, allocations: 100.1 kB / 469.3 MB, free: 15.83 MB / 382.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0006155/0.5721, allocations: 123.4 kB / 469.4 MB, free: 15.71 MB / 382.1 MB Notification: Performance of SimCode: time 1.923e-06/0.5721, allocations: 0 / 469.4 MB, free: 15.71 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04876/0.6208, allocations: 12.41 MB / 481.8 MB, free: 3.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.17/12.79, allocations: 0 / 481.8 MB, free: 3.43 MB / 382.1 MB " [Timeout remaining time 647] (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.936385304026771]