Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001405/0.001405, allocations: 107.5 kB / 21.22 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001517/0.001517, allocations: 213.2 kB / 24.52 MB, free: 3.91 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.519/1.519, allocations: 230.5 MB / 258.2 MB, free: 7.789 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001904/0.001904, allocations: 59.91 kB / 378.5 MB, free: 2.844 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3173/0.3192, allocations: 53.41 MB / 431.9 MB, free: 6.477 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked): time 0.004363/0.3236, allocations: 2.265 MB / 434.2 MB, free: 4.203 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001738/0.3253, allocations: 0.7988 MB / 435 MB, free: 3.398 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002645/0.3256, allocations: 4 kB / 435 MB, free: 3.395 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003732/0.326, allocations: 55.56 kB / 435 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003117/0.3263, allocations: 59.5 kB / 435.1 MB, free: 3.281 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007366/0.327, allocations: 191.5 kB / 435.3 MB, free: 3.094 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004677/0.3275, allocations: 383.6 kB / 435.6 MB, free: 2.719 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001937/0.3277, allocations: 70.47 kB / 435.7 MB, free: 2.652 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003069/0.328, allocations: 179.4 kB / 435.9 MB, free: 2.477 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002409/0.3282, allocations: 179.3 kB / 436.1 MB, free: 2.301 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.811e-05/0.3283, allocations: 32 kB / 436.1 MB, free: 2.27 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.771e-05/0.3283, allocations: 36 kB / 436.1 MB, free: 2.234 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001212/0.3285, allocations: 103.7 kB / 436.2 MB, free: 2.133 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001364/0.3286, allocations: 127.4 kB / 436.3 MB, free: 2.008 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004419/0.329, allocations: 342.6 kB / 436.7 MB, free: 1.672 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.747e-06/0.329, allocations: 3.938 kB / 436.7 MB, free: 1.668 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.329, allocations: 4 kB / 436.7 MB, free: 1.664 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.301e-06/0.329, allocations: 0 / 436.7 MB, free: 1.664 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.001199/0.3302, allocations: 0.5522 MB / 437.2 MB, free: 1.082 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.073e-05/0.3303, allocations: 12.03 kB / 437.2 MB, free: 1.07 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.392e-05/0.3303, allocations: 4.688 kB / 437.3 MB, free: 1.062 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.443e-05/0.3304, allocations: 74.72 kB / 437.3 MB, free: 0.9805 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.621e-05/0.3305, allocations: 40.7 kB / 437.4 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003708/0.3308, allocations: 219.2 kB / 437.6 MB, free: 0.7031 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003485/0.3312, allocations: 351.8 kB / 437.9 MB, free: 296 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.752e-05/0.3312, allocations: 36.12 kB / 438 MB, free: 260 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001295/0.3325, allocations: 0.5699 MB / 438.5 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.755e-05/0.3326, allocations: 0 / 438.5 MB, free: 15.66 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 4.949e-05/0.3326, allocations: 12 kB / 438.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.3326, allocations: 4 kB / 438.5 MB, free: 15.64 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001387/0.334, allocations: 0.523 MB / 439.1 MB, free: 15.12 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001564/0.3356, allocations: 0.8984 MB / 440 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001465/0.337, allocations: 466.4 kB / 440.4 MB, free: 13.66 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006352/0.3377, allocations: 246.4 kB / 440.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.497e-05/0.3377, allocations: 7.938 kB / 440.7 MB, free: 13.41 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.927e-05/0.3378, allocations: 38.56 kB / 440.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of pre-optimization done (n=45): time 2.064e-06/0.3378, allocations: 0 / 440.7 MB, free: 13.36 MB / 350.1 MB Notification: Performance of matching and sorting (n=73): time 0.03902/0.3768, allocations: 5.739 MB / 446.4 MB, free: 7.609 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001348/0.3769, allocations: 156.9 kB / 446.6 MB, free: 7.426 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002583/0.3772, allocations: 204.6 kB / 446.8 MB, free: 7.215 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.73e-05/0.3773, allocations: 37.7 kB / 446.8 MB, free: 7.172 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001137/0.3774, allocations: 149.7 kB / 447 MB, free: 7.02 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002347/0.3776, allocations: 202.3 kB / 447.2 MB, free: 6.82 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0003216/0.3779, allocations: 114.6 kB / 447.3 MB, free: 6.703 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000164/0.3781, allocations: 346.8 kB / 447.6 MB, free: 6.355 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001594/0.3797, allocations: 0.6188 MB / 448.3 MB, free: 5.734 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001752/0.3814, allocations: 0.8003 MB / 449.1 MB, free: 4.859 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.003103/0.3845, allocations: 1.26 MB / 450.3 MB, free: 3.523 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.345e-06/0.3846, allocations: 4 kB / 450.3 MB, free: 3.52 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003609/0.3882, allocations: 1.411 MB / 451.7 MB, free: 2.102 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.521e-05/0.3882, allocations: 8 kB / 451.7 MB, free: 2.094 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.618e-05/0.3882, allocations: 4 kB / 451.7 MB, free: 2.09 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.942e-05/0.3882, allocations: 8.375 kB / 451.7 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001338/0.3896, allocations: 211.6 kB / 452 MB, free: 1.875 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.125e-05/0.3896, allocations: 12.25 kB / 452 MB, free: 1.863 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0009709/0.3906, allocations: 107.8 kB / 452.1 MB, free: 1.758 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.775e-05/0.3907, allocations: 35.94 kB / 452.1 MB, free: 1.723 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.0003503/0.391, allocations: 181.8 kB / 452.3 MB, free: 1.535 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003665/0.3914, allocations: 161.3 kB / 452.4 MB, free: 1.371 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001792/0.3916, allocations: 67.3 kB / 452.5 MB, free: 1.309 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.502e-05/0.3916, allocations: 11.94 kB / 452.5 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.307e-06/0.3916, allocations: 0 / 452.5 MB, free: 1.297 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.173e-05/0.3916, allocations: 11.98 kB / 452.5 MB, free: 1.285 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005274/0.3969, allocations: 1.956 MB / 454.5 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.719e-05/0.3969, allocations: 12 kB / 454.5 MB, free: 15.14 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0008312/0.3977, allocations: 187.6 kB / 454.7 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.42e-05/0.3978, allocations: 12 kB / 454.7 MB, free: 14.94 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 6.624e-05/0.3978, allocations: 28.38 kB / 454.7 MB, free: 14.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.67e-05/0.3978, allocations: 27.92 kB / 454.7 MB, free: 14.89 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.127e-05/0.3979, allocations: 11.94 kB / 454.8 MB, free: 14.88 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003439/0.4013, allocations: 1.566 MB / 456.3 MB, free: 13.16 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002893/0.4016, allocations: 95.58 kB / 456.4 MB, free: 13.07 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 0.0001055/0.4017, allocations: 27.98 kB / 456.4 MB, free: 13.04 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0006569/0.4024, allocations: 75.98 kB / 456.5 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002377/0.4026, allocations: 103.6 kB / 456.6 MB, free: 12.87 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.5e-05/0.4027, allocations: 32 kB / 456.7 MB, free: 12.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001672/0.4028, allocations: 144.1 kB / 456.8 MB, free: 12.7 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.4028, allocations: 3.938 kB / 456.8 MB, free: 12.69 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0008247/0.4036, allocations: 124.2 kB / 456.9 MB, free: 12.57 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.00387/0.4075, allocations: 2.149 MB / 459.1 MB, free: 10.26 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.002874/0.4104, allocations: 1.034 MB / 460.1 MB, free: 9.223 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.258e-05/0.4104, allocations: 4 kB / 460.1 MB, free: 9.219 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001039/0.4114, allocations: 342.4 kB / 460.4 MB, free: 8.887 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009774/0.4124, allocations: 139.2 kB / 460.6 MB, free: 8.754 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01395/0.4264, allocations: 6.834 MB / 467.4 MB, free: 1.422 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002789/0.4266, allocations: 211.3 kB / 467.6 MB, free: 1.191 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004976/0.4271, allocations: 91.31 kB / 467.7 MB, free: 1.102 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004127/0.4276, allocations: 119.4 kB / 467.8 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of SimCode: time 1.332e-06/0.4276, allocations: 480 / 467.8 MB, free: 0.9844 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03832/0.4659, allocations: 12.52 MB / 480.3 MB, free: 4.641 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.54/12.01, allocations: 7.922 kB / 480.3 MB, free: 4.633 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SubClocked.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SubClocked.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.891324377967976]