Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001336/0.001336, allocations: 112.5 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.001613/0.001613, allocations: 216.3 kB / 24.53 MB, free: 4.066 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.434/1.434, allocations: 230.6 MB / 258.3 MB, free: 7.992 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.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001817/0.001817, allocations: 51.92 kB / 378.5 MB, free: 3.238 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2767/0.2785, allocations: 53.37 MB / 431.9 MB, free: 6.863 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.003666/0.2822, allocations: 2.067 MB / 434 MB, free: 4.793 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001092/0.2833, allocations: 0.6193 MB / 434.6 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001159/0.2834, allocations: 7.938 kB / 434.6 MB, free: 4.16 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001156/0.2835, allocations: 19.8 kB / 434.6 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001759/0.2837, allocations: 27.72 kB / 434.6 MB, free: 4.113 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002818/0.2839, allocations: 79.72 kB / 434.7 MB, free: 4.035 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001975/0.2841, allocations: 127.6 kB / 434.9 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001428/0.2843, allocations: 42.05 kB / 434.9 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.831e-05/0.2844, allocations: 55.78 kB / 434.9 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.96e-05/0.2845, allocations: 63.64 kB / 435 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.455e-05/0.2845, allocations: 12 kB / 435 MB, free: 3.734 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.228e-05/0.2845, allocations: 12 kB / 435 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.695e-05/0.2846, allocations: 35.84 kB / 435.1 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.119e-05/0.2847, allocations: 67.55 kB / 435.1 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002259/0.2849, allocations: 152.1 kB / 435.3 MB, free: 3.477 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.928e-06/0.2849, allocations: 0 / 435.3 MB, free: 3.477 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.423e-06/0.2849, allocations: 0 / 435.3 MB, free: 3.477 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.18e-06/0.2849, allocations: 0 / 435.3 MB, free: 3.477 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0006195/0.2855, allocations: 385.6 kB / 435.7 MB, free: 3.07 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.385e-05/0.2856, allocations: 8.031 kB / 435.7 MB, free: 3.062 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.594e-05/0.2856, allocations: 8.188 kB / 435.7 MB, free: 3.055 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.877e-05/0.2856, allocations: 46.73 kB / 435.7 MB, free: 3 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.514e-05/0.2857, allocations: 24.8 kB / 435.7 MB, free: 2.977 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002623/0.2859, allocations: 150.3 kB / 435.9 MB, free: 2.805 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.541e-05/0.2859, allocations: 8.375 kB / 435.9 MB, free: 2.797 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.308e-05/0.286, allocations: 20.31 kB / 435.9 MB, free: 2.777 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004896/0.2865, allocations: 261.3 kB / 436.2 MB, free: 2.5 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.242e-05/0.2865, allocations: 0 / 436.2 MB, free: 2.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.431e-05/0.2865, allocations: 12 kB / 436.2 MB, free: 2.488 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.563e-06/0.2865, allocations: 4 kB / 436.2 MB, free: 2.484 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002465/0.2867, allocations: 83.86 kB / 436.3 MB, free: 2.402 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006286/0.2874, allocations: 0.5388 MB / 436.8 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003309/0.2877, allocations: 139.7 kB / 436.9 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001547/0.2879, allocations: 66.83 kB / 437 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.318e-05/0.2879, allocations: 11.94 kB / 437 MB, free: 1.551 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.455e-05/0.2879, allocations: 34.56 kB / 437.1 MB, free: 1.508 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.252e-06/0.2879, allocations: 0 / 437.1 MB, free: 1.508 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005119/0.2884, allocations: 193.3 kB / 437.2 MB, free: 1.312 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.698e-05/0.2885, allocations: 115.3 kB / 437.4 MB, free: 1.176 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001351/0.2886, allocations: 154.2 kB / 437.5 MB, free: 1.016 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 1.954e-05/0.2886, allocations: 33.7 kB / 437.5 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.393e-05/0.2887, allocations: 120.4 kB / 437.7 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.6e-05/0.2887, allocations: 27.78 kB / 437.7 MB, free: 0.8281 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.468e-05/0.2888, allocations: 37.7 kB / 437.7 MB, free: 0.7852 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001304/0.2889, allocations: 322.8 kB / 438 MB, free: 472 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001151/0.289, allocations: 39.97 kB / 438.1 MB, free: 432 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001929/0.2892, allocations: 139.3 kB / 438.2 MB, free: 244 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002933/0.2895, allocations: 189.5 kB / 438.4 MB, free: 4 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.185e-06/0.2895, allocations: 0 / 438.4 MB, free: 4 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003798/0.2899, allocations: 201.7 kB / 438.6 MB, free: 15.8 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.772e-05/0.2899, allocations: 8 kB / 438.6 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.35e-06/0.2899, allocations: 0 / 438.6 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.29, allocations: 8 kB / 438.6 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001518/0.2901, allocations: 51.89 kB / 438.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.113e-05/0.2901, allocations: 8 kB / 438.7 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001034/0.2902, allocations: 19.88 kB / 438.7 MB, free: 15.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.605e-05/0.2902, allocations: 12 kB / 438.7 MB, free: 15.7 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 16 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for initialization (21): * Single equations (assignments): 21 * 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.0001231/0.2904, allocations: 134.4 kB / 438.8 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001589/0.2905, allocations: 93.53 kB / 438.9 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.001e-05/0.2906, allocations: 20.7 kB / 438.9 MB, free: 15.44 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.458e-06/0.2906, allocations: 4 kB / 438.9 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.729e-06/0.2906, allocations: 3.938 kB / 439 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.878e-06/0.2906, allocations: 0 / 439 MB, free: 15.43 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002704/0.2909, allocations: 192.5 kB / 439.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.303e-06/0.2909, allocations: 0 / 439.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001778/0.2911, allocations: 35.98 kB / 439.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.147e-06/0.2911, allocations: 8 kB / 439.2 MB, free: 15.16 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.322e-05/0.2911, allocations: 4 kB / 439.2 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.663e-06/0.2911, allocations: 3.938 kB / 439.2 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.42e-07/0.2911, allocations: 0 / 439.2 MB, free: 15.15 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005396/0.2916, allocations: 387.4 kB / 439.6 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.341e-05/0.2917, allocations: 23.92 kB / 439.6 MB, free: 14.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.42e-05/0.2917, allocations: 8 kB / 439.6 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001317/0.2918, allocations: 7.984 kB / 439.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.291e-05/0.2919, allocations: 3.984 kB / 439.6 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.135e-06/0.2919, allocations: 8.094 kB / 439.6 MB, free: 14.7 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.719e-05/0.292, allocations: 123.1 kB / 439.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.292, allocations: 0 / 439.7 MB, free: 14.58 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003041/0.2923, allocations: 28 kB / 439.8 MB, free: 14.55 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 2 (load.phi,load.w) * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 1 (PI.x) * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 15 * 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.0008074/0.2931, allocations: 0.9272 MB / 440.7 MB, free: 13.59 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003084/0.2934, allocations: 115.7 kB / 440.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.033e-06/0.2934, allocations: 0 / 440.8 MB, free: 13.48 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.505e-05/0.2935, allocations: 28.91 kB / 440.8 MB, free: 13.45 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004972/0.294, allocations: 71.73 kB / 440.9 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002424/0.2964, allocations: 2.118 MB / 443 MB, free: 11.09 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003361/0.2967, allocations: 0.7201 MB / 443.7 MB, free: 10.35 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.977e-05/0.2968, allocations: 13.42 kB / 443.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.772e-05/0.2969, allocations: 43.42 kB / 443.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of SimCode: time 2.9e-07/0.2969, allocations: 0 / 443.8 MB, free: 10.29 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0245/0.3214, allocations: 3.202 MB / 447 MB, free: 7.277 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.9/11.23, allocations: 3.938 kB / 447 MB, free: 7.273 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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,der(load.phi),der(load.w),feedback.u1,feedback.u2,feedback.y,hold1.u,hold1.y,hold1.y_start,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,periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,previous(PI.x),ramp.duration,ramp.height,ramp.offset,ramp.startTime,ramp.y,sample1.u,sample1.y,sample2.u,sample2.y,speed.flange.phi,speed.flange.tau,speed.w,time,torque.flange.phi,torque.flange.tau,torque.tau,torque.useSupport [Calling sys.exit(0), Time elapsed: 13.790296263992786]