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.0008155/0.0008155, allocations: 80.34 kB / 20.67 MB, free: 3.891 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.0007895/0.0007895, allocations: 156.9 kB / 23.95 MB, free: 0.6094 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 0.8732/0.8732, allocations: 177 MB / 204.1 MB, free: 5.754 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: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 2.094e-06/2.094e-06, allocations: 0 / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.734e-05/2.944e-05, allocations: 3.406 kB / 324.5 MB, free: 15.9 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003711/0.003741, allocations: 2.302 MB / 326.8 MB, free: 13.58 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001343/0.005083, allocations: 0.8259 MB / 327.6 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000175/0.005258, allocations: 11.94 kB / 327.6 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002734/0.005532, allocations: 59.45 kB / 327.7 MB, free: 12.68 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002075/0.005739, allocations: 75.41 kB / 327.8 MB, free: 12.6 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006421/0.006381, allocations: 206.4 kB / 328 MB, free: 12.4 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003465/0.006728, allocations: 399.4 kB / 328.4 MB, free: 12.01 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001664/0.006894, allocations: 71.61 kB / 328.4 MB, free: 11.95 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003259/0.00722, allocations: 239.5 kB / 328.7 MB, free: 11.71 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000158/0.007378, allocations: 151.5 kB / 328.8 MB, free: 11.56 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.904e-05/0.007417, allocations: 36 kB / 328.8 MB, free: 11.53 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.275e-05/0.00745, allocations: 36 kB / 328.9 MB, free: 11.49 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.828e-05/0.007538, allocations: 111.6 kB / 329 MB, free: 11.38 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.994e-05/0.007618, allocations: 107.7 kB / 329.1 MB, free: 11.28 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003259/0.007944, allocations: 398.7 kB / 329.5 MB, free: 10.89 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.337e-06/0.007947, allocations: 0 / 329.5 MB, free: 10.89 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.044e-06/0.007949, allocations: 0 / 329.5 MB, free: 10.89 MB / 298.7 MB Notification: Performance of Transformations before backend: time 5.901e-06/0.007955, allocations: 0 / 329.5 MB, free: 10.89 MB / 298.7 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.0008055/0.008761, allocations: 0.5986 MB / 330.1 MB, free: 10.26 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.117e-05/0.008802, allocations: 19.98 kB / 330.1 MB, free: 10.24 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.932e-05/0.008861, allocations: 70.72 kB / 330.2 MB, free: 10.16 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.065e-05/0.008922, allocations: 52.64 kB / 330.2 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003441/0.009266, allocations: 241.1 kB / 330.5 MB, free: 9.848 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001949/0.009461, allocations: 351.9 kB / 330.8 MB, free: 9.438 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.281e-05/0.009504, allocations: 28.38 kB / 330.8 MB, free: 9.41 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007628/0.01027, allocations: 0.5742 MB / 331.4 MB, free: 8.805 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.418e-05/0.01028, allocations: 4.172 kB / 331.4 MB, free: 8.801 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.603e-05/0.01031, allocations: 23.94 kB / 331.4 MB, free: 8.777 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.846e-06/0.01032, allocations: 8 kB / 331.4 MB, free: 8.77 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007772/0.01109, allocations: 0.5112 MB / 332 MB, free: 8.258 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009479/0.01204, allocations: 0.8987 MB / 332.8 MB, free: 7.297 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008408/0.01288, allocations: 470.5 kB / 333.3 MB, free: 6.801 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003448/0.01323, allocations: 243.3 kB / 333.5 MB, free: 6.551 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.625e-05/0.01326, allocations: 8 kB / 333.6 MB, free: 6.543 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.021e-05/0.01328, allocations: 46.55 kB / 333.6 MB, free: 6.488 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.393e-06/0.01328, allocations: 0 / 333.6 MB, free: 6.488 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.01961/0.0329, allocations: 5.802 MB / 339.4 MB, free: 0.6641 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.789e-05/0.03298, allocations: 145 kB / 339.5 MB, free: 0.4922 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002219/0.03321, allocations: 265.8 kB / 339.8 MB, free: 232 kB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.497e-05/0.03326, allocations: 33.7 kB / 339.8 MB, free: 192 kB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.165e-05/0.03333, allocations: 153.7 kB / 340 MB, free: 36 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001388/0.03347, allocations: 198.5 kB / 340.2 MB, free: 15.84 MB / 314.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001847/0.03366, allocations: 94.3 kB / 340.3 MB, free: 15.74 MB / 314.7 MB Notification: Performance of setup shared object (initialization): time 0.0001051/0.03376, allocations: 350.5 kB / 340.6 MB, free: 15.39 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009009/0.03466, allocations: 0.6064 MB / 341.2 MB, free: 14.79 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009267/0.03559, allocations: 0.6898 MB / 341.9 MB, free: 14.07 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001658/0.03725, allocations: 1.122 MB / 343 MB, free: 12.91 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.268e-06/0.03725, allocations: 0 / 343 MB, free: 12.91 MB / 314.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001924/0.03917, allocations: 1.294 MB / 344.3 MB, free: 11.62 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.174e-05/0.0392, allocations: 8 kB / 344.3 MB, free: 11.61 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.949e-06/0.03921, allocations: 8.156 kB / 344.3 MB, free: 11.6 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.875e-05/0.03922, allocations: 11.98 kB / 344.4 MB, free: 11.59 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006068/0.03983, allocations: 176.1 kB / 344.5 MB, free: 11.42 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.193e-05/0.03984, allocations: 4 kB / 344.5 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000425/0.04027, allocations: 99.7 kB / 344.6 MB, free: 11.32 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.062e-05/0.04032, allocations: 24 kB / 344.7 MB, free: 11.29 MB / 314.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.0002719/0.04059, allocations: 177.6 kB / 344.8 MB, free: 11.11 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002336/0.04082, allocations: 161.4 kB / 345 MB, free: 10.95 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001161/0.04094, allocations: 67.61 kB / 345 MB, free: 10.88 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.354e-06/0.04095, allocations: 8 kB / 345.1 MB, free: 10.87 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.178e-06/0.04096, allocations: 0 / 345.1 MB, free: 10.87 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.606e-06/0.04097, allocations: 7.984 kB / 345.1 MB, free: 10.86 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002728/0.04369, allocations: 1.984 MB / 347 MB, free: 8.699 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.08e-05/0.0437, allocations: 12.22 kB / 347.1 MB, free: 8.688 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003781/0.04408, allocations: 187.7 kB / 347.2 MB, free: 8.504 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.015e-05/0.04409, allocations: 12 kB / 347.3 MB, free: 8.492 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.237e-05/0.04412, allocations: 24 kB / 347.3 MB, free: 8.469 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.135e-05/0.04414, allocations: 23.88 kB / 347.3 MB, free: 8.445 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.571e-06/0.04414, allocations: 11.94 kB / 347.3 MB, free: 8.434 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001846/0.04599, allocations: 1.566 MB / 348.9 MB, free: 6.715 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001698/0.04616, allocations: 103.6 kB / 349 MB, free: 6.613 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.413e-05/0.0462, allocations: 31.94 kB / 349 MB, free: 6.582 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002929/0.04649, allocations: 83.91 kB / 349.1 MB, free: 6.5 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001536/0.04665, allocations: 99.64 kB / 349.2 MB, free: 6.402 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.939e-05/0.04668, allocations: 32.06 kB / 349.2 MB, free: 6.371 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001268/0.0468, allocations: 193.2 kB / 349.4 MB, free: 6.184 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.0468, allocations: 0 / 349.4 MB, free: 6.184 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.00041/0.04721, allocations: 120 kB / 349.5 MB, free: 6.066 MB / 314.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.002039/0.04925, allocations: 2.134 MB / 351.7 MB, free: 3.773 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001581/0.05083, allocations: 0.9908 MB / 352.7 MB, free: 2.777 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 7.264e-06/0.05084, allocations: 4 kB / 352.7 MB, free: 2.773 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005549/0.0514, allocations: 342.4 kB / 353 MB, free: 2.441 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006272/0.05202, allocations: 144.6 kB / 353.1 MB, free: 2.305 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007586/0.05961, allocations: 6.53 MB / 359.7 MB, free: 11.37 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001808/0.05979, allocations: 232.6 kB / 359.9 MB, free: 11.12 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003264/0.06012, allocations: 91.22 kB / 360 MB, free: 11.03 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.00027/0.06039, allocations: 120.5 kB / 360.1 MB, free: 10.91 MB / 330.7 MB Notification: Performance of SimCode: time 1.422e-06/0.06039, allocations: 480 / 360.1 MB, free: 10.91 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02452/0.0849, allocations: 12.93 MB / 373 MB, free: 14.14 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.898/6.983, allocations: 3.938 kB / 373 MB, free: 14.14 MB / 346.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins/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: 8.72203111089766]