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.001541/0.001541, allocations: 105.1 kB / 21.21 MB, free: 0.6484 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.001667/0.001667, allocations: 212.5 kB / 24.51 MB, free: 3.938 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.379/1.379, allocations: 230.6 MB / 258.3 MB, free: 7.988 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.001431/0.001431, allocations: 55.86 kB / 378.5 MB, free: 3.035 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2346/0.236, allocations: 53.36 MB / 431.8 MB, free: 6.684 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.003547/0.2396, allocations: 2.265 MB / 434.1 MB, free: 4.41 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.00137/0.2409, allocations: 0.7988 MB / 434.9 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001246/0.2411, allocations: 11.94 kB / 434.9 MB, free: 3.594 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000241/0.2413, allocations: 51.58 kB / 435 MB, free: 3.543 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001851/0.2415, allocations: 67.48 kB / 435 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000443/0.2419, allocations: 167.7 kB / 435.2 MB, free: 3.312 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004027/0.2423, allocations: 387.5 kB / 435.6 MB, free: 2.934 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001678/0.2425, allocations: 78.45 kB / 435.7 MB, free: 2.859 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002879/0.2428, allocations: 171.4 kB / 435.8 MB, free: 2.691 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002332/0.243, allocations: 187.3 kB / 436 MB, free: 2.508 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.575e-05/0.2431, allocations: 36 kB / 436 MB, free: 2.473 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.681e-05/0.2431, allocations: 36 kB / 436.1 MB, free: 2.438 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001103/0.2433, allocations: 95.73 kB / 436.2 MB, free: 2.344 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001313/0.2434, allocations: 123.4 kB / 436.3 MB, free: 2.223 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003714/0.2438, allocations: 346.6 kB / 436.6 MB, free: 1.883 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.916e-06/0.2438, allocations: 0 / 436.6 MB, free: 1.883 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.202e-06/0.2438, allocations: 3.938 kB / 436.6 MB, free: 1.879 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.58e-06/0.2438, allocations: 3.938 kB / 436.6 MB, free: 1.875 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.001169/0.2449, allocations: 0.5483 MB / 437.2 MB, free: 1.297 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.592e-05/0.245, allocations: 8.031 kB / 437.2 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.491e-05/0.245, allocations: 20.69 kB / 437.2 MB, free: 1.266 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.913e-05/0.2451, allocations: 66.72 kB / 437.3 MB, free: 1.191 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.03e-05/0.2451, allocations: 44.7 kB / 437.3 MB, free: 1.148 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003815/0.2455, allocations: 218.4 kB / 437.5 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003117/0.2458, allocations: 347.9 kB / 437.9 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.844e-05/0.2459, allocations: 36.12 kB / 437.9 MB, free: 476 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001228/0.2471, allocations: 0.5698 MB / 438.5 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.547e-05/0.2472, allocations: 0 / 438.5 MB, free: 15.87 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.727e-05/0.2472, allocations: 12 kB / 438.5 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.668e-06/0.2472, allocations: 8 kB / 438.5 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001383/0.2486, allocations: 0.5159 MB / 439 MB, free: 15.34 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001445/0.25, allocations: 0.8946 MB / 439.9 MB, free: 14.38 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001414/0.2514, allocations: 474.4 kB / 440.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006249/0.2521, allocations: 243.5 kB / 440.6 MB, free: 13.62 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.669e-05/0.2521, allocations: 11.98 kB / 440.6 MB, free: 13.61 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.242e-05/0.2521, allocations: 42.5 kB / 440.7 MB, free: 13.56 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 1.874e-06/0.2521, allocations: 0 / 440.7 MB, free: 13.56 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.03832/0.2905, allocations: 5.739 MB / 446.4 MB, free: 7.816 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001079/0.2906, allocations: 156.8 kB / 446.6 MB, free: 7.633 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002199/0.2908, allocations: 204.3 kB / 446.8 MB, free: 7.422 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 7.764e-05/0.2909, allocations: 37.7 kB / 446.8 MB, free: 7.379 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.763e-05/0.291, allocations: 141.8 kB / 446.9 MB, free: 7.234 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002042/0.2912, allocations: 210.2 kB / 447.1 MB, free: 7.027 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003031/0.2915, allocations: 110.6 kB / 447.2 MB, free: 6.914 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001472/0.2916, allocations: 342.8 kB / 447.6 MB, free: 6.57 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001529/0.2932, allocations: 0.623 MB / 448.2 MB, free: 5.945 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001704/0.2949, allocations: 0.8081 MB / 449 MB, free: 5.062 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.002937/0.2978, allocations: 1.256 MB / 450.3 MB, free: 3.73 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.326e-06/0.2978, allocations: 0 / 450.3 MB, free: 3.73 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003524/0.3013, allocations: 1.407 MB / 451.7 MB, free: 2.316 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.04e-05/0.3013, allocations: 8 kB / 451.7 MB, free: 2.309 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.127e-05/0.3014, allocations: 4 kB / 451.7 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.806e-05/0.3014, allocations: 12 kB / 451.7 MB, free: 2.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001324/0.3027, allocations: 219.6 kB / 451.9 MB, free: 2.078 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.06e-05/0.3027, allocations: 15.92 kB / 451.9 MB, free: 2.062 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009132/0.3036, allocations: 99.78 kB / 452 MB, free: 1.965 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.91e-05/0.3037, allocations: 31.98 kB / 452.1 MB, free: 1.934 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: 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 (84): * Single equations (assignments): 84 * 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.0003292/0.3041, allocations: 177.6 kB / 452.2 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003096/0.3044, allocations: 161.3 kB / 452.4 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001602/0.3045, allocations: 59.31 kB / 452.4 MB, free: 1.531 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.034e-05/0.3045, allocations: 11.94 kB / 452.5 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.035e-05/0.3046, allocations: 4 kB / 452.5 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.029e-05/0.3046, allocations: 3.984 kB / 452.5 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004606/0.3092, allocations: 1.964 MB / 454.4 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.493e-05/0.3092, allocations: 12 kB / 454.4 MB, free: 15.36 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007317/0.3099, allocations: 188.5 kB / 454.6 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.818e-05/0.3099, allocations: 16 kB / 454.6 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.122e-05/0.31, allocations: 27.98 kB / 454.7 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.555e-05/0.31, allocations: 19.94 kB / 454.7 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.352e-05/0.31, allocations: 20.27 kB / 454.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00316/0.3132, allocations: 1.558 MB / 456.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001908/0.3134, allocations: 103.8 kB / 456.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.411e-05/0.3134, allocations: 24 kB / 456.4 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005509/0.314, allocations: 83.84 kB / 456.5 MB, free: 13.18 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001964/0.3142, allocations: 99.88 kB / 456.6 MB, free: 13.08 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.321e-05/0.3142, allocations: 28 kB / 456.6 MB, free: 13.05 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001397/0.3144, allocations: 149.2 kB / 456.7 MB, free: 12.91 MB / 366.1 MB Notification: Performance of sort global known variables: time 9.1e-08/0.3144, allocations: 0 / 456.7 MB, free: 12.91 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006715/0.3151, allocations: 131.9 kB / 456.9 MB, free: 12.78 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: 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.003507/0.3186, allocations: 2.145 MB / 459 MB, free: 10.47 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002664/0.3212, allocations: 1.047 MB / 460.1 MB, free: 9.426 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.221e-06/0.3212, allocations: 0 / 460.1 MB, free: 9.426 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0009819/0.3222, allocations: 338 kB / 460.4 MB, free: 9.098 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009175/0.3231, allocations: 139.5 kB / 460.5 MB, free: 8.961 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01279/0.3359, allocations: 6.833 MB / 467.4 MB, free: 1.637 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002433/0.3362, allocations: 211.3 kB / 467.6 MB, free: 1.406 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004792/0.3367, allocations: 107.2 kB / 467.7 MB, free: 1.301 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0003883/0.337, allocations: 115.4 kB / 467.8 MB, free: 1.188 MB / 366.1 MB Notification: Performance of SimCode: time 6.51e-07/0.337, allocations: 0 / 467.8 MB, free: 1.188 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.05049/0.3875, allocations: 12.51 MB / 480.3 MB, free: 4.891 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.17/11.56, allocations: 9.547 kB / 480.3 MB, free: 4.883 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.147064859978855]