Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001582/0.001582, allocations: 112.2 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.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001713/0.001713, allocations: 212.2 kB / 24.53 MB, free: 4.07 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.448/1.448, allocations: 230.6 MB / 258.3 MB, free: 7.988 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001472/0.001472, allocations: 47.92 kB / 378.5 MB, free: 3.168 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2544/0.2558, allocations: 53.36 MB / 431.9 MB, free: 6.875 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.004104/0.2599, allocations: 2.372 MB / 434.3 MB, free: 4.496 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001671/0.2616, allocations: 0.8144 MB / 435.1 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001557/0.2618, allocations: 7.938 kB / 435.1 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0003022/0.2621, allocations: 47.58 kB / 435.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002105/0.2623, allocations: 67.55 kB / 435.2 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005073/0.2628, allocations: 171.6 kB / 435.4 MB, free: 3.387 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004351/0.2632, allocations: 371.6 kB / 435.7 MB, free: 3.023 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001977/0.2634, allocations: 67.8 kB / 435.8 MB, free: 2.957 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003206/0.2637, allocations: 175.4 kB / 436 MB, free: 2.785 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002679/0.264, allocations: 175.3 kB / 436.1 MB, free: 2.613 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.359e-05/0.2641, allocations: 36 kB / 436.2 MB, free: 2.578 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.91e-05/0.2641, allocations: 32 kB / 436.2 MB, free: 2.547 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001257/0.2642, allocations: 99.66 kB / 436.3 MB, free: 2.449 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001444/0.2644, allocations: 139.3 kB / 436.4 MB, free: 2.312 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004408/0.2648, allocations: 327.5 kB / 436.8 MB, free: 2 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.478e-06/0.2648, allocations: 0 / 436.8 MB, free: 2 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.413e-06/0.2648, allocations: 0 / 436.8 MB, free: 2 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.372e-06/0.2648, allocations: 0 / 436.8 MB, free: 2 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.001244/0.2661, allocations: 0.556 MB / 437.3 MB, free: 1.414 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.978e-05/0.2661, allocations: 8.031 kB / 437.3 MB, free: 1.406 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.242e-05/0.2661, allocations: 12.69 kB / 437.3 MB, free: 1.391 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 8.482e-05/0.2662, allocations: 66.72 kB / 437.4 MB, free: 1.316 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.858e-05/0.2663, allocations: 40.75 kB / 437.4 MB, free: 1.277 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004052/0.2667, allocations: 204.2 kB / 437.6 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003234/0.267, allocations: 347.9 kB / 438 MB, free: 0.6484 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.934e-05/0.2671, allocations: 40.08 kB / 438 MB, free: 0.6094 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001185/0.2683, allocations: 0.5462 MB / 438.6 MB, free: 40 kB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.811e-05/0.2683, allocations: 4 kB / 438.6 MB, free: 36 kB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.705e-05/0.2683, allocations: 8 kB / 438.6 MB, free: 28 kB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.09e-05/0.2683, allocations: 8 kB / 438.6 MB, free: 20 kB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001461/0.2698, allocations: 0.5074 MB / 439.1 MB, free: 15.51 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001591/0.2714, allocations: 0.9528 MB / 440.1 MB, free: 14.49 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001621/0.273, allocations: 486.5 kB / 440.5 MB, free: 13.98 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006419/0.2737, allocations: 235.4 kB / 440.8 MB, free: 13.74 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.927e-05/0.2737, allocations: 16.11 kB / 440.8 MB, free: 13.72 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.027e-05/0.2738, allocations: 46.5 kB / 440.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of pre-optimization done (n=44): time 2.044e-06/0.2738, allocations: 0 / 440.8 MB, free: 13.67 MB / 350.1 MB Notification: Performance of matching and sorting (n=72): time 0.03893/0.3127, allocations: 5.715 MB / 446.5 MB, free: 7.945 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001686/0.3129, allocations: 153.2 kB / 446.7 MB, free: 7.766 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002813/0.3131, allocations: 192 kB / 446.9 MB, free: 7.57 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 9.479e-05/0.3132, allocations: 37.7 kB / 446.9 MB, free: 7.527 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001078/0.3133, allocations: 137.8 kB / 447 MB, free: 7.387 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002337/0.3136, allocations: 206.3 kB / 447.2 MB, free: 7.184 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000319/0.3139, allocations: 114.7 kB / 447.4 MB, free: 7.066 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000188/0.3141, allocations: 338.8 kB / 447.7 MB, free: 6.727 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001665/0.3157, allocations: 0.611 MB / 448.3 MB, free: 6.113 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001818/0.3176, allocations: 0.8006 MB / 449.1 MB, free: 5.238 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00324/0.3208, allocations: 1.255 MB / 450.4 MB, free: 3.906 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.367e-06/0.3208, allocations: 0 / 450.4 MB, free: 3.906 MB / 350.1 MB Notification: Performance of matching and sorting (n=83) (initialization): time 0.003794/0.3246, allocations: 1.402 MB / 451.8 MB, free: 2.496 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.115e-05/0.3246, allocations: 11.94 kB / 451.8 MB, free: 2.484 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.685e-05/0.3246, allocations: 4 kB / 451.8 MB, free: 2.48 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.654e-05/0.3247, allocations: 12 kB / 451.8 MB, free: 2.469 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001352/0.326, allocations: 203.7 kB / 452 MB, free: 2.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.212e-05/0.3261, allocations: 15.92 kB / 452 MB, free: 2.254 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000935/0.327, allocations: 107.8 kB / 452.1 MB, free: 2.148 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.622e-05/0.3271, allocations: 28 kB / 452.1 MB, free: 2.121 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.0003803/0.3275, allocations: 185.5 kB / 452.3 MB, free: 1.93 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003425/0.3278, allocations: 153.4 kB / 452.5 MB, free: 1.773 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001837/0.328, allocations: 67.3 kB / 452.5 MB, free: 1.711 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.165e-05/0.328, allocations: 8 kB / 452.5 MB, free: 1.703 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.037e-06/0.328, allocations: 4 kB / 452.5 MB, free: 1.699 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 9.197e-06/0.328, allocations: 3.984 kB / 452.5 MB, free: 1.695 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.005042/0.3331, allocations: 2.139 MB / 454.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.516e-05/0.3331, allocations: 8 kB / 454.7 MB, free: 15.37 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007571/0.3338, allocations: 179.7 kB / 454.9 MB, free: 15.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.813e-05/0.3338, allocations: 16.5 kB / 454.9 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.403e-05/0.3339, allocations: 28 kB / 454.9 MB, free: 15.15 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.921e-05/0.3339, allocations: 23.86 kB / 454.9 MB, free: 15.13 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.194e-05/0.3339, allocations: 15.94 kB / 454.9 MB, free: 15.11 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003468/0.3374, allocations: 1.549 MB / 456.5 MB, free: 13.41 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002053/0.3376, allocations: 87.77 kB / 456.6 MB, free: 13.32 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.74e-05/0.3377, allocations: 31.98 kB / 456.6 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.000584/0.3383, allocations: 71.92 kB / 456.7 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002014/0.3385, allocations: 103.6 kB / 456.8 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.34e-05/0.3385, allocations: 32 kB / 456.8 MB, free: 13.09 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001509/0.3387, allocations: 147.7 kB / 457 MB, free: 12.95 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.3387, allocations: 4 kB / 457 MB, free: 12.94 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0006717/0.3393, allocations: 127.9 kB / 457.1 MB, free: 12.82 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.003782/0.3431, allocations: 2.122 MB / 459.2 MB, free: 10.54 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.003061/0.3462, allocations: 1.03 MB / 460.2 MB, free: 9.5 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 6.452e-06/0.3462, allocations: 0 / 460.2 MB, free: 9.5 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.00106/0.3473, allocations: 330.4 kB / 460.6 MB, free: 9.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009508/0.3482, allocations: 139.5 kB / 460.7 MB, free: 9.043 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01427/0.3625, allocations: 6.776 MB / 467.5 MB, free: 1.777 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005445/0.363, allocations: 0.8089 MB / 468.3 MB, free: 0.9375 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004907/0.3635, allocations: 99.31 kB / 468.4 MB, free: 0.8359 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004044/0.3639, allocations: 119.4 kB / 468.5 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of SimCode: time 1.483e-06/0.3639, allocations: 0 / 468.5 MB, free: 0.7188 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04016/0.4041, allocations: 11.99 MB / 480.5 MB, free: 4.883 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.59, allocations: 14.5 kB / 480.5 MB, free: 4.871 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 14.276815549004823]