Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.001608/0.001608, allocations: 112.5 kB / 21.22 MB, free: 0.75 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.002105/0.002105, allocations: 205.2 kB / 24.52 MB, free: 4.156 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.447/1.447, allocations: 230.6 MB / 258.3 MB, free: 8.012 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.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001602/0.001602, allocations: 47.94 kB / 378.5 MB, free: 3.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.286/0.2876, allocations: 53.36 MB / 431.9 MB, free: 6.852 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.004307/0.2919, allocations: 2.105 MB / 434 MB, free: 4.742 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001256/0.2932, allocations: 0.5492 MB / 434.6 MB, free: 4.188 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001488/0.2933, allocations: 4 kB / 434.6 MB, free: 4.184 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001543/0.2935, allocations: 19.8 kB / 434.6 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.31e-05/0.2936, allocations: 23.73 kB / 434.6 MB, free: 4.141 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003464/0.2939, allocations: 55.88 kB / 434.7 MB, free: 4.086 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000309/0.2942, allocations: 131.5 kB / 434.8 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001795/0.2944, allocations: 43.66 kB / 434.8 MB, free: 3.906 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001096/0.2945, allocations: 59.8 kB / 434.9 MB, free: 3.848 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001507/0.2947, allocations: 55.7 kB / 434.9 MB, free: 3.793 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.382e-05/0.2947, allocations: 12 kB / 434.9 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.448e-05/0.2947, allocations: 12 kB / 435 MB, free: 3.77 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.373e-05/0.2948, allocations: 27.91 kB / 435 MB, free: 3.742 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.068e-05/0.2949, allocations: 55.67 kB / 435 MB, free: 3.688 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002255/0.2951, allocations: 131.3 kB / 435.2 MB, free: 3.559 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.017e-06/0.2951, allocations: 4 kB / 435.2 MB, free: 3.555 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.472e-06/0.2951, allocations: 0 / 435.2 MB, free: 3.555 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.59e-06/0.2951, allocations: 0 / 435.2 MB, free: 3.555 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: 29 * Number of variables: 29 Notification: Performance of Generate backend data structure: time 0.0006287/0.2957, allocations: 365.7 kB / 435.5 MB, free: 3.168 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.879e-05/0.2958, allocations: 12.03 kB / 435.5 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.891e-05/0.2958, allocations: 192 / 435.5 MB, free: 3.156 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.299e-05/0.2958, allocations: 46.73 kB / 435.6 MB, free: 3.102 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.941e-05/0.2959, allocations: 16.84 kB / 435.6 MB, free: 3.086 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002901/0.2962, allocations: 150.3 kB / 435.8 MB, free: 2.914 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.501e-05/0.2962, allocations: 12.38 kB / 435.8 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.206e-05/0.2962, allocations: 12.38 kB / 435.8 MB, free: 2.891 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005209/0.2967, allocations: 239.2 kB / 436 MB, free: 2.633 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.412e-05/0.2968, allocations: 4 kB / 436 MB, free: 2.629 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.881e-05/0.2968, allocations: 8 kB / 436 MB, free: 2.621 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.985e-06/0.2968, allocations: 4 kB / 436 MB, free: 2.617 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002497/0.297, allocations: 79.88 kB / 436.1 MB, free: 2.539 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007834/0.2978, allocations: 0.5388 MB / 436.6 MB, free: 1.941 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003748/0.2982, allocations: 155.9 kB / 436.8 MB, free: 1.762 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000226/0.2984, allocations: 62.64 kB / 436.9 MB, free: 1.691 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.281e-05/0.2984, allocations: 0 / 436.9 MB, free: 1.691 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.804e-05/0.2985, allocations: 42.5 kB / 436.9 MB, free: 1.641 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.002e-06/0.2985, allocations: 0 / 436.9 MB, free: 1.641 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005481/0.299, allocations: 181.3 kB / 437.1 MB, free: 1.457 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.625e-05/0.2991, allocations: 114.8 kB / 437.2 MB, free: 1.32 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001277/0.2993, allocations: 137.2 kB / 437.3 MB, free: 1.18 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.251e-05/0.2993, allocations: 29.7 kB / 437.3 MB, free: 1.145 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.448e-05/0.2994, allocations: 120 kB / 437.5 MB, free: 1.023 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 8.374e-05/0.2994, allocations: 27.78 kB / 437.5 MB, free: 0.9961 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.135e-05/0.2995, allocations: 41.83 kB / 437.5 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002098/0.2997, allocations: 322.8 kB / 437.8 MB, free: 0.625 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.2998, allocations: 39.97 kB / 437.9 MB, free: 0.5859 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001982/0.3, allocations: 139.7 kB / 438 MB, free: 412 kB / 334.1 MB Warning: It was not possible to determine if the initialization problem is consistent, because of not evaluable parameters/start values during compile time: PI.y = PI.y_start (0.0 = PI.y_start) Notification: Performance of analyzeInitialSystem (initialization): time 0.0004332/0.3005, allocations: 203.2 kB / 438.2 MB, free: 160 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.705e-06/0.3005, allocations: 4 kB / 438.2 MB, free: 156 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004068/0.3009, allocations: 205.4 kB / 438.4 MB, free: 15.95 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.936e-05/0.3009, allocations: 6.812 kB / 438.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.234e-06/0.3009, allocations: 4 kB / 438.4 MB, free: 15.94 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.213e-05/0.3009, allocations: 8.469 kB / 438.4 MB, free: 15.93 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001615/0.3011, allocations: 51.92 kB / 438.5 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.264e-05/0.3011, allocations: 7.984 kB / 438.5 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001115/0.3012, allocations: 19.89 kB / 438.5 MB, free: 15.85 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.636e-05/0.3012, allocations: 12 kB / 438.5 MB, free: 15.84 MB / 350.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization system: PI.y = PI.y_start. 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.0001557/0.3014, allocations: 133.7 kB / 438.7 MB, free: 15.7 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001769/0.3016, allocations: 93.89 kB / 438.8 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.677e-05/0.3016, allocations: 12.72 kB / 438.8 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.591e-06/0.3016, allocations: 8 kB / 438.8 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.03e-06/0.3016, allocations: 0 / 438.8 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.452e-06/0.3016, allocations: 3.984 kB / 438.8 MB, free: 15.57 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003007/0.3019, allocations: 188.5 kB / 439 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.684e-06/0.3019, allocations: 0 / 439 MB, free: 15.35 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002119/0.3021, allocations: 39.97 kB / 439 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.949e-06/0.3021, allocations: 4 kB / 439 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.398e-05/0.3022, allocations: 4 kB / 439 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.687e-06/0.3022, allocations: 3.938 kB / 439 MB, free: 15.3 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.376e-06/0.3022, allocations: 4 kB / 439 MB, free: 15.29 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005744/0.3027, allocations: 381.1 kB / 439.4 MB, free: 14.9 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.181e-05/0.3028, allocations: 15.95 kB / 439.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.246e-05/0.3028, allocations: 0 / 439.4 MB, free: 14.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001368/0.3029, allocations: 16.05 kB / 439.4 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.707e-05/0.303, allocations: 7.984 kB / 439.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.518e-06/0.303, allocations: 4 kB / 439.4 MB, free: 14.86 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.526e-05/0.3031, allocations: 99.27 kB / 439.5 MB, free: 14.76 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.3031, allocations: 3.938 kB / 439.5 MB, free: 14.76 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003214/0.3034, allocations: 31.95 kB / 439.6 MB, free: 14.73 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.0009501/0.3043, allocations: 0.9155 MB / 440.5 MB, free: 13.78 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003609/0.3047, allocations: 134 kB / 440.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.365e-06/0.3047, allocations: 0 / 440.6 MB, free: 13.65 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001003/0.3048, allocations: 23.98 kB / 440.6 MB, free: 13.63 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005622/0.3053, allocations: 66.7 kB / 440.7 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002929/0.3083, allocations: 2.114 MB / 442.8 MB, free: 11.27 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003641/0.3086, allocations: 0.7123 MB / 443.5 MB, free: 10.54 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.125e-05/0.3087, allocations: 9.094 kB / 443.5 MB, free: 10.53 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.072e-05/0.3088, allocations: 39.42 kB / 443.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of SimCode: time 9.12e-07/0.3088, allocations: 0 / 443.6 MB, free: 10.49 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02581/0.3346, allocations: 3.227 MB / 446.8 MB, free: 7.441 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.14/11.47, allocations: 7.312 kB / 446.8 MB, free: 7.438 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.initType,PI.k,PI.u,PI.x,PI.x_start,PI.y,PI.y_start,der(PI.x),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.period,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: 14.043386003002524]