Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0009981/0.0009981, allocations: 76.08 kB / 20.67 MB, free: 3.891 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.0009759/0.0009759, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8562/0.8562, allocations: 173.4 MB / 200.4 MB, free: 9.438 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.743e-06/1.743e-06, allocations: 0 / 318.4 MB, free: 6.387 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.403e-05/1.577e-05, allocations: 6.281 kB / 318.4 MB, free: 6.379 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.002444/0.00246, allocations: 2.277 MB / 320.7 MB, free: 4.082 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.0009416/0.003401, allocations: 0.7948 MB / 321.5 MB, free: 3.281 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001394/0.003541, allocations: 11.94 kB / 321.5 MB, free: 3.27 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002483/0.003789, allocations: 55.5 kB / 321.6 MB, free: 3.215 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001722/0.003961, allocations: 75.42 kB / 321.6 MB, free: 3.141 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003655/0.004327, allocations: 207.3 kB / 321.8 MB, free: 2.938 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003008/0.004627, allocations: 399.5 kB / 322.2 MB, free: 2.547 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001558/0.004783, allocations: 71.84 kB / 322.3 MB, free: 2.473 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002015/0.004985, allocations: 231.5 kB / 322.5 MB, free: 2.246 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001551/0.00514, allocations: 151.5 kB / 322.7 MB, free: 2.098 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.332e-05/0.005183, allocations: 36 kB / 322.7 MB, free: 2.062 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.125e-05/0.005214, allocations: 36 kB / 322.7 MB, free: 2.027 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.87e-05/0.005303, allocations: 115.6 kB / 322.8 MB, free: 1.914 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.031e-05/0.005383, allocations: 107.7 kB / 322.9 MB, free: 1.809 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002933/0.005677, allocations: 398.6 kB / 323.3 MB, free: 1.418 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.054e-06/0.005679, allocations: 0 / 323.3 MB, free: 1.418 MB / 282.7 MB Notification: Performance of FrontEnd: time 9.32e-07/0.00568, allocations: 0 / 323.3 MB, free: 1.418 MB / 282.7 MB Notification: Performance of Transformations before backend: time 4.318e-06/0.005684, allocations: 0 / 323.3 MB, free: 1.418 MB / 282.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.0007591/0.006443, allocations: 0.6058 MB / 323.9 MB, free: 0.7852 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.244e-05/0.006476, allocations: 8.922 kB / 324 MB, free: 0.7773 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.156e-05/0.006527, allocations: 74.66 kB / 324 MB, free: 0.6953 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.017e-05/0.006577, allocations: 44.7 kB / 324.1 MB, free: 0.6523 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002745/0.006852, allocations: 253.1 kB / 324.3 MB, free: 388 kB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001903/0.007042, allocations: 347.9 kB / 324.7 MB, free: 15.97 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.115e-05/0.007083, allocations: 32.38 kB / 324.7 MB, free: 15.94 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007247/0.007808, allocations: 0.5709 MB / 325.3 MB, free: 15.34 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.603e-05/0.007824, allocations: 8.141 kB / 325.3 MB, free: 15.33 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.427e-05/0.007848, allocations: 11.94 kB / 325.3 MB, free: 15.32 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.404e-06/0.007856, allocations: 8 kB / 325.3 MB, free: 15.31 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008299/0.008686, allocations: 0.523 MB / 325.8 MB, free: 14.79 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000897/0.009583, allocations: 0.8909 MB / 326.7 MB, free: 13.83 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008082/0.01039, allocations: 474.4 kB / 327.2 MB, free: 13.33 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003452/0.01074, allocations: 239.4 kB / 327.4 MB, free: 13.09 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.33e-05/0.01077, allocations: 7.984 kB / 327.4 MB, free: 13.08 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.113e-05/0.01079, allocations: 42.5 kB / 327.4 MB, free: 13.03 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.633e-06/0.01079, allocations: 0 / 327.4 MB, free: 13.03 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.01806/0.02885, allocations: 5.791 MB / 333.2 MB, free: 7.23 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.331e-05/0.02893, allocations: 160.9 kB / 333.4 MB, free: 7.043 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000175/0.0291, allocations: 265.8 kB / 333.7 MB, free: 6.773 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.678e-05/0.02916, allocations: 37.7 kB / 333.7 MB, free: 6.73 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.784e-05/0.02922, allocations: 149.7 kB / 333.8 MB, free: 6.582 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001156/0.02934, allocations: 190.3 kB / 334 MB, free: 6.395 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001741/0.02951, allocations: 102.3 kB / 334.1 MB, free: 6.289 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.079e-05/0.0296, allocations: 342.8 kB / 334.5 MB, free: 5.945 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008785/0.03047, allocations: 0.6064 MB / 335.1 MB, free: 5.34 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009058/0.03138, allocations: 0.6937 MB / 335.8 MB, free: 4.617 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001613/0.03299, allocations: 1.118 MB / 336.9 MB, free: 3.473 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.274e-06/0.03299, allocations: 0 / 336.9 MB, free: 3.473 MB / 298.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001886/0.03488, allocations: 1.298 MB / 338.2 MB, free: 2.168 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.48e-05/0.0349, allocations: 7.938 kB / 338.2 MB, free: 2.16 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.344e-06/0.0349, allocations: 4 kB / 338.2 MB, free: 2.156 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.647e-05/0.03492, allocations: 4 kB / 338.2 MB, free: 2.152 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005696/0.03549, allocations: 183.7 kB / 338.4 MB, free: 1.973 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.837e-06/0.0355, allocations: 4 kB / 338.4 MB, free: 1.969 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0003846/0.03588, allocations: 95.84 kB / 338.5 MB, free: 1.875 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.373e-05/0.03593, allocations: 23.92 kB / 338.5 MB, free: 1.852 MB / 298.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.0001917/0.03612, allocations: 173.7 kB / 338.7 MB, free: 1.672 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001734/0.03629, allocations: 165.4 kB / 338.8 MB, free: 1.504 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.837e-05/0.03638, allocations: 67.61 kB / 338.9 MB, free: 1.434 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.79e-06/0.03639, allocations: 12 kB / 338.9 MB, free: 1.422 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.03639, allocations: 7.938 kB / 338.9 MB, free: 1.414 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.34e-06/0.0364, allocations: 3.984 kB / 338.9 MB, free: 1.41 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002644/0.03904, allocations: 1.983 MB / 340.9 MB, free: 15.25 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.406e-06/0.03905, allocations: 9.031 kB / 340.9 MB, free: 15.24 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003678/0.03942, allocations: 187.6 kB / 341.1 MB, free: 15.05 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 8.676e-06/0.03943, allocations: 16 kB / 341.1 MB, free: 15.04 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.094e-05/0.03946, allocations: 27.98 kB / 341.1 MB, free: 15.01 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.097e-06/0.03947, allocations: 19.88 kB / 341.1 MB, free: 14.99 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.292e-06/0.03947, allocations: 15.94 kB / 341.2 MB, free: 14.98 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001744/0.04122, allocations: 1.57 MB / 342.7 MB, free: 13.25 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001388/0.04136, allocations: 103.7 kB / 342.8 MB, free: 13.15 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.134e-05/0.0414, allocations: 31.98 kB / 342.9 MB, free: 13.12 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002927/0.04169, allocations: 75.86 kB / 342.9 MB, free: 13.05 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001306/0.04182, allocations: 99.62 kB / 343 MB, free: 12.95 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.832e-05/0.04185, allocations: 36 kB / 343.1 MB, free: 12.91 MB / 314.7 MB Notification: Performance of sorting global known variables: time 0.0001062/0.04195, allocations: 185.2 kB / 343.3 MB, free: 12.73 MB / 314.7 MB Notification: Performance of sort global known variables: time 8e-08/0.04195, allocations: 4.062 kB / 343.3 MB, free: 12.73 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003718/0.04233, allocations: 116 kB / 343.4 MB, free: 12.61 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.001943/0.04427, allocations: 2.149 MB / 345.5 MB, free: 10.3 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.00146/0.04573, allocations: 0.9986 MB / 346.5 MB, free: 9.309 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 2.755e-06/0.04573, allocations: 0 / 346.5 MB, free: 9.309 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0006081/0.04634, allocations: 338.2 kB / 346.8 MB, free: 8.98 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005901/0.04693, allocations: 150.1 kB / 347 MB, free: 8.84 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007099/0.05403, allocations: 6.53 MB / 353.5 MB, free: 1.906 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001516/0.05418, allocations: 228.7 kB / 353.7 MB, free: 1.664 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0004868/0.05467, allocations: 95.2 kB / 353.8 MB, free: 1.57 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002505/0.05492, allocations: 116.5 kB / 354 MB, free: 1.457 MB / 314.7 MB Notification: Performance of SimCode: time 8.02e-07/0.05492, allocations: 0 / 354 MB, free: 1.457 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02602/0.08094, allocations: 12.94 MB / 366.9 MB, free: 4.715 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.14/7.221, allocations: 8.047 kB / 366.9 MB, free: 4.707 MB / 330.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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.936163822188973]