Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001579/0.001579, allocations: 120.2 kB / 18.5 MB, free: 4.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002048/0.002048, allocations: 222.2 kB / 21.46 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.654/1.654, allocations: 230.4 MB / 254.7 MB, free: 15.01 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002262/0.002262, allocations: 59.91 kB / 373.7 MB, free: 10.1 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1349/0.1372, allocations: 53.37 MB / 427 MB, free: 4.629 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.005704/0.1429, allocations: 2.374 MB / 429.4 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002474/0.1454, allocations: 0.8416 MB / 430.3 MB, free: 1.395 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003527/0.1457, allocations: 7.938 kB / 430.3 MB, free: 1.387 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004536/0.1462, allocations: 59.56 kB / 430.3 MB, free: 1.328 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003326/0.1465, allocations: 59.5 kB / 430.4 MB, free: 1.27 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007289/0.1472, allocations: 179.6 kB / 430.6 MB, free: 1.094 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.00058/0.1478, allocations: 379.6 kB / 430.9 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003148/0.1481, allocations: 75.83 kB / 431 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0004868/0.1486, allocations: 175.3 kB / 431.2 MB, free: 484 kB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000368/0.149, allocations: 183.3 kB / 431.4 MB, free: 300 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 8.078e-05/0.1491, allocations: 32 kB / 431.4 MB, free: 268 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 6.979e-05/0.1491, allocations: 36 kB / 431.4 MB, free: 232 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001551/0.1493, allocations: 103.7 kB / 431.5 MB, free: 128 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.277/0.4263, allocations: 147.2 kB / 431.7 MB, free: 8.027 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000648/0.4269, allocations: 334.1 kB / 432 MB, free: 8.012 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.232e-06/0.4269, allocations: 0 / 432 MB, free: 8.012 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.615e-06/0.4269, allocations: 2.625 kB / 432 MB, free: 8.012 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.897e-05/0.427, allocations: 1.031 kB / 432 MB, free: 8.012 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: 73 * Number of variables: 73 Notification: Performance of Generate backend data structure: time 0.001287/0.4282, allocations: 0.6182 MB / 432.6 MB, free: 7.582 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.514e-05/0.4283, allocations: 9.719 kB / 432.6 MB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.188e-05/0.4283, allocations: 10.25 kB / 432.6 MB, free: 7.582 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.716e-05/0.4284, allocations: 70.97 kB / 432.7 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.726e-05/0.4285, allocations: 44.64 kB / 432.7 MB, free: 7.523 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004442/0.4289, allocations: 273.6 kB / 433 MB, free: 7.309 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002214/0.4291, allocations: 137.4 kB / 433.1 MB, free: 7.215 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 8.139e-05/0.4292, allocations: 32.31 kB / 433.2 MB, free: 7.215 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001349/0.4306, allocations: 0.5664 MB / 433.7 MB, free: 7.117 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.216e-05/0.4306, allocations: 1.469 kB / 433.7 MB, free: 7.117 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.86e-05/0.4306, allocations: 12.81 kB / 433.8 MB, free: 7.117 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 2.139e-05/0.4306, allocations: 6.938 kB / 433.8 MB, free: 7.117 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0015/0.4321, allocations: 0.5061 MB / 434.3 MB, free: 7.117 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001744/0.4339, allocations: 1.014 MB / 435.3 MB, free: 6.562 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001715/0.4356, allocations: 486 kB / 435.8 MB, free: 6.469 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006373/0.4362, allocations: 235.1 kB / 436 MB, free: 6.438 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.262e-05/0.4363, allocations: 7.734 kB / 436 MB, free: 6.438 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.138e-05/0.4363, allocations: 43.19 kB / 436 MB, free: 6.398 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.214e-06/0.4363, allocations: 0 / 436 MB, free: 6.398 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03995/0.4763, allocations: 5.724 MB / 441.8 MB, free: 5.992 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.376e-05/0.4764, allocations: 150.1 kB / 441.9 MB, free: 5.828 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002305/0.4766, allocations: 196.6 kB / 442.1 MB, free: 5.695 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.943e-05/0.4767, allocations: 41.45 kB / 442.1 MB, free: 5.652 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.972e-05/0.4767, allocations: 142.5 kB / 442.3 MB, free: 5.523 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001881/0.4769, allocations: 200.5 kB / 442.5 MB, free: 5.371 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003175/0.4772, allocations: 114.3 kB / 442.6 MB, free: 5.305 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.606e-05/0.4773, allocations: 343.6 kB / 442.9 MB, free: 4.98 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001637/0.479, allocations: 0.6163 MB / 443.5 MB, free: 4.738 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001782/0.4807, allocations: 0.7996 MB / 444.3 MB, free: 4.27 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003171/0.4839, allocations: 1.247 MB / 445.6 MB, free: 3.617 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.363e-05/0.4839, allocations: 2.312 kB / 445.6 MB, free: 3.617 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.004451/0.4884, allocations: 1.397 MB / 447 MB, free: 3.066 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 5.149e-05/0.4884, allocations: 7.797 kB / 447 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.628e-05/0.4884, allocations: 5.469 kB / 447 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.725e-05/0.4885, allocations: 10.53 kB / 447 MB, free: 3.066 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001504/0.49, allocations: 211.6 kB / 447.2 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.249e-05/0.49, allocations: 13.97 kB / 447.2 MB, free: 3.059 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00101/0.491, allocations: 106.6 kB / 447.3 MB, free: 3.035 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.377e-05/0.4911, allocations: 29 kB / 447.4 MB, free: 3.031 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.0004196/0.4915, allocations: 185.5 kB / 447.5 MB, free: 2.875 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003971/0.4919, allocations: 166.4 kB / 447.7 MB, free: 2.793 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001969/0.4921, allocations: 57.34 kB / 447.8 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.259e-05/0.4922, allocations: 12.08 kB / 447.8 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.882e-05/0.4922, allocations: 3.125 kB / 447.8 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.167e-06/0.4922, allocations: 0.625 kB / 447.8 MB, free: 2.738 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00507/0.4972, allocations: 2.165 MB / 449.9 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.285e-05/0.4973, allocations: 9.688 kB / 449.9 MB, free: 1.645 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008633/0.4981, allocations: 194.5 kB / 450.1 MB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.413e-05/0.4982, allocations: 16.53 kB / 450.2 MB, free: 1.621 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.35e-05/0.4982, allocations: 23.5 kB / 450.2 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.527e-05/0.4982, allocations: 20.31 kB / 450.2 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.89e-05/0.4983, allocations: 14.44 kB / 450.2 MB, free: 1.613 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003371/0.5016, allocations: 1.569 MB / 451.8 MB, free: 496 kB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002703/0.5019, allocations: 158.8 kB / 451.9 MB, free: 344 kB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.844e-05/0.502, allocations: 27.83 kB / 452 MB, free: 332 kB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006034/0.5026, allocations: 81.36 kB / 452 MB, free: 296 kB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002222/0.5028, allocations: 97.5 kB / 452.1 MB, free: 240 kB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.527e-05/0.5029, allocations: 30.5 kB / 452.2 MB, free: 236 kB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001376/0.503, allocations: 145.3 kB / 452.3 MB, free: 124 kB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.503, allocations: 0.7812 kB / 452.3 MB, free: 124 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0008746/0.5039, allocations: 121.9 kB / 452.4 MB, free: 104 kB / 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: 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.004081/0.508, allocations: 2.117 MB / 454.5 MB, free: 14.44 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003441/0.5114, allocations: 1.029 MB / 455.6 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.138e-05/0.5114, allocations: 7.562 kB / 455.6 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001229/0.5127, allocations: 328.6 kB / 455.9 MB, free: 13.79 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001197/0.5139, allocations: 142.2 kB / 456 MB, free: 13.72 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01677/0.5306, allocations: 6.791 MB / 462.8 MB, free: 8.629 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006061/0.5312, allocations: 0.8096 MB / 463.6 MB, free: 7.883 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0006199/0.5318, allocations: 97.91 kB / 463.7 MB, free: 7.836 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004223/0.5323, allocations: 116.1 kB / 463.9 MB, free: 7.75 MB / 366.1 MB Notification: Performance of SimCode: time 1.263e-06/0.5323, allocations: 2.516 kB / 463.9 MB, free: 7.75 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03417/0.5664, allocations: 11.38 MB / 475.2 MB, free: 14.7 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.592/10.16, allocations: 15.98 kB / 475.3 MB, free: 14.68 MB / 382.1 MB " [Timeout remaining time 650] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_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.320446863945108]