Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001004/0.001004, allocations: 76.08 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.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001067/0.001067, allocations: 149.1 kB / 23.93 MB, free: 0.6289 MB / 18.57 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 0.8804/0.8804, allocations: 173.4 MB / 200.4 MB, free: 9.43 MB / 186.7 MB " [Timeout remaining time 179] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.393e-06/1.393e-06, allocations: 0 / 318.4 MB, free: 6.363 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.743e-05/1.883e-05, allocations: 2.281 kB / 318.4 MB, free: 6.359 MB / 282.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.002678/0.002697, allocations: 2.234 MB / 320.7 MB, free: 4.105 MB / 282.7 MB Notification: Performance of NFInst.instExpressions: time 0.001215/0.003912, allocations: 0.7714 MB / 321.4 MB, free: 3.328 MB / 282.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001194/0.004031, allocations: 7.938 kB / 321.4 MB, free: 3.32 MB / 282.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002569/0.004288, allocations: 59.44 kB / 321.5 MB, free: 3.262 MB / 282.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0001641/0.004452, allocations: 59.56 kB / 321.5 MB, free: 3.203 MB / 282.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.000365/0.004817, allocations: 201.8 kB / 321.7 MB, free: 3.008 MB / 282.7 MB Notification: Performance of NFFlatten.flatten: time 0.0002916/0.005109, allocations: 387.5 kB / 322.1 MB, free: 2.629 MB / 282.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001519/0.005261, allocations: 72.33 kB / 322.2 MB, free: 2.559 MB / 282.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002097/0.00547, allocations: 223.5 kB / 322.4 MB, free: 2.34 MB / 282.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001681/0.005638, allocations: 151.6 kB / 322.6 MB, free: 2.191 MB / 282.7 MB Notification: Performance of NFPackage.collectConstants: time 4.903e-05/0.005687, allocations: 32 kB / 322.6 MB, free: 2.16 MB / 282.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.277e-05/0.00572, allocations: 36 kB / 322.6 MB, free: 2.125 MB / 282.7 MB Notification: Performance of NFScalarize.scalarize: time 8.713e-05/0.005807, allocations: 107.6 kB / 322.7 MB, free: 2.02 MB / 282.7 MB Notification: Performance of NFVerifyModel.verify: time 8.222e-05/0.005889, allocations: 103.7 kB / 322.8 MB, free: 1.918 MB / 282.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003064/0.006196, allocations: 366.8 kB / 323.2 MB, free: 1.559 MB / 282.7 MB Notification: Performance of FrontEnd - DAE generated: time 2.534e-06/0.006198, allocations: 0 / 323.2 MB, free: 1.559 MB / 282.7 MB Notification: Performance of FrontEnd: time 1.613e-06/0.0062, allocations: 0 / 323.2 MB, free: 1.559 MB / 282.7 MB Notification: Performance of Transformations before backend: time 6.712e-06/0.006207, allocations: 0 / 323.2 MB, free: 1.559 MB / 282.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.0008464/0.007053, allocations: 0.5483 MB / 323.7 MB, free: 0.9766 MB / 282.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.337e-05/0.007096, allocations: 8.922 kB / 323.7 MB, free: 0.9688 MB / 282.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.747e-05/0.007154, allocations: 70.72 kB / 323.8 MB, free: 0.8906 MB / 282.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.217e-05/0.007206, allocations: 40.75 kB / 323.9 MB, free: 0.8516 MB / 282.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003022/0.007508, allocations: 222.4 kB / 324.1 MB, free: 0.6094 MB / 282.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0001926/0.007701, allocations: 351.9 kB / 324.4 MB, free: 200 kB / 282.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.083e-05/0.007742, allocations: 28.38 kB / 324.4 MB, free: 172 kB / 282.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0008034/0.008545, allocations: 0.5665 MB / 325 MB, free: 15.57 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.008561, allocations: 8.125 kB / 325 MB, free: 15.57 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.699e-05/0.008588, allocations: 19.94 kB / 325 MB, free: 15.55 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.723e-06/0.008595, allocations: 4 kB / 325 MB, free: 15.54 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0007753/0.00937, allocations: 0.5152 MB / 325.6 MB, free: 15.03 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009667/0.01034, allocations: 0.8751 MB / 326.4 MB, free: 14.09 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008551/0.01119, allocations: 470.5 kB / 326.9 MB, free: 13.59 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003519/0.01154, allocations: 239.3 kB / 327.1 MB, free: 13.35 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.565e-05/0.01158, allocations: 8.156 kB / 327.1 MB, free: 13.34 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.1e-05/0.0116, allocations: 46.48 kB / 327.2 MB, free: 13.29 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.613e-06/0.0116, allocations: 0 / 327.2 MB, free: 13.29 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.01854/0.03015, allocations: 5.736 MB / 332.9 MB, free: 7.535 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.665e-05/0.03023, allocations: 160.9 kB / 333.1 MB, free: 7.348 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001776/0.03041, allocations: 204.3 kB / 333.3 MB, free: 7.137 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.322e-05/0.03046, allocations: 37.7 kB / 333.3 MB, free: 7.094 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.716e-05/0.03053, allocations: 145.8 kB / 333.5 MB, free: 6.949 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001206/0.03065, allocations: 190.3 kB / 333.6 MB, free: 6.762 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001738/0.03082, allocations: 98.28 kB / 333.7 MB, free: 6.66 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 8.614e-05/0.03091, allocations: 342.8 kB / 334.1 MB, free: 6.316 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0008957/0.03181, allocations: 0.6103 MB / 334.7 MB, free: 5.707 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009262/0.03273, allocations: 0.6898 MB / 335.4 MB, free: 4.988 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.001647/0.03438, allocations: 1.115 MB / 336.5 MB, free: 3.848 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.515e-06/0.03438, allocations: 0 / 336.5 MB, free: 3.848 MB / 298.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001906/0.03629, allocations: 1.305 MB / 337.8 MB, free: 2.535 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.488e-05/0.03631, allocations: 8 kB / 337.8 MB, free: 2.527 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.643e-05/0.03633, allocations: 0 / 337.8 MB, free: 2.527 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.08e-05/0.03635, allocations: 4 kB / 337.8 MB, free: 2.523 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000601/0.03695, allocations: 179.8 kB / 338 MB, free: 2.348 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.364e-05/0.03696, allocations: 11.92 kB / 338 MB, free: 2.336 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000403/0.03737, allocations: 87.83 kB / 338.1 MB, free: 2.25 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 4.706e-05/0.03741, allocations: 27.92 kB / 338.1 MB, free: 2.223 MB / 298.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.0002216/0.03764, allocations: 165.7 kB / 338.3 MB, free: 2.051 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003415/0.03798, allocations: 153.4 kB / 338.4 MB, free: 1.895 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001005/0.03808, allocations: 67.3 kB / 338.5 MB, free: 1.828 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.873e-06/0.03809, allocations: 8 kB / 338.5 MB, free: 1.82 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.557e-06/0.0381, allocations: 0 / 338.5 MB, free: 1.82 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.422e-06/0.0381, allocations: 11.92 kB / 338.5 MB, free: 1.809 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002735/0.04084, allocations: 1.972 MB / 340.5 MB, free: 15.65 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.215e-06/0.04084, allocations: 12 kB / 340.5 MB, free: 15.64 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003837/0.04123, allocations: 180.5 kB / 340.7 MB, free: 15.46 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 9.698e-06/0.04124, allocations: 12 kB / 340.7 MB, free: 15.45 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.211e-05/0.04128, allocations: 31.98 kB / 340.7 MB, free: 15.42 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.249e-05/0.04129, allocations: 27.81 kB / 340.7 MB, free: 15.39 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.416e-06/0.0413, allocations: 15.94 kB / 340.7 MB, free: 15.38 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001854/0.04316, allocations: 1.546 MB / 342.3 MB, free: 13.68 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001417/0.0433, allocations: 99.69 kB / 342.4 MB, free: 13.58 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.232e-05/0.04334, allocations: 24 kB / 342.4 MB, free: 13.56 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000294/0.04363, allocations: 79.84 kB / 342.5 MB, free: 13.48 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001375/0.04377, allocations: 99.64 kB / 342.6 MB, free: 13.38 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.822e-05/0.0438, allocations: 32 kB / 342.6 MB, free: 13.35 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.314e-05/0.04389, allocations: 153.1 kB / 342.8 MB, free: 13.2 MB / 314.7 MB Notification: Performance of sort global known variables: time 5.1e-08/0.04389, allocations: 0 / 342.8 MB, free: 13.2 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004128/0.0443, allocations: 116 kB / 342.9 MB, free: 13.09 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.002118/0.04642, allocations: 2.122 MB / 345 MB, free: 10.81 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001788/0.04821, allocations: 1.003 MB / 346 MB, free: 9.805 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 6.012e-06/0.04822, allocations: 4 kB / 346 MB, free: 9.801 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005573/0.04877, allocations: 338.2 kB / 346.3 MB, free: 9.473 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006278/0.0494, allocations: 146.9 kB / 346.5 MB, free: 9.332 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00783/0.05723, allocations: 6.397 MB / 352.9 MB, free: 2.535 MB / 314.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001492/0.05738, allocations: 211.3 kB / 353.1 MB, free: 2.312 MB / 314.7 MB Notification: Performance of simCode: alias equations: time 0.0002987/0.05768, allocations: 91.19 kB / 353.2 MB, free: 2.219 MB / 314.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002562/0.05794, allocations: 116.5 kB / 353.3 MB, free: 2.105 MB / 314.7 MB Notification: Performance of SimCode: time 9.72e-07/0.05794, allocations: 8 kB / 353.3 MB, free: 2.098 MB / 314.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0261/0.08404, allocations: 12.55 MB / 365.8 MB, free: 5.734 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.081/7.165, allocations: 10.8 kB / 365.9 MB, free: 5.73 MB / 330.7 MB " [Timeout remaining time 653] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.895667540840805]