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.0008772/0.0008772, allocations: 80.34 kB / 20.67 MB, free: 3.891 MB / 18.57 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.0008359/0.0008359, allocations: 156.9 kB / 23.95 MB, free: 0.6133 MB / 18.57 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 0.9033/0.9033, allocations: 177 MB / 204.1 MB, free: 5.746 MB / 186.7 MB " [Timeout remaining time 179] 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 1.463e-06/1.463e-06, allocations: 0 / 324.5 MB, free: 15.93 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 1.895e-05/2.041e-05, allocations: 2.281 kB / 324.5 MB, free: 15.92 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.002641/0.002661, allocations: 2.255 MB / 326.7 MB, free: 13.65 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001042/0.003703, allocations: 0.7792 MB / 327.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001127/0.003815, allocations: 4 kB / 327.5 MB, free: 12.86 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0004077/0.004223, allocations: 47.58 kB / 327.6 MB, free: 12.81 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002456/0.004469, allocations: 71.42 kB / 327.6 MB, free: 12.74 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004321/0.004901, allocations: 163 kB / 327.8 MB, free: 12.59 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0003528/0.005253, allocations: 387.4 kB / 328.2 MB, free: 12.21 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001647/0.005418, allocations: 67.8 kB / 328.2 MB, free: 12.14 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003283/0.005746, allocations: 223.6 kB / 328.5 MB, free: 11.93 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000175/0.005921, allocations: 147.6 kB / 328.6 MB, free: 11.78 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 3.941e-05/0.005961, allocations: 32 kB / 328.6 MB, free: 11.75 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 3.139e-05/0.005992, allocations: 32 kB / 328.7 MB, free: 11.72 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 8.2e-05/0.006074, allocations: 103.6 kB / 328.8 MB, free: 11.62 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 7.801e-05/0.006152, allocations: 103.8 kB / 328.9 MB, free: 11.52 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.0003077/0.00646, allocations: 346.9 kB / 329.2 MB, free: 11.18 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 4.879e-06/0.006465, allocations: 4 kB / 329.2 MB, free: 11.17 MB / 298.7 MB Notification: Performance of FrontEnd: time 2.204e-06/0.006467, allocations: 0 / 329.2 MB, free: 11.17 MB / 298.7 MB Notification: Performance of Transformations before backend: time 4.689e-06/0.006472, allocations: 0 / 329.2 MB, free: 11.17 MB / 298.7 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.0008416/0.007313, allocations: 0.5405 MB / 329.8 MB, free: 10.6 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 4.2e-05/0.007355, allocations: 15.92 kB / 329.8 MB, free: 10.59 MB / 298.7 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.962e-05/0.007415, allocations: 74.72 kB / 329.8 MB, free: 10.5 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.652e-05/0.007471, allocations: 36.75 kB / 329.9 MB, free: 10.47 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003451/0.007817, allocations: 210.6 kB / 330.1 MB, free: 10.23 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.000198/0.008015, allocations: 347.9 kB / 330.4 MB, free: 9.828 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.558e-05/0.00806, allocations: 36.27 kB / 330.5 MB, free: 9.793 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007854/0.008846, allocations: 0.5586 MB / 331 MB, free: 9.203 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.809e-05/0.008864, allocations: 7.938 kB / 331 MB, free: 9.195 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.453e-05/0.008888, allocations: 8 kB / 331 MB, free: 9.188 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.267e-06/0.008897, allocations: 8 kB / 331 MB, free: 9.18 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0008152/0.009713, allocations: 0.5152 MB / 331.6 MB, free: 8.664 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001009/0.01072, allocations: 0.8827 MB / 332.4 MB, free: 7.719 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0008767/0.0116, allocations: 470.6 kB / 332.9 MB, free: 7.223 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003703/0.01197, allocations: 247.4 kB / 333.1 MB, free: 6.969 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 3.594e-05/0.012, allocations: 4 kB / 333.1 MB, free: 6.965 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.339e-05/0.01203, allocations: 42.95 kB / 333.2 MB, free: 6.914 MB / 298.7 MB Notification: Performance of pre-optimization done (n=45): time 1.854e-06/0.01203, allocations: 0 / 333.2 MB, free: 6.914 MB / 298.7 MB Notification: Performance of matching and sorting (n=73): time 0.01835/0.03038, allocations: 5.748 MB / 338.9 MB, free: 1.152 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.96e-05/0.03047, allocations: 153 kB / 339.1 MB, free: 0.9688 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000185/0.03065, allocations: 210.5 kB / 339.3 MB, free: 0.7539 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 5.662e-05/0.03071, allocations: 33.7 kB / 339.3 MB, free: 0.7148 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 7.019e-05/0.03078, allocations: 145.8 kB / 339.5 MB, free: 0.5703 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 0.0001298/0.03091, allocations: 190.3 kB / 339.7 MB, free: 392 kB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001832/0.03109, allocations: 94.33 kB / 339.7 MB, free: 292 kB / 298.7 MB Notification: Performance of setup shared object (initialization): time 9.981e-05/0.03119, allocations: 338.8 kB / 340.1 MB, free: 15.95 MB / 314.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0009134/0.0321, allocations: 0.6064 MB / 340.7 MB, free: 15.34 MB / 314.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0009364/0.03304, allocations: 0.6898 MB / 341.4 MB, free: 14.62 MB / 314.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00169/0.03473, allocations: 1.114 MB / 342.5 MB, free: 13.48 MB / 314.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.178e-06/0.03474, allocations: 0 / 342.5 MB, free: 13.48 MB / 314.7 MB Notification: Performance of matching and sorting (n=67) (initialization): time 0.001968/0.0367, allocations: 1.298 MB / 343.8 MB, free: 12.18 MB / 314.7 MB Notification: Performance of prepare postOptimizeDAE: time 2.275e-05/0.03673, allocations: 8 kB / 343.8 MB, free: 12.17 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.055e-06/0.03673, allocations: 0 / 343.8 MB, free: 12.17 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.981e-05/0.03675, allocations: 8 kB / 343.8 MB, free: 12.16 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0006066/0.03736, allocations: 180.1 kB / 344 MB, free: 11.98 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.094e-05/0.03737, allocations: 7.984 kB / 344 MB, free: 11.98 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0005142/0.03789, allocations: 87.83 kB / 344.1 MB, free: 11.89 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.292e-05/0.03794, allocations: 27.98 kB / 344.1 MB, free: 11.86 MB / 314.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.0002388/0.03818, allocations: 165.7 kB / 344.3 MB, free: 11.69 MB / 314.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002196/0.0384, allocations: 157.4 kB / 344.4 MB, free: 11.53 MB / 314.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001054/0.0385, allocations: 67.3 kB / 344.5 MB, free: 11.46 MB / 314.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.023e-06/0.03851, allocations: 8 kB / 344.5 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.135e-06/0.03852, allocations: 0 / 344.5 MB, free: 11.45 MB / 314.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.382e-05/0.03853, allocations: 11.92 kB / 344.5 MB, free: 11.44 MB / 314.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.002753/0.04128, allocations: 1.96 MB / 346.5 MB, free: 9.305 MB / 314.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 8.146e-06/0.04129, allocations: 12 kB / 346.5 MB, free: 9.293 MB / 314.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003874/0.04168, allocations: 184.5 kB / 346.7 MB, free: 9.113 MB / 314.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.059e-05/0.04169, allocations: 12 kB / 346.7 MB, free: 9.102 MB / 314.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.37e-05/0.04172, allocations: 39.86 kB / 346.7 MB, free: 9.062 MB / 314.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.119e-05/0.04174, allocations: 19.94 kB / 346.7 MB, free: 9.043 MB / 314.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.921e-06/0.04174, allocations: 11.94 kB / 346.7 MB, free: 9.031 MB / 314.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001857/0.0436, allocations: 1.55 MB / 348.3 MB, free: 7.328 MB / 314.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001411/0.04374, allocations: 99.69 kB / 348.4 MB, free: 7.23 MB / 314.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.306e-05/0.04378, allocations: 27.94 kB / 348.4 MB, free: 7.203 MB / 314.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0003062/0.04409, allocations: 79.91 kB / 348.5 MB, free: 7.125 MB / 314.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001548/0.04424, allocations: 95.64 kB / 348.6 MB, free: 7.031 MB / 314.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.99e-05/0.04427, allocations: 32 kB / 348.6 MB, free: 7 MB / 314.7 MB Notification: Performance of sorting global known variables: time 9.245e-05/0.04437, allocations: 148.3 kB / 348.8 MB, free: 6.855 MB / 314.7 MB Notification: Performance of sort global known variables: time 5e-08/0.04437, allocations: 0 / 348.8 MB, free: 6.855 MB / 314.7 MB Notification: Performance of remove unused functions: time 0.0004302/0.0448, allocations: 112 kB / 348.9 MB, free: 6.746 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.002131/0.04693, allocations: 2.134 MB / 351 MB, free: 4.453 MB / 314.7 MB Notification: Performance of simCode: created initialization part: time 0.001595/0.04852, allocations: 1.003 MB / 352 MB, free: 3.445 MB / 314.7 MB Notification: Performance of simCode: created event and clocks part: time 5.25e-06/0.04853, allocations: 0 / 352 MB, free: 3.445 MB / 314.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0005774/0.0491, allocations: 338.2 kB / 352.3 MB, free: 3.117 MB / 314.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006152/0.04972, allocations: 140.1 kB / 352.5 MB, free: 2.98 MB / 314.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.007421/0.05714, allocations: 6.389 MB / 358.9 MB, free: 12.18 MB / 330.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001589/0.0573, allocations: 211.3 kB / 359.1 MB, free: 11.95 MB / 330.7 MB Notification: Performance of simCode: alias equations: time 0.0003056/0.05761, allocations: 87.19 kB / 359.2 MB, free: 11.87 MB / 330.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0002578/0.05786, allocations: 116.5 kB / 359.3 MB, free: 11.75 MB / 330.7 MB Notification: Performance of SimCode: time 1.352e-06/0.05786, allocations: 0 / 359.3 MB, free: 11.75 MB / 330.7 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02778/0.08565, allocations: 12.48 MB / 371.7 MB, free: 15.44 MB / 346.7 MB Notification: Performance of buildModelFMU: Generate platform static: time 6.975/7.061, allocations: 7.922 kB / 371.7 MB, free: 15.43 MB / 346.7 MB " [Timeout remaining time 653] (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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins/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: 8.846339772455394]