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.001256/0.001256, allocations: 112.5 kB / 21.22 MB, free: 0.75 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.0014/0.0014, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.404/1.404, allocations: 230.6 MB / 258.3 MB, free: 8.035 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.001525/0.001525, allocations: 47.92 kB / 378.5 MB, free: 3.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2405/0.242, allocations: 53.37 MB / 431.9 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.AbsoluteClocks): time 0.004358/0.2463, allocations: 2.436 MB / 434.3 MB, free: 4.457 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001811/0.2481, allocations: 0.8767 MB / 435.2 MB, free: 3.574 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001833/0.2483, allocations: 11.88 kB / 435.2 MB, free: 3.562 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003163/0.2486, allocations: 51.56 kB / 435.3 MB, free: 3.512 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002408/0.2489, allocations: 75.48 kB / 435.4 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005946/0.2495, allocations: 199.5 kB / 435.6 MB, free: 3.242 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004808/0.25, allocations: 387.5 kB / 435.9 MB, free: 2.863 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001832/0.2501, allocations: 71.86 kB / 436 MB, free: 2.793 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003085/0.2505, allocations: 187.4 kB / 436.2 MB, free: 2.609 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002801/0.2507, allocations: 183.2 kB / 436.4 MB, free: 2.43 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.036e-05/0.2508, allocations: 36 kB / 436.4 MB, free: 2.395 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.261e-05/0.2508, allocations: 32 kB / 436.4 MB, free: 2.363 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001348/0.251, allocations: 111.6 kB / 436.5 MB, free: 2.254 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000159/0.2511, allocations: 167.1 kB / 436.7 MB, free: 2.09 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004867/0.2516, allocations: 370.8 kB / 437.1 MB, free: 1.73 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.91e-06/0.2516, allocations: 0 / 437.1 MB, free: 1.73 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.064e-06/0.2516, allocations: 0 / 437.1 MB, free: 1.73 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.066e-05/0.2516, allocations: 0 / 437.1 MB, free: 1.73 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.001358/0.253, allocations: 0.6064 MB / 437.7 MB, free: 1.09 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.797e-05/0.253, allocations: 12.03 kB / 437.7 MB, free: 1.078 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.15e-05/0.2531, allocations: 8.688 kB / 437.7 MB, free: 1.07 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.033e-05/0.2532, allocations: 70.72 kB / 437.8 MB, free: 0.9922 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.039e-05/0.2532, allocations: 44.7 kB / 437.8 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0005442/0.2538, allocations: 253.3 kB / 438.1 MB, free: 0.6758 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003566/0.2541, allocations: 351.9 kB / 438.4 MB, free: 272 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.739e-05/0.2542, allocations: 32.12 kB / 438.4 MB, free: 240 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001238/0.2554, allocations: 0.5699 MB / 439 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.608e-05/0.2555, allocations: 0 / 439 MB, free: 15.63 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.538e-05/0.2555, allocations: 12 kB / 439 MB, free: 15.62 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.468e-06/0.2555, allocations: 8 kB / 439 MB, free: 15.61 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001365/0.2569, allocations: 0.5112 MB / 439.5 MB, free: 15.1 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001622/0.2585, allocations: 0.9646 MB / 440.5 MB, free: 14.08 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001606/0.2601, allocations: 482.5 kB / 441 MB, free: 13.57 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006053/0.2607, allocations: 227.4 kB / 441.2 MB, free: 13.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.696e-05/0.2608, allocations: 15.92 kB / 441.2 MB, free: 13.32 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.585e-05/0.2608, allocations: 42.55 kB / 441.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.194e-06/0.2608, allocations: 0 / 441.2 MB, free: 13.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03764/0.2984, allocations: 5.776 MB / 447 MB, free: 7.48 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001502/0.2986, allocations: 148.9 kB / 447.2 MB, free: 7.305 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003274/0.2989, allocations: 257.9 kB / 447.4 MB, free: 7.047 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.743e-05/0.299, allocations: 41.7 kB / 447.5 MB, free: 7 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001234/0.2991, allocations: 149.7 kB / 447.6 MB, free: 6.848 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002256/0.2993, allocations: 198.3 kB / 447.8 MB, free: 6.652 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003145/0.2997, allocations: 114.6 kB / 447.9 MB, free: 6.531 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001534/0.2998, allocations: 350.8 kB / 448.2 MB, free: 6.18 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001607/0.3014, allocations: 0.6149 MB / 448.9 MB, free: 5.566 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001781/0.3032, allocations: 0.7963 MB / 449.7 MB, free: 4.695 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003168/0.3064, allocations: 1.255 MB / 450.9 MB, free: 3.359 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.3064, allocations: 0 / 450.9 MB, free: 3.359 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003636/0.31, allocations: 1.402 MB / 452.3 MB, free: 1.953 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.094e-05/0.31, allocations: 8 kB / 452.3 MB, free: 1.945 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.537e-05/0.3101, allocations: 8 kB / 452.3 MB, free: 1.938 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.824e-05/0.3101, allocations: 8 kB / 452.3 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001323/0.3114, allocations: 215.7 kB / 452.6 MB, free: 1.719 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.666e-05/0.3114, allocations: 8 kB / 452.6 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009036/0.3123, allocations: 95.78 kB / 452.7 MB, free: 1.617 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.514e-05/0.3124, allocations: 35.98 kB / 452.7 MB, free: 1.582 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.000364/0.3128, allocations: 197.5 kB / 452.9 MB, free: 1.379 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003235/0.3131, allocations: 165.6 kB / 453 MB, free: 1.211 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000185/0.3133, allocations: 71.61 kB / 453.1 MB, free: 1.141 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.337e-05/0.3133, allocations: 8 kB / 453.1 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.454e-06/0.3133, allocations: 0 / 453.1 MB, free: 1.133 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.516e-06/0.3133, allocations: 3.984 kB / 453.1 MB, free: 1.129 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004848/0.3182, allocations: 2.152 MB / 455.3 MB, free: 14.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.355e-05/0.3182, allocations: 8 kB / 455.3 MB, free: 14.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007591/0.3189, allocations: 187.7 kB / 455.5 MB, free: 14.61 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.854e-05/0.319, allocations: 16 kB / 455.5 MB, free: 14.59 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.612e-05/0.319, allocations: 27.98 kB / 455.5 MB, free: 14.56 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.751e-05/0.319, allocations: 15.94 kB / 455.5 MB, free: 14.55 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.248e-05/0.319, allocations: 15.94 kB / 455.5 MB, free: 14.53 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00328/0.3223, allocations: 1.565 MB / 457.1 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002517/0.3226, allocations: 107.6 kB / 457.2 MB, free: 12.71 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.66e-05/0.3227, allocations: 27.98 kB / 457.2 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005802/0.3232, allocations: 75.98 kB / 457.3 MB, free: 12.61 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002071/0.3234, allocations: 99.64 kB / 457.4 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 4.842e-05/0.3235, allocations: 28 kB / 457.4 MB, free: 12.48 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001926/0.3237, allocations: 189.1 kB / 457.6 MB, free: 12.29 MB / 366.1 MB Notification: Performance of sort global known variables: time 7.1e-08/0.3237, allocations: 0 / 457.6 MB, free: 12.29 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006595/0.3243, allocations: 124 kB / 457.7 MB, free: 12.17 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.003638/0.328, allocations: 2.137 MB / 459.9 MB, free: 9.883 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002916/0.3309, allocations: 1.033 MB / 460.9 MB, free: 8.844 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.542e-06/0.3309, allocations: 192 / 460.9 MB, free: 8.844 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001017/0.3319, allocations: 335.2 kB / 461.2 MB, free: 8.52 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009759/0.3329, allocations: 155.5 kB / 461.4 MB, free: 8.371 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01401/0.3469, allocations: 6.902 MB / 468.3 MB, free: 0.9727 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004868/0.3474, allocations: 0.8284 MB / 469.1 MB, free: 120 kB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004941/0.3479, allocations: 104 kB / 469.2 MB, free: 12 kB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004179/0.3483, allocations: 123.4 kB / 469.3 MB, free: 15.89 MB / 382.1 MB Notification: Performance of SimCode: time 7.91e-07/0.3483, allocations: 0 / 469.3 MB, free: 15.89 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03839/0.3867, allocations: 12.41 MB / 481.8 MB, free: 3.652 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.11/11.5, allocations: 11.28 kB / 481.8 MB, free: 3.645 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.168982384027913]