Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.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.001275/0.001275, allocations: 101.5 kB / 21.21 MB, free: 0.6289 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.001416/0.001416, allocations: 195.4 kB / 24.49 MB, free: 3.941 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.356/1.356, allocations: 225.7 MB / 253.3 MB, free: 12.82 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.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001559/0.001559, allocations: 47.92 kB / 371.2 MB, free: 9.781 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2338/0.2354, allocations: 52.18 MB / 423.3 MB, free: 14.39 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled): time 0.003531/0.2389, allocations: 2.228 MB / 425.6 MB, free: 12.15 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001318/0.2402, allocations: 0.7327 MB / 426.3 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001276/0.2404, allocations: 7.938 kB / 426.3 MB, free: 11.41 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002564/0.2406, allocations: 51.52 kB / 426.4 MB, free: 11.36 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001928/0.2408, allocations: 67.55 kB / 426.4 MB, free: 11.29 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004524/0.2413, allocations: 167.6 kB / 426.6 MB, free: 11.12 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004001/0.2417, allocations: 371.6 kB / 427 MB, free: 10.76 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001661/0.2418, allocations: 71.8 kB / 427 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000216/0.2421, allocations: 159.5 kB / 427.2 MB, free: 10.54 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002349/0.2423, allocations: 183.3 kB / 427.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.884e-05/0.2424, allocations: 36 kB / 427.4 MB, free: 10.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.259e-05/0.2424, allocations: 32 kB / 427.4 MB, free: 10.29 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001163/0.2425, allocations: 95.72 kB / 427.5 MB, free: 10.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001268/0.2427, allocations: 127.4 kB / 427.6 MB, free: 10.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000371/0.243, allocations: 339.4 kB / 428 MB, free: 9.746 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.396e-06/0.243, allocations: 0 / 428 MB, free: 9.746 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.042e-06/0.243, allocations: 0 / 428 MB, free: 9.746 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.005e-05/0.243, allocations: 0 / 428 MB, free: 9.746 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.0012/0.2442, allocations: 0.5522 MB / 428.5 MB, free: 9.164 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.721e-05/0.2443, allocations: 8.031 kB / 428.5 MB, free: 9.156 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.887e-05/0.2443, allocations: 12.69 kB / 428.5 MB, free: 9.145 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.792e-05/0.2444, allocations: 70.72 kB / 428.6 MB, free: 9.066 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.213e-05/0.2444, allocations: 36.75 kB / 428.7 MB, free: 9.031 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004004/0.2448, allocations: 217.9 kB / 428.9 MB, free: 8.797 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 0.0003045/0.2451, allocations: 347.9 kB / 429.2 MB, free: 8.391 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 6.454e-05/0.2452, allocations: 28.12 kB / 429.2 MB, free: 8.363 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001213/0.2464, allocations: 0.5581 MB / 429.8 MB, free: 7.777 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.685e-05/0.2464, allocations: 0 / 429.8 MB, free: 7.777 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.687e-05/0.2465, allocations: 12 kB / 429.8 MB, free: 7.766 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.012e-05/0.2465, allocations: 8 kB / 429.8 MB, free: 7.758 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.001386/0.2479, allocations: 0.5152 MB / 430.3 MB, free: 7.242 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001574/0.2494, allocations: 0.8868 MB / 431.2 MB, free: 6.289 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.001425/0.2509, allocations: 470.5 kB / 431.7 MB, free: 5.793 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0006377/0.2515, allocations: 243.5 kB / 431.9 MB, free: 5.543 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.436e-05/0.2516, allocations: 11.94 kB / 431.9 MB, free: 5.531 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.258e-05/0.2516, allocations: 42.5 kB / 432 MB, free: 5.48 MB / 334.1 MB Notification: Performance of pre-optimization done (n=45): time 2.084e-06/0.2516, allocations: 0 / 432 MB, free: 5.48 MB / 334.1 MB Notification: Performance of matching and sorting (n=73): time 0.0384/0.29, allocations: 5.744 MB / 437.7 MB, free: 15.72 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001178/0.2901, allocations: 148.9 kB / 437.9 MB, free: 15.55 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002325/0.2903, allocations: 199.2 kB / 438 MB, free: 15.35 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 8.188e-05/0.2904, allocations: 41.7 kB / 438.1 MB, free: 15.3 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001041/0.2905, allocations: 141.7 kB / 438.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 0.0002131/0.2907, allocations: 202.3 kB / 438.4 MB, free: 14.96 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000306/0.291, allocations: 110.7 kB / 438.5 MB, free: 14.84 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001564/0.2912, allocations: 346.8 kB / 438.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.001558/0.2928, allocations: 0.6188 MB / 439.5 MB, free: 13.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.001666/0.2944, allocations: 0.8042 MB / 440.3 MB, free: 12.99 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00291/0.2973, allocations: 1.256 MB / 441.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.097e-06/0.2973, allocations: 0 / 441.6 MB, free: 11.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=84) (initialization): time 0.003487/0.3008, allocations: 1.415 MB / 443 MB, free: 10.23 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.083e-05/0.3009, allocations: 8 kB / 443 MB, free: 10.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.784e-05/0.3009, allocations: 8 kB / 443 MB, free: 10.22 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.492e-05/0.3009, allocations: 11.94 kB / 443 MB, free: 10.21 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.001301/0.3022, allocations: 207.7 kB / 443.2 MB, free: 10 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.386e-05/0.3022, allocations: 15.94 kB / 443.2 MB, free: 9.988 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000924/0.3031, allocations: 103.8 kB / 443.3 MB, free: 9.887 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.028e-05/0.3032, allocations: 24 kB / 443.3 MB, free: 9.863 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.0003311/0.3036, allocations: 182.7 kB / 443.5 MB, free: 9.676 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000335/0.3039, allocations: 157.7 kB / 443.7 MB, free: 9.516 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.00015/0.304, allocations: 75.23 kB / 443.7 MB, free: 9.445 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.626e-06/0.3041, allocations: 8 kB / 443.7 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.093e-06/0.3041, allocations: 0 / 443.7 MB, free: 9.438 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.286e-06/0.3041, allocations: 3.984 kB / 443.8 MB, free: 9.434 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.004667/0.3087, allocations: 1.972 MB / 445.7 MB, free: 7.285 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.368e-05/0.3088, allocations: 8 kB / 445.7 MB, free: 7.277 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0007315/0.3095, allocations: 188.4 kB / 445.9 MB, free: 7.094 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.7e-05/0.3095, allocations: 16 kB / 445.9 MB, free: 7.078 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.467e-05/0.3096, allocations: 24 kB / 446 MB, free: 7.055 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.638e-05/0.3096, allocations: 19.92 kB / 446 MB, free: 7.035 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.157e-05/0.3096, allocations: 15.94 kB / 446 MB, free: 7.02 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.003179/0.3128, allocations: 1.573 MB / 447.6 MB, free: 5.293 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002125/0.313, allocations: 87.69 kB / 447.6 MB, free: 5.207 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.342e-05/0.3131, allocations: 35.98 kB / 447.7 MB, free: 5.172 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0005779/0.3136, allocations: 75.92 kB / 447.8 MB, free: 5.098 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0002116/0.3138, allocations: 103.6 kB / 447.9 MB, free: 4.996 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 5.329e-05/0.3139, allocations: 28 kB / 447.9 MB, free: 4.969 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001412/0.314, allocations: 147.2 kB / 448 MB, free: 4.824 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.314, allocations: 0 / 448 MB, free: 4.824 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006634/0.3147, allocations: 124 kB / 448.2 MB, free: 4.703 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: 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.00357/0.3183, allocations: 2.149 MB / 450.3 MB, free: 2.395 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.00275/0.321, allocations: 1.045 MB / 451.3 MB, free: 1.348 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 8.706e-06/0.321, allocations: 1.375 kB / 451.3 MB, free: 1.348 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.001025/0.3221, allocations: 345.8 kB / 451.7 MB, free: 1.012 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008992/0.323, allocations: 128.5 kB / 451.8 MB, free: 0.8867 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.01341/0.3364, allocations: 6.834 MB / 458.6 MB, free: 9.559 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002728/0.3366, allocations: 207.3 kB / 458.8 MB, free: 9.336 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0004992/0.3371, allocations: 99.3 kB / 458.9 MB, free: 9.238 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0004005/0.3375, allocations: 115.4 kB / 459.1 MB, free: 9.129 MB / 366.1 MB Notification: Performance of SimCode: time 7.01e-07/0.3375, allocations: 0 / 459.1 MB, free: 9.129 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03811/0.3757, allocations: 12.42 MB / 471.5 MB, free: 12.91 MB / 382.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.12/11.49, allocations: 10.45 kB / 471.5 MB, free: 12.9 MB / 382.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled_fmu --startTime=0 --stopTime=4 --stepSize=0.000499563 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_CascadeControlledDrive_SuperSampled.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.CascadeControlledDrive.SuperSampled_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/CascadeControlledDrive/SuperSampled/SuperSampled.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.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.051310911076143]