Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.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.000799/0.000799, allocations: 79.69 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008009/0.0008009, allocations: 170 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.8669/0.8669, allocations: 177.1 MB / 204.3 MB, free: 5.719 MB / 186.7 MB " [Timeout remaining time 179] 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.SubClocked,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.372e-06/1.372e-06, allocations: 0 / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.92e-05/2.057e-05, allocations: 2.281 kB / 324.5 MB, free: 15.96 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002935/0.002956, allocations: 2.277 MB / 326.8 MB, free: 13.67 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001301/0.004256, allocations: 0.8025 MB / 327.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000144/0.0044, allocations: 4 kB / 327.6 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002815/0.004682, allocations: 59.56 kB / 327.7 MB, free: 12.8 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001737/0.004856, allocations: 63.38 kB / 327.7 MB, free: 12.73 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003978/0.005253, allocations: 186.9 kB / 327.9 MB, free: 12.55 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003069/0.00556, allocations: 395.4 kB / 328.3 MB, free: 12.17 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003886/0.005949, allocations: 68.33 kB / 328.4 MB, free: 12.11 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003522/0.006301, allocations: 231.5 kB / 328.6 MB, free: 11.88 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001735/0.006475, allocations: 143.6 kB / 328.7 MB, free: 11.74 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.975e-05/0.006514, allocations: 36 kB / 328.8 MB, free: 11.7 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.329e-05/0.006548, allocations: 36 kB / 328.8 MB, free: 11.67 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.554e-05/0.006633, allocations: 103.7 kB / 328.9 MB, free: 11.57 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 8.16e-05/0.006715, allocations: 107.6 kB / 329 MB, free: 11.46 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0002938/0.007009, allocations: 358.9 kB / 329.4 MB, free: 11.11 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.374e-06/0.007011, allocations: 4 kB / 329.4 MB, free: 11.11 MB / 298.7 MB Notification: Performance of FrontEnd: time 4.027e-06/0.007015, allocations: 3.984 kB / 329.4 MB, free: 11.1 MB / 298.7 MB Notification: Performance of Transformations before backend: time 6.182e-06/0.007021, allocations: 0 / 329.4 MB, free: 11.1 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.000792/0.007813, allocations: 0.5553 MB / 329.9 MB, free: 10.52 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.608e-05/0.007849, allocations: 12.03 kB / 329.9 MB, free: 10.51 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.407e-05/0.007903, allocations: 70.73 kB / 330 MB, free: 10.43 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.127e-05/0.007955, allocations: 44.69 kB / 330.1 MB, free: 10.39 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002791/0.008234, allocations: 205.8 kB / 330.3 MB, free: 10.16 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001964/0.00843, allocations: 351.9 kB / 330.6 MB, free: 9.746 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.263e-05/0.008473, allocations: 28.38 kB / 330.6 MB, free: 9.719 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007458/0.009218, allocations: 0.5786 MB / 331.2 MB, free: 9.113 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.613e-05/0.009235, allocations: 4.188 kB / 331.2 MB, free: 9.109 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.467e-05/0.009259, allocations: 15.88 kB / 331.2 MB, free: 9.094 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.554e-06/0.009267, allocations: 8 kB / 331.2 MB, free: 9.086 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00078/0.01005, allocations: 0.5152 MB / 331.8 MB, free: 8.57 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008915/0.01094, allocations: 0.8758 MB / 332.6 MB, free: 7.629 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000815/0.01175, allocations: 474.5 kB / 333.1 MB, free: 7.129 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000358/0.01211, allocations: 244.5 kB / 333.3 MB, free: 6.879 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.255e-05/0.01214, allocations: 7.938 kB / 333.3 MB, free: 6.871 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.116e-05/0.01216, allocations: 42.5 kB / 333.4 MB, free: 6.82 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.553e-06/0.01217, allocations: 4 kB / 333.4 MB, free: 6.816 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.01868/0.03085, allocations: 5.752 MB / 339.1 MB, free: 1.055 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.928e-05/0.03093, allocations: 152.9 kB / 339.3 MB, free: 0.875 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001576/0.03108, allocations: 212.3 kB / 339.5 MB, free: 0.6562 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.748e-05/0.03114, allocations: 41.7 kB / 339.5 MB, free: 0.6094 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.348e-05/0.03121, allocations: 137.8 kB / 339.7 MB, free: 484 kB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001387/0.03134, allocations: 198.3 kB / 339.9 MB, free: 284 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001833/0.03153, allocations: 90.34 kB / 340 MB, free: 188 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.148e-05/0.03162, allocations: 346.7 kB / 340.3 MB, free: 15.84 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009206/0.03254, allocations: 0.6064 MB / 340.9 MB, free: 15.23 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009523/0.03349, allocations: 0.6859 MB / 341.6 MB, free: 14.51 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001828/0.03532, allocations: 1.118 MB / 342.7 MB, free: 13.36 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.696e-06/0.03532, allocations: 4 kB / 342.7 MB, free: 13.36 MB / 314.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.002005/0.03733, allocations: 1.298 MB / 344 MB, free: 12.06 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.607e-05/0.03734, allocations: 7.938 kB / 344 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.405e-06/0.03735, allocations: 4 kB / 344 MB, free: 12.05 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.587e-05/0.03737, allocations: 4 kB / 344 MB, free: 12.04 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006709/0.03804, allocations: 175.8 kB / 344.2 MB, free: 11.87 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.648e-06/0.03805, allocations: 7.938 kB / 344.2 MB, free: 11.86 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0004032/0.03845, allocations: 95.88 kB / 344.3 MB, free: 11.77 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.337e-05/0.03849, allocations: 19.94 kB / 344.3 MB, free: 11.75 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.0001934/0.03869, allocations: 169.7 kB / 344.5 MB, free: 11.57 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000182/0.03887, allocations: 157.7 kB / 344.6 MB, free: 11.41 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.681e-05/0.03896, allocations: 67.3 kB / 344.7 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.32e-06/0.03896, allocations: 8 kB / 344.7 MB, free: 11.34 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.612e-06/0.03897, allocations: 4 kB / 344.7 MB, free: 11.33 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.03897, allocations: 3.984 kB / 344.7 MB, free: 11.33 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002623/0.0416, allocations: 1.965 MB / 346.7 MB, free: 9.188 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.883e-06/0.0416, allocations: 8.234 kB / 346.7 MB, free: 9.18 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003722/0.04198, allocations: 191.8 kB / 346.9 MB, free: 8.992 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.208e-06/0.04199, allocations: 12 kB / 346.9 MB, free: 8.98 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.023e-05/0.04202, allocations: 24 kB / 346.9 MB, free: 8.957 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.016e-05/0.04203, allocations: 27.8 kB / 346.9 MB, free: 8.93 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.805e-06/0.04203, allocations: 19.92 kB / 347 MB, free: 8.91 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001856/0.04389, allocations: 1.554 MB / 348.5 MB, free: 7.203 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001274/0.04402, allocations: 87.64 kB / 348.6 MB, free: 7.117 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.171e-05/0.04406, allocations: 31.92 kB / 348.6 MB, free: 7.086 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000314/0.04437, allocations: 79.86 kB / 348.7 MB, free: 7.008 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001357/0.04451, allocations: 99.62 kB / 348.8 MB, free: 6.91 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.802e-05/0.04454, allocations: 32 kB / 348.8 MB, free: 6.879 MB / 314.7 MB Notification: Performance of sorting global known variables: time 8.329e-05/0.04462, allocations: 149.2 kB / 349 MB, free: 6.734 MB / 314.7 MB Notification: Performance of sort global known variables: time 6e-08/0.04462, allocations: 4 kB / 349 MB, free: 6.73 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0003817/0.045, allocations: 116 kB / 349.1 MB, free: 6.617 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.002103/0.0471, allocations: 2.129 MB / 351.2 MB, free: 4.336 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001493/0.0486, allocations: 0.9949 MB / 352.2 MB, free: 3.332 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 3.507e-06/0.0486, allocations: 0 / 352.2 MB, free: 3.332 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005254/0.04913, allocations: 350.1 kB / 352.6 MB, free: 2.992 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005678/0.04969, allocations: 124.5 kB / 352.7 MB, free: 2.871 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007312/0.05701, allocations: 6.409 MB / 359.1 MB, free: 12.07 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001451/0.05715, allocations: 199.3 kB / 359.3 MB, free: 11.84 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0002691/0.05742, allocations: 95.17 kB / 359.4 MB, free: 11.75 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.000246/0.05767, allocations: 120.5 kB / 359.5 MB, free: 11.63 MB / 330.7 MB Notification: Performance of SimCode: time 7.41e-07/0.05767, allocations: 0 / 359.5 MB, free: 11.63 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02197/0.07963, allocations: 12.54 MB / 372 MB, free: 15.27 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.925/7.004, allocations: 1.688 kB / 372 MB, free: 15.27 MB / 346.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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: 8.696151209063828]