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.0008405/0.0008405, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.001017/0.001017, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9034/0.9034, allocations: 177 MB / 204.1 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.392e-06/1.392e-06, allocations: 0 / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 2.032e-05/2.171e-05, allocations: 3.125 kB / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002691/0.002713, allocations: 2.278 MB / 326.8 MB, free: 13.62 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001088/0.003801, allocations: 0.8025 MB / 327.6 MB, free: 12.81 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001212/0.003922, allocations: 7.938 kB / 327.6 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002746/0.004197, allocations: 51.56 kB / 327.6 MB, free: 12.75 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001798/0.004376, allocations: 67.5 kB / 327.7 MB, free: 12.69 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003794/0.004756, allocations: 179.4 kB / 327.9 MB, free: 12.51 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.000505/0.005261, allocations: 387.5 kB / 328.3 MB, free: 12.13 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001681/0.005429, allocations: 76.33 kB / 328.3 MB, free: 12.06 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003202/0.005749, allocations: 231.5 kB / 328.6 MB, free: 11.84 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001692/0.005918, allocations: 147.6 kB / 328.7 MB, free: 11.69 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 4.228e-05/0.00596, allocations: 36 kB / 328.7 MB, free: 11.66 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.303e-05/0.005993, allocations: 36 kB / 328.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.851e-05/0.006082, allocations: 95.7 kB / 328.9 MB, free: 11.53 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 9.247e-05/0.006174, allocations: 111.7 kB / 329 MB, free: 11.42 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003321/0.006507, allocations: 358.8 kB / 329.3 MB, free: 11.07 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.857e-06/0.00651, allocations: 0 / 329.3 MB, free: 11.07 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.094e-06/0.006513, allocations: 0 / 329.3 MB, free: 11.07 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.522e-06/0.006519, allocations: 0 / 329.3 MB, free: 11.07 MB / 298.7 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.0008305/0.00735, allocations: 0.5522 MB / 329.9 MB, free: 10.48 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.363e-05/0.007393, allocations: 15.97 kB / 329.9 MB, free: 10.47 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.484e-05/0.007448, allocations: 66.73 kB / 330 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.702e-05/0.007505, allocations: 44.7 kB / 330 MB, free: 10.35 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003199/0.007825, allocations: 225.7 kB / 330.2 MB, free: 10.11 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0002053/0.00803, allocations: 343.9 kB / 330.6 MB, free: 9.699 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.376e-05/0.008074, allocations: 32.38 kB / 330.6 MB, free: 9.668 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008248/0.008899, allocations: 0.5741 MB / 331.2 MB, free: 9.066 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.099e-05/0.00892, allocations: 192 / 331.2 MB, free: 9.066 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.757e-05/0.008947, allocations: 15.94 kB / 331.2 MB, free: 9.051 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.255e-06/0.008956, allocations: 8 kB / 331.2 MB, free: 9.043 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008065/0.009762, allocations: 0.5229 MB / 331.7 MB, free: 8.52 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009557/0.01072, allocations: 0.8713 MB / 332.6 MB, free: 7.582 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008659/0.01158, allocations: 478.4 kB / 333 MB, free: 7.078 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003678/0.01195, allocations: 255.2 kB / 333.3 MB, free: 6.816 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.876e-05/0.01199, allocations: 7.984 kB / 333.3 MB, free: 6.809 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.272e-05/0.01201, allocations: 38.56 kB / 333.3 MB, free: 6.762 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.863e-06/0.01201, allocations: 0 / 333.3 MB, free: 6.762 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.01843/0.03045, allocations: 5.748 MB / 339.1 MB, free: 1 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.893e-05/0.03054, allocations: 145 kB / 339.2 MB, free: 0.8281 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001908/0.03074, allocations: 216.6 kB / 339.4 MB, free: 0.6055 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.292e-05/0.03079, allocations: 33.7 kB / 339.5 MB, free: 0.5664 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 8.167e-05/0.03087, allocations: 145.8 kB / 339.6 MB, free: 432 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001365/0.03101, allocations: 194.3 kB / 339.8 MB, free: 236 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000179/0.03119, allocations: 90.34 kB / 339.9 MB, free: 140 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 0.0001197/0.03131, allocations: 346.7 kB / 340.2 MB, free: 15.79 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009253/0.03223, allocations: 0.6103 MB / 340.8 MB, free: 15.18 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000941/0.03317, allocations: 0.6898 MB / 341.5 MB, free: 14.46 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001866/0.03504, allocations: 1.118 MB / 342.6 MB, free: 13.31 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.09e-06/0.03504, allocations: 4 kB / 342.7 MB, free: 13.31 MB / 314.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001923/0.03697, allocations: 1.294 MB / 343.9 MB, free: 12.01 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.592e-05/0.03699, allocations: 8 kB / 344 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.818e-06/0.037, allocations: 4 kB / 344 MB, free: 12 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.205e-05/0.03702, allocations: 7.984 kB / 344 MB, free: 11.99 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0005909/0.03761, allocations: 179.8 kB / 344.1 MB, free: 11.81 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.558e-06/0.03762, allocations: 4 kB / 344.1 MB, free: 11.81 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004155/0.03804, allocations: 87.88 kB / 344.2 MB, free: 11.72 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.003e-05/0.03809, allocations: 23.94 kB / 344.3 MB, free: 11.7 MB / 314.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * 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 (67): * Single equations (assignments): 67 * 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.0002887/0.03838, allocations: 169.7 kB / 344.4 MB, free: 11.52 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002261/0.0386, allocations: 161.7 kB / 344.6 MB, free: 11.36 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001078/0.03871, allocations: 63.3 kB / 344.6 MB, free: 11.29 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.134e-06/0.03872, allocations: 15.94 kB / 344.7 MB, free: 11.28 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.174e-05/0.03873, allocations: 4.234 kB / 344.7 MB, free: 11.27 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.511e-06/0.03874, allocations: 3.984 kB / 344.7 MB, free: 11.27 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002749/0.04149, allocations: 1.96 MB / 346.6 MB, free: 9.133 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.524e-06/0.04149, allocations: 12 kB / 346.6 MB, free: 9.121 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003882/0.04188, allocations: 184.4 kB / 346.8 MB, free: 8.941 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.169e-05/0.04189, allocations: 20 kB / 346.8 MB, free: 8.922 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.94e-05/0.04193, allocations: 20 kB / 346.9 MB, free: 8.902 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.211e-05/0.04194, allocations: 27.86 kB / 346.9 MB, free: 8.875 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.938e-06/0.04195, allocations: 15.94 kB / 346.9 MB, free: 8.859 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001906/0.04386, allocations: 1.55 MB / 348.4 MB, free: 7.156 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001367/0.044, allocations: 91.64 kB / 348.5 MB, free: 7.066 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.37e-05/0.04404, allocations: 32.05 kB / 348.6 MB, free: 7.035 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002904/0.04433, allocations: 75.86 kB / 348.6 MB, free: 6.961 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001466/0.04448, allocations: 103.6 kB / 348.7 MB, free: 6.859 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.991e-05/0.04451, allocations: 31.98 kB / 348.8 MB, free: 6.828 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.508e-05/0.0446, allocations: 144.1 kB / 348.9 MB, free: 6.688 MB / 314.7 MB Notification: Performance of sort global known variables: time 4e-08/0.0446, allocations: 0 / 348.9 MB, free: 6.688 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004177/0.04502, allocations: 116 kB / 349 MB, free: 6.574 MB / 314.7 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.002176/0.0472, allocations: 2.122 MB / 351.2 MB, free: 4.297 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001569/0.04877, allocations: 1.003 MB / 352.2 MB, free: 3.289 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 4.98e-06/0.04877, allocations: 7.938 kB / 352.2 MB, free: 3.281 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005611/0.04933, allocations: 345.5 kB / 352.5 MB, free: 2.945 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006704/0.05, allocations: 135.8 kB / 352.6 MB, free: 2.82 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007665/0.05767, allocations: 6.394 MB / 359 MB, free: 12.03 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001742/0.05784, allocations: 211.3 kB / 359.2 MB, free: 11.79 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003232/0.05816, allocations: 91.17 kB / 359.3 MB, free: 11.7 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002765/0.05844, allocations: 116.5 kB / 359.4 MB, free: 11.59 MB / 330.7 MB Notification: Performance of SimCode: time 2.174e-06/0.05844, allocations: 0 / 359.4 MB, free: 11.59 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02581/0.08425, allocations: 12.55 MB / 372 MB, free: 15.2 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.991/7.076, allocations: 19.08 kB / 372 MB, free: 15.18 MB / 346.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins/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: 8.859783279709518]