Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.001731/0.001731, allocations: 109.1 kB / 21.22 MB, free: 0.6484 MB / 14.72 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.001806/0.001806, allocations: 210.1 kB / 24.51 MB, free: 3.941 MB / 14.72 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 1.499/1.499, allocations: 230.5 MB / 258.2 MB, free: 7.809 MB / 206.1 MB " [Timeout remaining time 178] 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.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002438/0.002438, allocations: 67.89 kB / 378.5 MB, free: 2.875 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3821/0.3846, allocations: 53.41 MB / 431.9 MB, free: 6.52 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.004213/0.3888, allocations: 2 MB / 433.9 MB, free: 4.516 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001327/0.3901, allocations: 0.5727 MB / 434.5 MB, free: 3.938 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001493/0.3902, allocations: 7.938 kB / 434.5 MB, free: 3.93 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001372/0.3904, allocations: 15.8 kB / 434.5 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002112/0.3906, allocations: 35.66 kB / 434.5 MB, free: 3.879 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003745/0.391, allocations: 71.8 kB / 434.6 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002344/0.3912, allocations: 131.5 kB / 434.7 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001643/0.3914, allocations: 40.17 kB / 434.8 MB, free: 3.637 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.94e-05/0.3915, allocations: 59.72 kB / 434.8 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001073/0.3916, allocations: 63.69 kB / 434.9 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.001e-05/0.3916, allocations: 12 kB / 434.9 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.63e-05/0.3916, allocations: 12 kB / 434.9 MB, free: 3.492 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 6.713e-05/0.3917, allocations: 27.92 kB / 434.9 MB, free: 3.465 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.43e-05/0.3918, allocations: 51.67 kB / 435 MB, free: 3.414 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002674/0.392, allocations: 151.2 kB / 435.1 MB, free: 3.266 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.061e-06/0.392, allocations: 0 / 435.1 MB, free: 3.266 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.164e-06/0.392, allocations: 4 kB / 435.1 MB, free: 3.262 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.142e-05/0.3921, allocations: 3.938 kB / 435.1 MB, free: 3.258 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.0006645/0.3927, allocations: 385.6 kB / 435.5 MB, free: 2.852 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.964e-05/0.3928, allocations: 12.03 kB / 435.5 MB, free: 2.84 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.957e-05/0.3928, allocations: 4.188 kB / 435.5 MB, free: 2.836 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.486e-05/0.3928, allocations: 46.73 kB / 435.6 MB, free: 2.781 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.366e-05/0.3929, allocations: 20.8 kB / 435.6 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002733/0.3931, allocations: 161.3 kB / 435.8 MB, free: 2.582 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.601e-05/0.3932, allocations: 8.375 kB / 435.8 MB, free: 2.574 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.082e-05/0.3932, allocations: 12.38 kB / 435.8 MB, free: 2.562 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000538/0.3937, allocations: 258.4 kB / 436 MB, free: 2.285 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.744e-05/0.3938, allocations: 4 kB / 436 MB, free: 2.281 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.765e-05/0.3938, allocations: 4 kB / 436 MB, free: 2.277 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.096e-06/0.3938, allocations: 4 kB / 436 MB, free: 2.273 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002509/0.394, allocations: 87.86 kB / 436.1 MB, free: 2.188 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007057/0.3947, allocations: 0.5232 MB / 436.7 MB, free: 1.602 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000394/0.3951, allocations: 139.9 kB / 436.8 MB, free: 1.438 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001685/0.3953, allocations: 70.62 kB / 436.9 MB, free: 1.359 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.659e-05/0.3953, allocations: 7.984 kB / 436.9 MB, free: 1.352 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.599e-05/0.3954, allocations: 34.56 kB / 436.9 MB, free: 1.309 MB / 334.1 MB Notification: Performance of pre-optimization done (n=15): time 1.272e-06/0.3954, allocations: 3.938 kB / 436.9 MB, free: 1.305 MB / 334.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005708/0.3959, allocations: 189.6 kB / 437.1 MB, free: 1.113 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001045/0.396, allocations: 114.8 kB / 437.2 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001644/0.3962, allocations: 154.8 kB / 437.3 MB, free: 0.8164 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.045e-05/0.3962, allocations: 33.7 kB / 437.4 MB, free: 0.7773 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.651e-05/0.3963, allocations: 112.5 kB / 437.5 MB, free: 0.6641 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.236e-05/0.3964, allocations: 27.78 kB / 437.5 MB, free: 0.6367 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.904e-05/0.3964, allocations: 37.7 kB / 437.6 MB, free: 0.5938 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001691/0.3966, allocations: 326.8 kB / 437.9 MB, free: 272 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001146/0.3967, allocations: 32.47 kB / 437.9 MB, free: 240 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001995/0.3969, allocations: 145.1 kB / 438 MB, free: 48 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003221/0.3972, allocations: 193.4 kB / 438.2 MB, free: 15.81 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.142e-06/0.3972, allocations: 4 kB / 438.2 MB, free: 15.8 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003656/0.3976, allocations: 197.2 kB / 438.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.721e-05/0.3976, allocations: 4 kB / 438.4 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.757e-06/0.3976, allocations: 4 kB / 438.4 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.964e-05/0.3977, allocations: 4 kB / 438.4 MB, free: 15.59 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001614/0.3978, allocations: 52.38 kB / 438.5 MB, free: 15.54 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.14e-05/0.3978, allocations: 11.94 kB / 438.5 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001048/0.3979, allocations: 19.88 kB / 438.5 MB, free: 15.51 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.669e-05/0.398, allocations: 12 kB / 438.5 MB, free: 15.5 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.0001254/0.3981, allocations: 133.7 kB / 438.7 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001725/0.3982, allocations: 93.58 kB / 438.8 MB, free: 15.26 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 9.492e-05/0.3983, allocations: 16.72 kB / 438.8 MB, free: 15.25 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.849e-06/0.3983, allocations: 4 kB / 438.8 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.811e-06/0.3984, allocations: 3.938 kB / 438.8 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.028e-06/0.3984, allocations: 0 / 438.8 MB, free: 15.24 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002889/0.3986, allocations: 184.6 kB / 439 MB, free: 15.02 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.621e-06/0.3987, allocations: 11.94 kB / 439 MB, free: 15 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001733/0.3988, allocations: 27.98 kB / 439 MB, free: 14.98 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.16e-06/0.3988, allocations: 4 kB / 439 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.229e-05/0.3988, allocations: 0 / 439 MB, free: 14.97 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.31e-06/0.3989, allocations: 7.984 kB / 439 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.192e-06/0.3989, allocations: 0 / 439 MB, free: 14.96 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005752/0.3994, allocations: 386.4 kB / 439.4 MB, free: 14.57 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.99e-05/0.3995, allocations: 27.98 kB / 439.4 MB, free: 14.54 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.238e-05/0.3995, allocations: 11.98 kB / 439.4 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001321/0.3997, allocations: 4 kB / 439.4 MB, free: 14.53 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.957e-05/0.3997, allocations: 11.98 kB / 439.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.047e-06/0.3997, allocations: 4 kB / 439.5 MB, free: 14.51 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001168/0.3998, allocations: 115.2 kB / 439.6 MB, free: 14.4 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3998, allocations: 0 / 439.6 MB, free: 14.4 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003189/0.4001, allocations: 31.94 kB / 439.6 MB, free: 14.37 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.0008724/0.401, allocations: 0.9233 MB / 440.5 MB, free: 13.41 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003386/0.4014, allocations: 128.5 kB / 440.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.785e-06/0.4014, allocations: 0 / 440.6 MB, free: 13.29 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001003/0.4015, allocations: 31.98 kB / 440.7 MB, free: 13.26 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005305/0.402, allocations: 59.92 kB / 440.7 MB, free: 13.2 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002601/0.4046, allocations: 2.108 MB / 442.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001328/0.4047, allocations: 118.6 kB / 443 MB, free: 10.78 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.22e-05/0.4048, allocations: 9.422 kB / 443 MB, free: 10.77 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.706e-05/0.4049, allocations: 39.42 kB / 443 MB, free: 10.73 MB / 350.1 MB Notification: Performance of SimCode: time 4.71e-07/0.4049, allocations: 0 / 443 MB, free: 10.73 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02615/0.431, allocations: 3.269 MB / 446.3 MB, free: 7.629 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.87/11.31, allocations: 19.84 kB / 446.3 MB, free: 7.609 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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: 14.04143689700868]