Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.001821/0.001821, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.002528/0.002528, allocations: 216.5 kB / 24.53 MB, free: 4.012 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.663/1.663, allocations: 230.5 MB / 258.2 MB, free: 8.012 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.SuperSampled,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001872/0.001872, allocations: 63.89 kB / 378.6 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3971/0.3989, allocations: 53.4 MB / 432 MB, free: 6.691 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004982/0.4039, allocations: 2.374 MB / 434.3 MB, free: 4.309 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002023/0.4059, allocations: 0.8144 MB / 435.1 MB, free: 3.488 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0004765/0.4064, allocations: 7.938 kB / 435.1 MB, free: 3.48 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0004888/0.4069, allocations: 51.56 kB / 435.2 MB, free: 3.43 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004802/0.4074, allocations: 59.56 kB / 435.3 MB, free: 3.371 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008428/0.4082, allocations: 175.5 kB / 435.4 MB, free: 3.199 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007704/0.409, allocations: 375.6 kB / 435.8 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000269/0.4093, allocations: 67.8 kB / 435.9 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0005562/0.4098, allocations: 171.5 kB / 436 MB, free: 2.598 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0004664/0.4103, allocations: 175.3 kB / 436.2 MB, free: 2.426 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 0.0001105/0.4104, allocations: 36 kB / 436.2 MB, free: 2.391 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 8.987e-05/0.4105, allocations: 32 kB / 436.3 MB, free: 2.359 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0002285/0.4107, allocations: 103.6 kB / 436.4 MB, free: 2.258 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0003085/0.411, allocations: 135.3 kB / 436.5 MB, free: 2.125 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0006149/0.4116, allocations: 331.1 kB / 436.8 MB, free: 1.809 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.68e-06/0.4116, allocations: 0 / 436.8 MB, free: 1.809 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.4116, allocations: 0 / 436.8 MB, free: 1.809 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.028e-05/0.4117, allocations: 0 / 436.8 MB, free: 1.809 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: 70 * Number of variables: 70 Notification: Performance of Generate backend data structure: time 0.001338/0.413, allocations: 0.5444 MB / 437.4 MB, free: 1.234 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.314e-05/0.413, allocations: 8.031 kB / 437.4 MB, free: 1.227 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.625e-05/0.4131, allocations: 8.688 kB / 437.4 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.286e-05/0.4131, allocations: 70.72 kB / 437.5 MB, free: 1.137 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.472e-05/0.4132, allocations: 40.69 kB / 437.5 MB, free: 1.098 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004986/0.4137, allocations: 217.6 kB / 437.7 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0004396/0.4142, allocations: 347.9 kB / 438 MB, free: 468 kB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 7.807e-05/0.4142, allocations: 40.08 kB / 438.1 MB, free: 428 kB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001451/0.4157, allocations: 0.531 MB / 438.6 MB, free: 15.86 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 3.019e-05/0.4157, allocations: 4 kB / 438.6 MB, free: 15.85 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.892e-05/0.4158, allocations: 8 kB / 438.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.166e-05/0.4158, allocations: 8 kB / 438.6 MB, free: 15.84 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001467/0.4172, allocations: 0.5113 MB / 439.1 MB, free: 15.32 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001779/0.419, allocations: 0.9567 MB / 440.1 MB, free: 14.3 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001683/0.4207, allocations: 490.4 kB / 440.6 MB, free: 13.79 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006685/0.4214, allocations: 239.4 kB / 440.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 5.108e-05/0.4214, allocations: 4 kB / 440.8 MB, free: 13.54 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 5.87e-05/0.4215, allocations: 42.5 kB / 440.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.906e-06/0.4215, allocations: 0 / 440.9 MB, free: 13.49 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03949/0.461, allocations: 5.717 MB / 446.6 MB, free: 7.766 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.00017/0.4611, allocations: 152.9 kB / 446.7 MB, free: 7.586 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003357/0.4615, allocations: 195.5 kB / 446.9 MB, free: 7.387 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 0.0001403/0.4616, allocations: 37.7 kB / 447 MB, free: 7.344 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001704/0.4618, allocations: 141.8 kB / 447.1 MB, free: 7.199 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.000279/0.4621, allocations: 198.3 kB / 447.3 MB, free: 7.004 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000348/0.4624, allocations: 114.6 kB / 447.4 MB, free: 6.887 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0002042/0.4626, allocations: 342.8 kB / 447.7 MB, free: 6.543 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001883/0.4645, allocations: 0.6188 MB / 448.4 MB, free: 5.922 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.002844/0.4673, allocations: 0.7924 MB / 449.1 MB, free: 5.055 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.005274/0.4726, allocations: 1.255 MB / 450.4 MB, free: 3.723 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 9.969e-06/0.4726, allocations: 0 / 450.4 MB, free: 3.723 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.006162/0.4788, allocations: 1.394 MB / 451.8 MB, free: 2.32 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.344e-05/0.4788, allocations: 8 kB / 451.8 MB, free: 2.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 2.013e-05/0.4788, allocations: 8 kB / 451.8 MB, free: 2.305 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.711e-05/0.4789, allocations: 8 kB / 451.8 MB, free: 2.297 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.002135/0.481, allocations: 219.8 kB / 452 MB, free: 2.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.14e-05/0.4811, allocations: 11.94 kB / 452 MB, free: 2.07 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0016/0.4827, allocations: 99.73 kB / 452.1 MB, free: 1.973 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001583/0.4828, allocations: 31.98 kB / 452.2 MB, free: 1.941 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.0005165/0.4833, allocations: 185.6 kB / 452.4 MB, free: 1.75 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0005095/0.4838, allocations: 162 kB / 452.5 MB, free: 1.586 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001823/0.484, allocations: 63.31 kB / 452.6 MB, free: 1.527 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.927e-06/0.484, allocations: 8 kB / 452.6 MB, free: 1.52 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.196e-06/0.484, allocations: 3.938 kB / 452.6 MB, free: 1.516 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.736e-06/0.484, allocations: 3.984 kB / 452.6 MB, free: 1.512 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005124/0.4892, allocations: 2.14 MB / 454.7 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.06e-05/0.4892, allocations: 12.25 kB / 454.7 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007959/0.49, allocations: 180 kB / 454.9 MB, free: 15.01 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.832e-05/0.49, allocations: 16 kB / 454.9 MB, free: 14.99 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.733e-05/0.4901, allocations: 20 kB / 455 MB, free: 14.97 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.477e-05/0.4901, allocations: 23.88 kB / 455 MB, free: 14.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-05/0.4901, allocations: 15.94 kB / 455 MB, free: 14.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003762/0.4939, allocations: 1.557 MB / 456.5 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002636/0.4941, allocations: 87.7 kB / 456.6 MB, free: 13.14 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 9.277e-05/0.4942, allocations: 31.98 kB / 456.7 MB, free: 13.11 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000658/0.4949, allocations: 75.98 kB / 456.7 MB, free: 13.03 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002429/0.4951, allocations: 99.58 kB / 456.8 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 6.393e-05/0.4952, allocations: 35.98 kB / 456.9 MB, free: 12.9 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001916/0.4954, allocations: 147.5 kB / 457 MB, free: 12.75 MB / 366.1 MB Notification: Performance of sort global known variables: time 9e-08/0.4954, allocations: 0 / 457 MB, free: 12.75 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0007968/0.4962, allocations: 120 kB / 457.1 MB, free: 12.64 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.004069/0.5002, allocations: 2.121 MB / 459.3 MB, free: 10.36 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003113/0.5034, allocations: 1.027 MB / 460.3 MB, free: 9.324 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.229e-05/0.5034, allocations: 4 kB / 460.3 MB, free: 9.32 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001088/0.5045, allocations: 334.1 kB / 460.6 MB, free: 8.996 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009948/0.5054, allocations: 141.6 kB / 460.7 MB, free: 8.863 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01526/0.5207, allocations: 6.784 MB / 467.5 MB, free: 1.586 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007505/0.5215, allocations: 0.8089 MB / 468.3 MB, free: 0.7461 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0005738/0.522, allocations: 95.3 kB / 468.4 MB, free: 0.6484 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004394/0.5225, allocations: 111.4 kB / 468.5 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of SimCode: time 3.066e-06/0.5225, allocations: 0 / 468.5 MB, free: 0.5391 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04785/0.5703, allocations: 12 MB / 480.5 MB, free: 4.66 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 12.29/12.86, allocations: 0 / 480.5 MB, free: 4.66 MB / 382.1 MB " [Timeout remaining time 647] (rm -f Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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,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: 16.09676046198001]