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.001592/0.001592, allocations: 113 kB / 18.49 MB, free: 4.539 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.002451/0.002451, allocations: 217.4 kB / 21.46 MB, free: 1.586 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.515/1.515, allocations: 230.6 MB / 254.8 MB, free: 15.09 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.SubClocked,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001455/0.001455, allocations: 47.92 kB / 373.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1128/0.1142, allocations: 53.33 MB / 427 MB, free: 4.797 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004231/0.1184, allocations: 2.368 MB / 429.4 MB, free: 2.41 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001806/0.1202, allocations: 0.8416 MB / 430.2 MB, free: 1.562 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001874/0.1204, allocations: 15.88 kB / 430.2 MB, free: 1.547 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003097/0.1207, allocations: 55.56 kB / 430.3 MB, free: 1.492 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000217/0.121, allocations: 59.56 kB / 430.3 MB, free: 1.434 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005549/0.1215, allocations: 179.6 kB / 430.5 MB, free: 1.258 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004424/0.122, allocations: 379.6 kB / 430.9 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002127/0.1222, allocations: 75.84 kB / 431 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000332/0.1225, allocations: 167.5 kB / 431.1 MB, free: 0.6445 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000269/0.1228, allocations: 179.2 kB / 431.3 MB, free: 480 kB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 6.03e-05/0.1228, allocations: 40 kB / 431.3 MB, free: 440 kB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.735e-05/0.1229, allocations: 32 kB / 431.4 MB, free: 408 kB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001254/0.123, allocations: 99.7 kB / 431.5 MB, free: 308 kB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001634/0.1232, allocations: 151.2 kB / 431.6 MB, free: 156 kB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.2575/0.3807, allocations: 332.5 kB / 431.9 MB, free: 8.336 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.586e-06/0.3807, allocations: 0 / 431.9 MB, free: 8.336 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.136e-06/0.3807, allocations: 0.6562 kB / 431.9 MB, free: 8.336 MB / 350.1 MB Notification: Performance of Transformations before backend: time 2.451e-05/0.3807, allocations: 0 / 431.9 MB, free: 8.336 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.00137/0.3821, allocations: 0.6238 MB / 432.6 MB, free: 7.906 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.945e-05/0.3821, allocations: 10.69 kB / 432.6 MB, free: 7.906 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.085e-05/0.3821, allocations: 8.094 kB / 432.6 MB, free: 7.906 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.892e-05/0.3822, allocations: 71.98 kB / 432.7 MB, free: 7.867 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.494e-05/0.3823, allocations: 42.23 kB / 432.7 MB, free: 7.848 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000419/0.3827, allocations: 279.3 kB / 433 MB, free: 7.633 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001976/0.3829, allocations: 137.8 kB / 433.1 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.282e-05/0.383, allocations: 29 kB / 433.1 MB, free: 7.539 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001214/0.3842, allocations: 0.5668 MB / 433.7 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.024e-05/0.3842, allocations: 0.625 kB / 433.7 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.618e-05/0.3843, allocations: 15.06 kB / 433.7 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.67e-05/0.3843, allocations: 10.59 kB / 433.7 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001292/0.3856, allocations: 0.5053 MB / 434.2 MB, free: 7.438 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001327/0.3869, allocations: 1.015 MB / 435.2 MB, free: 6.883 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001674/0.3886, allocations: 482.5 kB / 435.7 MB, free: 6.789 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006561/0.3892, allocations: 232.5 kB / 435.9 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.476e-05/0.3893, allocations: 15.8 kB / 436 MB, free: 6.758 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.736e-05/0.3893, allocations: 43.88 kB / 436 MB, free: 6.719 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.124e-06/0.3893, allocations: 0 / 436 MB, free: 6.719 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.04093/0.4302, allocations: 5.723 MB / 441.7 MB, free: 6.332 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.671e-05/0.4303, allocations: 154.4 kB / 441.9 MB, free: 6.164 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002256/0.4305, allocations: 196 kB / 442.1 MB, free: 6.031 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.389e-05/0.4306, allocations: 39.95 kB / 442.1 MB, free: 5.988 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.255e-05/0.4307, allocations: 142.3 kB / 442.2 MB, free: 5.859 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001738/0.4309, allocations: 201 kB / 442.4 MB, free: 5.707 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0002922/0.4312, allocations: 113.1 kB / 442.5 MB, free: 5.641 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.408e-05/0.4312, allocations: 340.8 kB / 442.9 MB, free: 5.316 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001563/0.4328, allocations: 0.617 MB / 443.5 MB, free: 5.074 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001634/0.4344, allocations: 0.7997 MB / 444.3 MB, free: 4.609 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002906/0.4373, allocations: 1.249 MB / 445.5 MB, free: 3.957 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.639e-06/0.4373, allocations: 2.344 kB / 445.5 MB, free: 3.957 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003654/0.441, allocations: 1.395 MB / 446.9 MB, free: 3.406 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.797e-05/0.441, allocations: 11.62 kB / 447 MB, free: 3.406 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.519e-05/0.441, allocations: 9.156 kB / 447 MB, free: 3.402 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.085e-05/0.4411, allocations: 11.42 kB / 447 MB, free: 3.402 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001375/0.4424, allocations: 203.6 kB / 447.2 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.148e-05/0.4425, allocations: 14.78 kB / 447.2 MB, free: 3.398 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009534/0.4434, allocations: 110.3 kB / 447.3 MB, free: 3.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.148e-05/0.4435, allocations: 27.44 kB / 447.3 MB, free: 3.367 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.0003128/0.4438, allocations: 180.8 kB / 447.5 MB, free: 3.215 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003146/0.4441, allocations: 161.1 kB / 447.7 MB, free: 3.133 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001745/0.4443, allocations: 60.73 kB / 447.7 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.14e-05/0.4443, allocations: 11.72 kB / 447.7 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.567e-05/0.4443, allocations: 3.891 kB / 447.7 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.787e-06/0.4443, allocations: 4.859 kB / 447.7 MB, free: 3.078 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00435/0.4487, allocations: 2.17 MB / 449.9 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.636e-05/0.4487, allocations: 9.906 kB / 449.9 MB, free: 1.98 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007505/0.4494, allocations: 186.7 kB / 450.1 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.845e-05/0.4495, allocations: 17.98 kB / 450.1 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.131e-05/0.4495, allocations: 24.78 kB / 450.1 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.762e-05/0.4495, allocations: 20.97 kB / 450.2 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.137e-05/0.4495, allocations: 13.78 kB / 450.2 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.002969/0.4525, allocations: 1.568 MB / 451.7 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001899/0.4527, allocations: 162.6 kB / 451.9 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.348e-05/0.4528, allocations: 26.12 kB / 451.9 MB, free: 0.6797 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005682/0.4533, allocations: 84.06 kB / 452 MB, free: 0.6406 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001968/0.4535, allocations: 89.8 kB / 452.1 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.234e-05/0.4536, allocations: 30.16 kB / 452.1 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001236/0.4537, allocations: 142.6 kB / 452.3 MB, free: 496 kB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4537, allocations: 0 / 452.3 MB, free: 496 kB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007859/0.4545, allocations: 124.6 kB / 452.4 MB, free: 476 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.00371/0.4582, allocations: 2.12 MB / 454.5 MB, free: 14.81 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003061/0.4613, allocations: 1.032 MB / 455.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.199e-05/0.4613, allocations: 1.281 kB / 455.5 MB, free: 14.3 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001095/0.4624, allocations: 337.6 kB / 455.9 MB, free: 14.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009793/0.4634, allocations: 136.6 kB / 456 MB, free: 14.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01404/0.4774, allocations: 6.784 MB / 462.8 MB, free: 8.992 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005647/0.478, allocations: 0.8134 MB / 463.6 MB, free: 8.242 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005446/0.4785, allocations: 91.69 kB / 463.7 MB, free: 8.199 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004124/0.4789, allocations: 117.5 kB / 463.8 MB, free: 8.113 MB / 366.1 MB Notification: Performance of SimCode: time 9.22e-07/0.4789, allocations: 4 kB / 463.8 MB, free: 8.109 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03314/0.5121, allocations: 11.39 MB / 475.2 MB, free: 15.01 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.003/9.515, allocations: 11.14 kB / 475.2 MB, free: 15 MB / 382.1 MB " [Timeout remaining time 650] (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/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_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: 12.30195532698417]