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.001336/0.001336, allocations: 108.6 kB / 21.22 MB, free: 0.7305 MB / 14.72 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.001408/0.001408, allocations: 191.5 kB / 24.51 MB, free: 4.086 MB / 14.72 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 1.442/1.442, allocations: 225.6 MB / 253.3 MB, free: 13.04 MB / 206.1 MB " [Timeout remaining time 178] 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="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001502/0.001502, allocations: 51.92 kB / 371.2 MB, free: 9.883 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2875/0.289, allocations: 52.2 MB / 423.4 MB, free: 14.63 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.0047/0.2937, allocations: 2.385 MB / 425.8 MB, free: 12.23 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001765/0.2955, allocations: 0.8143 MB / 426.6 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001789/0.2957, allocations: 7.938 kB / 426.6 MB, free: 11.4 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003316/0.296, allocations: 51.56 kB / 426.7 MB, free: 11.35 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002296/0.2963, allocations: 59.56 kB / 426.7 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005922/0.2968, allocations: 186.6 kB / 426.9 MB, free: 11.11 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005019/0.2973, allocations: 375.6 kB / 427.3 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002335/0.2976, allocations: 88.27 kB / 427.4 MB, free: 10.66 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000289/0.2979, allocations: 163.5 kB / 427.5 MB, free: 10.5 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003145/0.2982, allocations: 179.3 kB / 427.7 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.604e-05/0.2983, allocations: 32 kB / 427.7 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.603e-05/0.2983, allocations: 36 kB / 427.8 MB, free: 10.25 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001358/0.2984, allocations: 99.66 kB / 427.9 MB, free: 10.16 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001816/0.2986, allocations: 143.3 kB / 428 MB, free: 10.02 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000462/0.2991, allocations: 347.3 kB / 428.3 MB, free: 9.68 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.819e-06/0.2991, allocations: 0 / 428.3 MB, free: 9.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.814e-06/0.2991, allocations: 0 / 428.3 MB, free: 9.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.194e-06/0.2991, allocations: 0 / 428.3 MB, free: 9.68 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.001285/0.3004, allocations: 0.5522 MB / 428.9 MB, free: 9.098 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.258e-05/0.3004, allocations: 8.031 kB / 428.9 MB, free: 9.09 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.924e-05/0.3004, allocations: 8.688 kB / 428.9 MB, free: 9.082 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.784e-05/0.3005, allocations: 70.72 kB / 429 MB, free: 9.004 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.098e-05/0.3006, allocations: 36.75 kB / 429 MB, free: 8.969 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004653/0.3011, allocations: 226.4 kB / 429.2 MB, free: 8.723 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003467/0.3014, allocations: 347.9 kB / 429.6 MB, free: 8.312 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.735e-05/0.3015, allocations: 36.12 kB / 429.6 MB, free: 8.277 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001305/0.3028, allocations: 0.5582 MB / 430.2 MB, free: 7.695 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.918e-05/0.3028, allocations: 0 / 430.2 MB, free: 7.695 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.931e-05/0.3028, allocations: 12 kB / 430.2 MB, free: 7.684 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.037e-05/0.3029, allocations: 8 kB / 430.2 MB, free: 7.676 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001495/0.3044, allocations: 0.5112 MB / 430.7 MB, free: 7.164 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001687/0.306, allocations: 0.9414 MB / 431.6 MB, free: 6.156 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001725/0.3078, allocations: 482.5 kB / 432.1 MB, free: 5.648 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006802/0.3084, allocations: 235.5 kB / 432.3 MB, free: 5.406 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.986e-05/0.3085, allocations: 11.98 kB / 432.3 MB, free: 5.395 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.63e-05/0.3085, allocations: 46.44 kB / 432.4 MB, free: 5.34 MB / 334.1 MB Notification: Performance of pre-optimization done (n=44): time 2.655e-06/0.3085, allocations: 0 / 432.4 MB, free: 5.34 MB / 334.1 MB Notification: Performance of matching and sorting (n=72): time 0.04054/0.3491, allocations: 5.735 MB / 438.1 MB, free: 15.6 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001736/0.3492, allocations: 156.9 kB / 438.3 MB, free: 15.41 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002934/0.3495, allocations: 196.4 kB / 438.5 MB, free: 15.21 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001081/0.3496, allocations: 37.7 kB / 438.5 MB, free: 15.17 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000133/0.3498, allocations: 145.7 kB / 438.7 MB, free: 15.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002476/0.35, allocations: 202.3 kB / 438.8 MB, free: 14.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003472/0.3504, allocations: 110.7 kB / 439 MB, free: 14.71 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001647/0.3505, allocations: 338.8 kB / 439.3 MB, free: 14.37 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001693/0.3522, allocations: 0.6188 MB / 439.9 MB, free: 13.75 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002057/0.3543, allocations: 0.8002 MB / 440.7 MB, free: 12.87 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003359/0.3576, allocations: 1.247 MB / 442 MB, free: 11.54 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.193e-05/0.3577, allocations: 4 kB / 442 MB, free: 11.54 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.004125/0.3618, allocations: 1.394 MB / 443.4 MB, free: 10.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.673e-05/0.3618, allocations: 11.94 kB / 443.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.126e-05/0.3618, allocations: 8 kB / 443.4 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.107e-05/0.3619, allocations: 12.25 kB / 443.4 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001418/0.3633, allocations: 203.7 kB / 443.6 MB, free: 9.906 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.708e-05/0.3633, allocations: 15.94 kB / 443.6 MB, free: 9.891 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009858/0.3643, allocations: 103.8 kB / 443.7 MB, free: 9.789 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.618e-05/0.3644, allocations: 28 kB / 443.7 MB, free: 9.762 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.000376/0.3648, allocations: 185.6 kB / 443.9 MB, free: 9.57 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003916/0.3652, allocations: 161.3 kB / 444.1 MB, free: 9.406 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002127/0.3654, allocations: 59.3 kB / 444.1 MB, free: 9.352 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.23e-05/0.3654, allocations: 8.469 kB / 444.1 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.37e-05/0.3654, allocations: 0 / 444.1 MB, free: 9.344 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.59e-05/0.3654, allocations: 7.984 kB / 444.1 MB, free: 9.336 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005828/0.3713, allocations: 2.132 MB / 446.3 MB, free: 7.027 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.549e-05/0.3713, allocations: 23.95 kB / 446.3 MB, free: 7.004 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008114/0.3721, allocations: 175.8 kB / 446.5 MB, free: 6.832 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.724e-05/0.3721, allocations: 12 kB / 446.5 MB, free: 6.82 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.521e-05/0.3722, allocations: 24 kB / 446.5 MB, free: 6.797 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.891e-05/0.3722, allocations: 20.31 kB / 446.5 MB, free: 6.777 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.47e-05/0.3722, allocations: 19.88 kB / 446.5 MB, free: 6.758 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003655/0.3759, allocations: 1.561 MB / 448.1 MB, free: 5.047 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003137/0.3762, allocations: 87.64 kB / 448.2 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001136/0.3763, allocations: 27.98 kB / 448.2 MB, free: 4.934 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006646/0.377, allocations: 79.98 kB / 448.3 MB, free: 4.855 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002246/0.3772, allocations: 95.64 kB / 448.4 MB, free: 4.762 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.493e-05/0.3773, allocations: 28.23 kB / 448.4 MB, free: 4.734 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000164/0.3774, allocations: 149.1 kB / 448.6 MB, free: 4.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3774, allocations: 3.938 kB / 448.6 MB, free: 4.586 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0007605/0.3782, allocations: 120 kB / 448.7 MB, free: 4.469 MB / 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.004048/0.3822, allocations: 2.133 MB / 450.8 MB, free: 2.172 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.003124/0.3854, allocations: 1.027 MB / 451.8 MB, free: 1.152 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.182e-05/0.3854, allocations: 4 kB / 451.8 MB, free: 1.148 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001118/0.3865, allocations: 330.1 kB / 452.2 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009828/0.3875, allocations: 144.3 kB / 452.3 MB, free: 0.6875 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01479/0.4023, allocations: 6.781 MB / 459.1 MB, free: 9.41 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005942/0.4029, allocations: 0.8128 MB / 459.9 MB, free: 8.57 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005376/0.4034, allocations: 95.33 kB / 460 MB, free: 8.473 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004104/0.4038, allocations: 115.4 kB / 460.1 MB, free: 8.359 MB / 366.1 MB Notification: Performance of SimCode: time 1.092e-06/0.4038, allocations: 4 kB / 460.1 MB, free: 8.355 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04297/0.4468, allocations: 12.08 MB / 472.2 MB, free: 12.43 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.87/12.32, allocations: 0 / 472.2 MB, free: 12.43 MB / 382.1 MB " [Timeout remaining time 648] (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/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SubClocked/SubClocked.csv","/var/lib/jenkins1/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: 15.077005326980725]