Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.00121/0.00121, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.001365/0.001365, allocations: 188.3 kB / 24.49 MB, free: 3.945 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.346/1.346, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.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.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001533/0.001533, allocations: 43.92 kB / 371.2 MB, free: 9.695 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2381/0.2396, allocations: 52.18 MB / 423.3 MB, free: 14.4 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003774/0.2434, allocations: 2.26 MB / 425.6 MB, free: 12.12 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001612/0.245, allocations: 0.76 MB / 426.4 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001756/0.2452, allocations: 11.88 kB / 426.4 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003202/0.2455, allocations: 51.58 kB / 426.4 MB, free: 11.3 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000228/0.2457, allocations: 63.48 kB / 426.5 MB, free: 11.23 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000541/0.2463, allocations: 183.6 kB / 426.7 MB, free: 11.05 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004688/0.2467, allocations: 379.6 kB / 427 MB, free: 10.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001847/0.2469, allocations: 82.45 kB / 427.1 MB, free: 10.61 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002351/0.2472, allocations: 163.4 kB / 427.3 MB, free: 10.45 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002491/0.2474, allocations: 183.3 kB / 427.4 MB, free: 10.27 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.744e-05/0.2475, allocations: 36 kB / 427.5 MB, free: 10.23 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.681e-05/0.2475, allocations: 36 kB / 427.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001177/0.2476, allocations: 99.72 kB / 427.6 MB, free: 10.1 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001374/0.2478, allocations: 123.4 kB / 427.7 MB, free: 9.977 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004279/0.2482, allocations: 350.5 kB / 428.1 MB, free: 9.633 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.639e-06/0.2482, allocations: 0 / 428.1 MB, free: 9.633 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.422e-06/0.2482, allocations: 0 / 428.1 MB, free: 9.633 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.47e-06/0.2482, allocations: 0 / 428.1 MB, free: 9.633 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001271/0.2495, allocations: 0.5591 MB / 428.6 MB, free: 9.047 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.471e-05/0.2495, allocations: 8.031 kB / 428.6 MB, free: 9.039 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.935e-05/0.2496, allocations: 8.688 kB / 428.7 MB, free: 9.031 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.595e-05/0.2496, allocations: 74.66 kB / 428.7 MB, free: 8.949 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.42e-05/0.2497, allocations: 36.75 kB / 428.8 MB, free: 8.914 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004503/0.2502, allocations: 226.4 kB / 429 MB, free: 8.668 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003173/0.2505, allocations: 355.8 kB / 429.3 MB, free: 8.25 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.075e-05/0.2506, allocations: 32.12 kB / 429.4 MB, free: 8.219 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001209/0.2518, allocations: 0.5582 MB / 429.9 MB, free: 7.637 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.917e-05/0.2518, allocations: 7.953 kB / 429.9 MB, free: 7.629 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.395e-05/0.2518, allocations: 8 kB / 429.9 MB, free: 7.621 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.194e-05/0.2518, allocations: 11.94 kB / 429.9 MB, free: 7.609 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001382/0.2532, allocations: 0.5191 MB / 430.5 MB, free: 7.09 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001476/0.2547, allocations: 0.883 MB / 431.4 MB, free: 6.141 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001428/0.2561, allocations: 466.5 kB / 431.8 MB, free: 5.648 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006328/0.2567, allocations: 243.4 kB / 432 MB, free: 5.398 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.579e-05/0.2568, allocations: 12.39 kB / 432.1 MB, free: 5.387 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.159e-05/0.2568, allocations: 46.44 kB / 432.1 MB, free: 5.332 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 2.054e-06/0.2568, allocations: 0 / 432.1 MB, free: 5.332 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.03796/0.2948, allocations: 5.745 MB / 437.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001087/0.2949, allocations: 152.8 kB / 438 MB, free: 15.39 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002227/0.2951, allocations: 208.3 kB / 438.2 MB, free: 15.18 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.692e-05/0.2952, allocations: 37.7 kB / 438.2 MB, free: 15.14 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001004/0.2953, allocations: 141.8 kB / 438.4 MB, free: 14.99 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000206/0.2955, allocations: 214.2 kB / 438.6 MB, free: 14.79 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002972/0.2958, allocations: 106.7 kB / 438.7 MB, free: 14.68 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001545/0.296, allocations: 342.8 kB / 439 MB, free: 14.33 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001544/0.2975, allocations: 0.6188 MB / 439.6 MB, free: 13.71 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001695/0.2992, allocations: 0.812 MB / 440.5 MB, free: 12.82 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002913/0.3021, allocations: 1.252 MB / 441.7 MB, free: 11.49 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.767e-06/0.3021, allocations: 0 / 441.7 MB, free: 11.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003432/0.3055, allocations: 1.419 MB / 443.1 MB, free: 10.07 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.914e-05/0.3056, allocations: 4 kB / 443.1 MB, free: 10.06 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.308e-05/0.3056, allocations: 8 kB / 443.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.102e-05/0.3056, allocations: 8 kB / 443.1 MB, free: 10.05 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001282/0.3069, allocations: 211.6 kB / 443.4 MB, free: 9.84 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.893e-05/0.3069, allocations: 19.92 kB / 443.4 MB, free: 9.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0008864/0.3078, allocations: 99.81 kB / 443.5 MB, free: 9.723 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.855e-05/0.3079, allocations: 31.98 kB / 443.5 MB, free: 9.691 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.0003089/0.3082, allocations: 177.6 kB / 443.7 MB, free: 9.508 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003005/0.3085, allocations: 157.7 kB / 443.8 MB, free: 9.348 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001523/0.3086, allocations: 67.3 kB / 443.9 MB, free: 9.285 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 9.447e-06/0.3086, allocations: 12.03 kB / 443.9 MB, free: 9.273 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.402e-06/0.3086, allocations: 3.938 kB / 443.9 MB, free: 9.27 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.434e-06/0.3087, allocations: 3.984 kB / 443.9 MB, free: 9.266 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004591/0.3132, allocations: 1.969 MB / 445.9 MB, free: 7.117 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.275e-05/0.3133, allocations: 8 kB / 445.9 MB, free: 7.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007416/0.314, allocations: 179.7 kB / 446.1 MB, free: 6.934 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.619e-05/0.314, allocations: 16 kB / 446.1 MB, free: 6.918 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.736e-05/0.3141, allocations: 39.91 kB / 446.1 MB, free: 6.879 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.115e-05/0.3141, allocations: 15.94 kB / 446.1 MB, free: 6.863 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.149e-05/0.3141, allocations: 20.16 kB / 446.2 MB, free: 6.844 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003144/0.3172, allocations: 1.566 MB / 447.7 MB, free: 5.133 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002254/0.3175, allocations: 99.56 kB / 447.8 MB, free: 5.035 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.862e-05/0.3176, allocations: 24 kB / 447.8 MB, free: 5.012 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005846/0.3181, allocations: 87.91 kB / 447.9 MB, free: 4.926 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002158/0.3184, allocations: 95.64 kB / 448 MB, free: 4.832 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.642e-05/0.3184, allocations: 28 kB / 448 MB, free: 4.805 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001474/0.3186, allocations: 157.1 kB / 448.2 MB, free: 4.652 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3186, allocations: 0 / 448.2 MB, free: 4.652 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006756/0.3192, allocations: 120 kB / 448.3 MB, free: 4.535 MB / 350.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.003602/0.3228, allocations: 2.149 MB / 450.5 MB, free: 2.223 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.002766/0.3256, allocations: 1.038 MB / 451.5 MB, free: 1.184 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.191e-05/0.3256, allocations: 4.094 kB / 451.5 MB, free: 1.18 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001006/0.3266, allocations: 342.4 kB / 451.8 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009352/0.3276, allocations: 132.3 kB / 452 MB, free: 0.7188 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01317/0.3407, allocations: 6.839 MB / 458.8 MB, free: 9.387 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002369/0.341, allocations: 207.3 kB / 459 MB, free: 9.164 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004841/0.3414, allocations: 95.3 kB / 459.1 MB, free: 9.07 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004044/0.3418, allocations: 119.4 kB / 459.2 MB, free: 8.953 MB / 366.1 MB Notification: Performance of SimCode: time 7.81e-07/0.3419, allocations: 0 / 459.2 MB, free: 8.953 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03592/0.3778, allocations: 12.52 MB / 471.7 MB, free: 12.64 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.03/11.41, allocations: 4 kB / 471.7 MB, free: 12.64 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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),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,periodicRealClock.period,periodicRealClock.useSolver,previous(PI.x),sample1.u,sample1.y,sample2.u,sample2.y,sample3.u,sample3.y,speed.flange.phi,speed.flange.tau,speed.w,subSample1.factor,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: 13.989211407024413]