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.001378/0.001378, allocations: 115.7 kB / 18.49 MB, free: 4.566 MB / 14.72 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.001408/0.001408, allocations: 190.7 kB / 21.43 MB, free: 1.641 MB / 14.72 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 1.568/1.568, allocations: 225.6 MB / 249.8 MB, free: 3.734 MB / 190.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00163/0.00163, allocations: 47.94 kB / 366.3 MB, free: 0.875 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1199/0.1215, allocations: 52.14 MB / 418.5 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.005052/0.1266, allocations: 2.386 MB / 420.9 MB, free: 10.24 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002207/0.1288, allocations: 0.8416 MB / 421.7 MB, free: 9.391 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002949/0.1291, allocations: 7.938 kB / 421.7 MB, free: 9.383 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004237/0.1295, allocations: 59.5 kB / 421.8 MB, free: 9.324 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003032/0.1298, allocations: 71.48 kB / 421.8 MB, free: 9.254 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007979/0.1306, allocations: 195.5 kB / 422 MB, free: 9.062 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006/0.1312, allocations: 395.5 kB / 422.4 MB, free: 8.676 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002474/0.1315, allocations: 71.52 kB / 422.5 MB, free: 8.602 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003052/0.1318, allocations: 179.3 kB / 422.6 MB, free: 8.426 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003328/0.1321, allocations: 183.3 kB / 422.8 MB, free: 8.246 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.724e-05/0.1322, allocations: 32 kB / 422.9 MB, free: 8.215 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.939e-05/0.1322, allocations: 36 kB / 422.9 MB, free: 8.18 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001592/0.1324, allocations: 111.6 kB / 423 MB, free: 8.07 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001762/0.1326, allocations: 171 kB / 423.2 MB, free: 7.902 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005534/0.1331, allocations: 362.4 kB / 423.5 MB, free: 7.547 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.4e-06/0.1331, allocations: 0 / 423.5 MB, free: 7.547 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.925e-06/0.1331, allocations: 4 kB / 423.5 MB, free: 7.543 MB / 350.1 MB Notification: Performance of Transformations before backend: time 8.456e-06/0.1331, allocations: 0 / 423.5 MB, free: 7.543 MB / 350.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.001513/0.1347, allocations: 0.6831 MB / 424.2 MB, free: 6.812 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.28e-05/0.1347, allocations: 11.97 kB / 424.2 MB, free: 6.801 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.936e-05/0.1347, allocations: 12.75 kB / 424.2 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 9.36e-05/0.1348, allocations: 66.72 kB / 424.3 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.141e-05/0.1349, allocations: 48.7 kB / 424.3 MB, free: 6.668 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000571/0.1355, allocations: 311.3 kB / 424.7 MB, free: 6.32 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002536/0.1357, allocations: 146.3 kB / 424.8 MB, free: 6.16 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.305e-05/0.1358, allocations: 36.12 kB / 424.8 MB, free: 6.125 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001365/0.1372, allocations: 0.5588 MB / 425.4 MB, free: 5.539 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.359e-05/0.1372, allocations: 7.953 kB / 425.4 MB, free: 5.531 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.97e-05/0.1372, allocations: 11.94 kB / 425.4 MB, free: 5.52 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.07e-05/0.1373, allocations: 8 kB / 425.4 MB, free: 5.512 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0015/0.1388, allocations: 0.5191 MB / 425.9 MB, free: 4.992 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001966/0.1407, allocations: 1.018 MB / 427 MB, free: 3.898 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001856/0.1426, allocations: 486.4 kB / 427.4 MB, free: 3.387 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0007061/0.1433, allocations: 235.4 kB / 427.7 MB, free: 3.145 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 7.434e-05/0.1434, allocations: 12.14 kB / 427.7 MB, free: 3.133 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 6.093e-05/0.1434, allocations: 42.55 kB / 427.7 MB, free: 3.082 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 4.789e-06/0.1434, allocations: 0 / 427.7 MB, free: 3.082 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.04029/0.1837, allocations: 5.756 MB / 433.5 MB, free: 13.31 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001764/0.1839, allocations: 148.9 kB / 433.6 MB, free: 13.14 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000422/0.1843, allocations: 266.5 kB / 433.9 MB, free: 12.88 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 9.26e-05/0.1844, allocations: 41.7 kB / 433.9 MB, free: 12.83 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001645/0.1846, allocations: 153.7 kB / 434.1 MB, free: 12.67 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002535/0.1848, allocations: 198.4 kB / 434.3 MB, free: 12.48 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003446/0.1852, allocations: 118.6 kB / 434.4 MB, free: 12.36 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0002117/0.1854, allocations: 346.8 kB / 434.7 MB, free: 12.01 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001799/0.1872, allocations: 0.6188 MB / 435.3 MB, free: 11.39 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001904/0.1891, allocations: 0.7925 MB / 436.1 MB, free: 10.52 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003461/0.1925, allocations: 1.251 MB / 437.4 MB, free: 9.184 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.055e-06/0.1926, allocations: 0 / 437.4 MB, free: 9.184 MB / 366.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.004032/0.1966, allocations: 1.402 MB / 438.8 MB, free: 7.777 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.056e-05/0.1966, allocations: 11.94 kB / 438.8 MB, free: 7.766 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.78e-05/0.1966, allocations: 8.047 kB / 438.8 MB, free: 7.758 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.962e-05/0.1967, allocations: 11.98 kB / 438.8 MB, free: 7.746 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001399/0.1981, allocations: 211.7 kB / 439 MB, free: 7.539 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.239e-05/0.1981, allocations: 15.92 kB / 439 MB, free: 7.523 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009579/0.199, allocations: 103.8 kB / 439.1 MB, free: 7.422 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.656e-05/0.1991, allocations: 27.98 kB / 439.2 MB, free: 7.395 MB / 366.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.0003763/0.1995, allocations: 189.6 kB / 439.3 MB, free: 7.199 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003462/0.1999, allocations: 161.4 kB / 439.5 MB, free: 7.035 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002051/0.2001, allocations: 67.61 kB / 439.6 MB, free: 6.969 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.014e-05/0.2001, allocations: 8 kB / 439.6 MB, free: 6.961 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.488e-06/0.2001, allocations: 0 / 439.6 MB, free: 6.961 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.151e-05/0.2001, allocations: 3.984 kB / 439.6 MB, free: 6.957 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005031/0.2051, allocations: 2.187 MB / 441.8 MB, free: 4.586 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.435e-05/0.2051, allocations: 9.062 kB / 441.8 MB, free: 4.578 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008083/0.2059, allocations: 191.6 kB / 442 MB, free: 4.391 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.938e-05/0.206, allocations: 16 kB / 442 MB, free: 4.375 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.253e-05/0.206, allocations: 24 kB / 442 MB, free: 4.352 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.156e-05/0.206, allocations: 19.92 kB / 442 MB, free: 4.332 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.344e-05/0.206, allocations: 15.94 kB / 442 MB, free: 4.316 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003596/0.2096, allocations: 1.572 MB / 443.6 MB, free: 2.59 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002827/0.2099, allocations: 176.7 kB / 443.8 MB, free: 2.398 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.838e-05/0.21, allocations: 27.98 kB / 443.8 MB, free: 2.371 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000592/0.2106, allocations: 75.92 kB / 443.9 MB, free: 2.297 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002143/0.2108, allocations: 99.72 kB / 444 MB, free: 2.199 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.841e-05/0.2109, allocations: 32 kB / 444 MB, free: 2.168 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002114/0.2111, allocations: 185.9 kB / 444.2 MB, free: 1.984 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2111, allocations: 0 / 444.2 MB, free: 1.984 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006873/0.2118, allocations: 124 kB / 444.3 MB, free: 1.863 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.2028/0.4146, allocations: 2.145 MB / 446.5 MB, free: 30.7 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002761/0.4173, allocations: 1.026 MB / 447.5 MB, free: 30.69 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.35e-05/0.4173, allocations: 5.188 kB / 447.5 MB, free: 30.69 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009844/0.4183, allocations: 331.1 kB / 447.8 MB, free: 30.69 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001084/0.4194, allocations: 145.6 kB / 448 MB, free: 30.69 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01262/0.432, allocations: 6.906 MB / 454.9 MB, free: 27.33 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003615/0.4324, allocations: 0.83 MB / 455.7 MB, free: 26.62 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004791/0.4329, allocations: 102.2 kB / 455.8 MB, free: 26.6 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003818/0.4332, allocations: 122.5 kB / 455.9 MB, free: 26.52 MB / 366.1 MB Notification: Performance of SimCode: time 1.072e-06/0.4332, allocations: 0 / 455.9 MB, free: 26.52 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03499/0.4682, allocations: 11.74 MB / 467.6 MB, free: 23.35 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.134/9.602, allocations: 8.578 kB / 467.7 MB, free: 23.35 MB / 366.1 MB " [Timeout remaining time 650] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/AbsoluteClocks/AbsoluteClocks.csv","/var/lib/jenkins1/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: 12.540559273969848]