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.001408/0.001408, allocations: 112.2 kB / 21.22 MB, free: 0.75 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.001362/0.001362, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.429/1.429, allocations: 230.6 MB / 258.3 MB, free: 8.027 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.001469/0.001469, allocations: 43.92 kB / 378.5 MB, free: 3.188 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2893/0.2908, allocations: 53.36 MB / 431.9 MB, free: 6.902 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004223/0.295, allocations: 2.399 MB / 434.3 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001865/0.2968, allocations: 0.8572 MB / 435.2 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001798/0.297, allocations: 7.938 kB / 435.2 MB, free: 3.625 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003342/0.2974, allocations: 47.58 kB / 435.2 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002253/0.2976, allocations: 63.55 kB / 435.3 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005112/0.2981, allocations: 175.6 kB / 435.4 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004145/0.2985, allocations: 387.5 kB / 435.8 MB, free: 2.965 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001855/0.2987, allocations: 84.23 kB / 435.9 MB, free: 2.883 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002966/0.299, allocations: 171.4 kB / 436.1 MB, free: 2.715 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002531/0.2992, allocations: 183.2 kB / 436.3 MB, free: 2.535 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5e-05/0.2993, allocations: 36 kB / 436.3 MB, free: 2.5 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.951e-05/0.2993, allocations: 32 kB / 436.3 MB, free: 2.469 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001073/0.2994, allocations: 95.72 kB / 436.4 MB, free: 2.375 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001406/0.2996, allocations: 151.2 kB / 436.6 MB, free: 2.227 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004141/0.3, allocations: 335 kB / 436.9 MB, free: 1.902 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.22e-06/0.3, allocations: 0 / 436.9 MB, free: 1.902 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.3, allocations: 4 kB / 436.9 MB, free: 1.898 MB / 334.1 MB Notification: Performance of Transformations before backend: time 8.135e-06/0.3, allocations: 0 / 436.9 MB, free: 1.898 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.001335/0.3014, allocations: 0.5405 MB / 437.4 MB, free: 1.328 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.681e-05/0.3014, allocations: 12.03 kB / 437.4 MB, free: 1.316 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.346e-05/0.3014, allocations: 8.688 kB / 437.5 MB, free: 1.305 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.135e-05/0.3015, allocations: 70.72 kB / 437.5 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.095e-05/0.3016, allocations: 44.7 kB / 437.6 MB, free: 1.184 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004972/0.3021, allocations: 218.5 kB / 437.8 MB, free: 0.9453 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003198/0.3024, allocations: 351.9 kB / 438.1 MB, free: 0.5312 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.626e-05/0.3025, allocations: 32.12 kB / 438.2 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001221/0.3037, allocations: 0.566 MB / 438.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.52e-05/0.3037, allocations: 0 / 438.7 MB, free: 15.91 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.583e-05/0.3038, allocations: 12 kB / 438.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.346e-06/0.3038, allocations: 4 kB / 438.7 MB, free: 15.89 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001401/0.3052, allocations: 0.5159 MB / 439.2 MB, free: 15.38 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001621/0.3068, allocations: 0.9491 MB / 440.2 MB, free: 14.36 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001649/0.3084, allocations: 482.5 kB / 440.7 MB, free: 13.86 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006455/0.3091, allocations: 235.4 kB / 440.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.123e-05/0.3091, allocations: 8 kB / 440.9 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.264e-05/0.3092, allocations: 42.5 kB / 440.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 1.613e-06/0.3092, allocations: 0 / 440.9 MB, free: 13.55 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.0378/0.347, allocations: 5.735 MB / 446.7 MB, free: 7.812 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.000149/0.3471, allocations: 149.3 kB / 446.8 MB, free: 7.637 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002978/0.3474, allocations: 204.3 kB / 447 MB, free: 7.426 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.803e-05/0.3475, allocations: 41.7 kB / 447.1 MB, free: 7.379 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001223/0.3476, allocations: 145.8 kB / 447.2 MB, free: 7.23 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002358/0.3478, allocations: 198.3 kB / 447.4 MB, free: 7.035 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003206/0.3482, allocations: 114.6 kB / 447.5 MB, free: 6.918 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001659/0.3483, allocations: 342.8 kB / 447.9 MB, free: 6.574 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001608/0.3499, allocations: 0.6188 MB / 448.5 MB, free: 5.953 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001774/0.3517, allocations: 0.7963 MB / 449.3 MB, free: 5.082 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003169/0.3549, allocations: 1.247 MB / 450.5 MB, free: 3.758 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.282e-06/0.3549, allocations: 3.984 kB / 450.5 MB, free: 3.754 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003654/0.3585, allocations: 1.394 MB / 451.9 MB, free: 2.352 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.88e-05/0.3586, allocations: 8 kB / 451.9 MB, free: 2.344 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.169e-05/0.3586, allocations: 4 kB / 451.9 MB, free: 2.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.146e-05/0.3586, allocations: 15.92 kB / 451.9 MB, free: 2.324 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001326/0.3599, allocations: 211.7 kB / 452.1 MB, free: 2.117 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.389e-05/0.36, allocations: 19.92 kB / 452.2 MB, free: 2.098 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009335/0.3609, allocations: 99.8 kB / 452.3 MB, free: 2 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.496e-05/0.361, allocations: 27.98 kB / 452.3 MB, free: 1.973 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.0003374/0.3613, allocations: 185.6 kB / 452.5 MB, free: 1.781 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003005/0.3616, allocations: 153.4 kB / 452.6 MB, free: 1.625 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001687/0.3618, allocations: 63.25 kB / 452.7 MB, free: 1.566 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.048e-05/0.3618, allocations: 8.234 kB / 452.7 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.083e-06/0.3618, allocations: 0 / 452.7 MB, free: 1.559 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.638e-06/0.3618, allocations: 7.969 kB / 452.7 MB, free: 1.551 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004882/0.3667, allocations: 2.136 MB / 454.8 MB, free: 15.24 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.08e-05/0.3667, allocations: 8 kB / 454.8 MB, free: 15.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007468/0.3675, allocations: 191.8 kB / 455 MB, free: 15.04 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.624e-05/0.3675, allocations: 16 kB / 455 MB, free: 15.03 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.093e-05/0.3675, allocations: 20 kB / 455.1 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.509e-05/0.3675, allocations: 19.94 kB / 455.1 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.528e-05/0.3676, allocations: 24.05 kB / 455.1 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003246/0.3708, allocations: 1.553 MB / 456.7 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002063/0.371, allocations: 87.64 kB / 456.7 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.534e-05/0.3711, allocations: 27.98 kB / 456.8 MB, free: 13.15 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005747/0.3717, allocations: 83.97 kB / 456.9 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.000215/0.3719, allocations: 95.64 kB / 456.9 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.016e-05/0.3719, allocations: 28 kB / 457 MB, free: 12.95 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.00014/0.3721, allocations: 149.1 kB / 457.1 MB, free: 12.8 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3721, allocations: 0 / 457.1 MB, free: 12.8 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006478/0.3727, allocations: 116 kB / 457.2 MB, free: 12.69 MB / 366.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.003587/0.3763, allocations: 2.125 MB / 459.4 MB, free: 10.4 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002825/0.3791, allocations: 1.026 MB / 460.4 MB, free: 9.375 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 4.648e-06/0.3791, allocations: 5.312 kB / 460.4 MB, free: 9.371 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001003/0.3801, allocations: 329.9 kB / 460.7 MB, free: 9.051 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008859/0.381, allocations: 138 kB / 460.8 MB, free: 8.918 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01327/0.3943, allocations: 6.797 MB / 467.6 MB, free: 1.629 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004745/0.3948, allocations: 0.8128 MB / 468.5 MB, free: 0.7852 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004744/0.3952, allocations: 95.31 kB / 468.6 MB, free: 0.6875 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003844/0.3956, allocations: 115.4 kB / 468.7 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of SimCode: time 6.81e-07/0.3956, allocations: 0 / 468.7 MB, free: 0.5742 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03745/0.4331, allocations: 12.07 MB / 480.7 MB, free: 4.664 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.22/11.65, allocations: 6.641 kB / 480.7 MB, free: 4.66 MB / 382.1 MB " [Timeout remaining time 648] (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: 14.34747434296878]