Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001216/0.001216, allocations: 105.1 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001319/0.001319, allocations: 211.8 kB / 24.51 MB, free: 3.914 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.357/1.357, allocations: 230.6 MB / 258.3 MB, free: 7.742 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001413/0.001413, allocations: 51.91 kB / 378.5 MB, free: 2.965 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2286/0.23, allocations: 53.37 MB / 431.9 MB, free: 6.766 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.003622/0.2336, allocations: 2.3 MB / 434.2 MB, free: 4.461 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001418/0.235, allocations: 0.8299 MB / 435 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001355/0.2352, allocations: 11.88 kB / 435 MB, free: 3.613 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002427/0.2354, allocations: 55.56 kB / 435 MB, free: 3.559 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002085/0.2356, allocations: 67.48 kB / 435.1 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005043/0.2361, allocations: 191.6 kB / 435.3 MB, free: 3.305 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000423/0.2365, allocations: 403.5 kB / 435.7 MB, free: 2.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001624/0.2367, allocations: 73.92 kB / 435.8 MB, free: 2.84 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002711/0.237, allocations: 175.4 kB / 435.9 MB, free: 2.668 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002357/0.2372, allocations: 183.2 kB / 436.1 MB, free: 2.488 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.532e-05/0.2373, allocations: 36 kB / 436.2 MB, free: 2.453 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.975e-05/0.2373, allocations: 36 kB / 436.2 MB, free: 2.418 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001366/0.2375, allocations: 119.6 kB / 436.3 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001345/0.2376, allocations: 131.3 kB / 436.4 MB, free: 2.172 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000423/0.238, allocations: 382.3 kB / 436.8 MB, free: 1.797 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.494e-06/0.238, allocations: 7.984 kB / 436.8 MB, free: 1.789 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.223e-06/0.238, allocations: 4 kB / 436.8 MB, free: 1.785 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.611e-06/0.238, allocations: 0 / 436.8 MB, free: 1.785 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.001235/0.2393, allocations: 0.5948 MB / 437.4 MB, free: 1.156 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.438e-05/0.2393, allocations: 15.97 kB / 437.4 MB, free: 1.141 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.447e-05/0.2393, allocations: 4.688 kB / 437.4 MB, free: 1.137 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.491e-05/0.2394, allocations: 74.72 kB / 437.5 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.59e-05/0.2395, allocations: 44.7 kB / 437.5 MB, free: 1.012 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004236/0.2399, allocations: 249.4 kB / 437.8 MB, free: 0.7422 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003022/0.2402, allocations: 351.9 kB / 438.1 MB, free: 340 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.464e-05/0.2403, allocations: 32.12 kB / 438.2 MB, free: 308 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001221/0.2415, allocations: 0.5816 MB / 438.7 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.487e-05/0.2415, allocations: 0 / 438.7 MB, free: 15.69 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.63e-05/0.2415, allocations: 12 kB / 438.8 MB, free: 15.68 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.594e-06/0.2415, allocations: 4 kB / 438.8 MB, free: 15.67 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001365/0.2429, allocations: 0.523 MB / 439.3 MB, free: 15.15 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.00146/0.2444, allocations: 0.9101 MB / 440.2 MB, free: 14.18 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001395/0.2458, allocations: 462.6 kB / 440.6 MB, free: 13.69 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006215/0.2464, allocations: 239.8 kB / 440.9 MB, free: 13.45 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.167e-05/0.2464, allocations: 8 kB / 440.9 MB, free: 13.44 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.078e-05/0.2464, allocations: 46.42 kB / 440.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.683e-06/0.2464, allocations: 3.938 kB / 440.9 MB, free: 13.38 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.03736/0.2838, allocations: 5.789 MB / 446.7 MB, free: 7.578 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001228/0.2839, allocations: 156.8 kB / 446.9 MB, free: 7.395 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003354/0.2843, allocations: 269.8 kB / 447.1 MB, free: 7.125 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.063e-05/0.2843, allocations: 33.7 kB / 447.2 MB, free: 7.086 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001226/0.2845, allocations: 157.7 kB / 447.3 MB, free: 6.926 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002154/0.2847, allocations: 194.4 kB / 447.5 MB, free: 6.734 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003172/0.285, allocations: 118.6 kB / 447.6 MB, free: 6.609 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001615/0.2852, allocations: 346.8 kB / 448 MB, free: 6.262 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001548/0.2867, allocations: 0.6227 MB / 448.6 MB, free: 5.641 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0017/0.2884, allocations: 0.8042 MB / 449.4 MB, free: 4.762 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002956/0.2914, allocations: 1.256 MB / 450.7 MB, free: 3.426 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.011e-06/0.2914, allocations: 7.938 kB / 450.7 MB, free: 3.418 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003445/0.2948, allocations: 1.407 MB / 452.1 MB, free: 2.004 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.356e-05/0.2948, allocations: 8 kB / 452.1 MB, free: 1.996 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.175e-05/0.2948, allocations: 4 kB / 452.1 MB, free: 1.992 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.27e-05/0.2949, allocations: 8 kB / 452.1 MB, free: 1.984 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001313/0.2962, allocations: 219.6 kB / 452.3 MB, free: 1.77 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.821e-05/0.2962, allocations: 15.92 kB / 452.3 MB, free: 1.754 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009182/0.2971, allocations: 100 kB / 452.4 MB, free: 1.656 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.287e-05/0.2972, allocations: 35.98 kB / 452.5 MB, free: 1.621 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.0003327/0.2975, allocations: 185.6 kB / 452.6 MB, free: 1.43 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003075/0.2979, allocations: 169.7 kB / 452.8 MB, free: 1.258 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001705/0.298, allocations: 67.61 kB / 452.9 MB, free: 1.191 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.177e-05/0.298, allocations: 11.94 kB / 452.9 MB, free: 1.18 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.754e-06/0.298, allocations: 3.938 kB / 452.9 MB, free: 1.176 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.554e-06/0.2981, allocations: 4.078 kB / 452.9 MB, free: 1.172 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004733/0.3028, allocations: 1.98 MB / 454.9 MB, free: 15.02 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.319e-05/0.3028, allocations: 8 kB / 454.9 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007296/0.3035, allocations: 191.6 kB / 455.1 MB, free: 14.82 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.414e-05/0.3035, allocations: 12 kB / 455.1 MB, free: 14.81 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.258e-05/0.3036, allocations: 24 kB / 455.1 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.614e-05/0.3036, allocations: 19.92 kB / 455.1 MB, free: 14.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.434e-05/0.3036, allocations: 20.19 kB / 455.1 MB, free: 14.75 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003174/0.3068, allocations: 1.581 MB / 456.7 MB, free: 13.01 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002482/0.307, allocations: 103.6 kB / 456.8 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001015/0.3071, allocations: 31.98 kB / 456.9 MB, free: 12.88 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005629/0.3077, allocations: 75.98 kB / 456.9 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002161/0.3079, allocations: 99.62 kB / 457 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.694e-05/0.308, allocations: 36 kB / 457.1 MB, free: 12.67 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0002144/0.3082, allocations: 185.2 kB / 457.2 MB, free: 12.49 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3082, allocations: 0 / 457.2 MB, free: 12.49 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007013/0.3089, allocations: 128 kB / 457.4 MB, free: 12.36 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.003557/0.3125, allocations: 2.165 MB / 459.5 MB, free: 10.04 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002679/0.3151, allocations: 1.042 MB / 460.6 MB, free: 8.996 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.708e-06/0.3151, allocations: 3.938 kB / 460.6 MB, free: 8.992 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000943/0.3161, allocations: 338.6 kB / 460.9 MB, free: 8.664 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008898/0.317, allocations: 154.1 kB / 461.1 MB, free: 8.52 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01297/0.3299, allocations: 6.956 MB / 468 MB, free: 1.066 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002513/0.3302, allocations: 233.3 kB / 468.2 MB, free: 0.8164 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004687/0.3307, allocations: 92.09 kB / 468.3 MB, free: 0.7266 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003877/0.3311, allocations: 123.4 kB / 468.5 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of SimCode: time 6.32e-07/0.3311, allocations: 0 / 468.5 MB, free: 0.6094 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03613/0.3672, allocations: 12.89 MB / 481.3 MB, free: 3.941 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.15/11.52, allocations: 22.28 kB / 481.4 MB, free: 3.926 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_AbsoluteClocks.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 14.061149673070759]