Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001547/0.001547, allocations: 109.1 kB / 21.22 MB, free: 0.7539 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.001814/0.001814, allocations: 216.5 kB / 24.53 MB, free: 4.012 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.652/1.652, allocations: 230.5 MB / 258.2 MB, free: 8 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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002422/0.002422, allocations: 59.91 kB / 378.5 MB, free: 3.027 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3702/0.3727, allocations: 53.41 MB / 432 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.004343/0.377, allocations: 2.043 MB / 434 MB, free: 4.652 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001261/0.3783, allocations: 0.5453 MB / 434.5 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001436/0.3784, allocations: 3.938 kB / 434.5 MB, free: 4.098 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001572/0.3786, allocations: 15.86 kB / 434.6 MB, free: 4.082 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.679e-05/0.3787, allocations: 31.72 kB / 434.6 MB, free: 4.051 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000378/0.379, allocations: 55.88 kB / 434.6 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002294/0.3793, allocations: 127.5 kB / 434.8 MB, free: 3.871 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001901/0.3795, allocations: 37.61 kB / 434.8 MB, free: 3.828 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001176/0.3796, allocations: 47.8 kB / 434.9 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001224/0.3797, allocations: 63.69 kB / 434.9 MB, free: 3.719 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.455e-05/0.3797, allocations: 12 kB / 434.9 MB, free: 3.707 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.128e-05/0.3798, allocations: 8 kB / 434.9 MB, free: 3.699 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.949e-05/0.3798, allocations: 23.92 kB / 435 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 7.827e-05/0.3799, allocations: 59.67 kB / 435 MB, free: 3.617 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002484/0.3801, allocations: 127.9 kB / 435.1 MB, free: 3.496 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.119e-06/0.3801, allocations: 4 kB / 435.1 MB, free: 3.492 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.024e-06/0.3801, allocations: 0 / 435.1 MB, free: 3.492 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.663e-06/0.3801, allocations: 0 / 435.1 MB, free: 3.492 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.000697/0.3808, allocations: 349.8 kB / 435.5 MB, free: 3.121 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.988e-05/0.3809, allocations: 8.031 kB / 435.5 MB, free: 3.113 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.767e-05/0.3809, allocations: 4.188 kB / 435.5 MB, free: 3.109 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.337e-05/0.381, allocations: 46.75 kB / 435.5 MB, free: 3.055 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.45e-05/0.381, allocations: 20.78 kB / 435.6 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002927/0.3813, allocations: 146.3 kB / 435.7 MB, free: 2.867 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.996e-05/0.3813, allocations: 12.38 kB / 435.7 MB, free: 2.855 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.295e-05/0.3814, allocations: 20.31 kB / 435.7 MB, free: 2.836 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005472/0.3819, allocations: 243.2 kB / 436 MB, free: 2.574 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.953e-05/0.3819, allocations: 7.938 kB / 436 MB, free: 2.566 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.804e-05/0.3819, allocations: 4 kB / 436 MB, free: 2.562 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.027e-05/0.3819, allocations: 4 kB / 436 MB, free: 2.559 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002607/0.3822, allocations: 79.88 kB / 436.1 MB, free: 2.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007474/0.383, allocations: 0.5388 MB / 436.6 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003033/0.3833, allocations: 139.9 kB / 436.7 MB, free: 1.719 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001697/0.3834, allocations: 70.58 kB / 436.8 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.319e-05/0.3835, allocations: 7.984 kB / 436.8 MB, free: 1.633 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.59e-05/0.3835, allocations: 34.56 kB / 436.9 MB, free: 1.59 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.522e-06/0.3835, allocations: 0 / 436.9 MB, free: 1.59 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005827/0.3841, allocations: 181.6 kB / 437 MB, free: 1.406 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001063/0.3842, allocations: 110.8 kB / 437.1 MB, free: 1.273 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000146/0.3843, allocations: 128.9 kB / 437.3 MB, free: 1.137 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.577e-05/0.3844, allocations: 37.83 kB / 437.3 MB, free: 1.094 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001006/0.3845, allocations: 115.8 kB / 437.4 MB, free: 0.9766 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.706e-05/0.3845, allocations: 27.78 kB / 437.4 MB, free: 0.9492 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.832e-05/0.3846, allocations: 33.72 kB / 437.5 MB, free: 0.9102 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001738/0.3847, allocations: 318.8 kB / 437.8 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001244/0.3849, allocations: 39.91 kB / 437.8 MB, free: 0.5508 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001978/0.3851, allocations: 131.6 kB / 438 MB, free: 388 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003339/0.3854, allocations: 180.8 kB / 438.1 MB, free: 160 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.21e-06/0.3854, allocations: 4 kB / 438.1 MB, free: 156 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.00042/0.3858, allocations: 189.2 kB / 438.3 MB, free: 15.96 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.534e-05/0.3858, allocations: 7.938 kB / 438.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.173e-05/0.3858, allocations: 4 kB / 438.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.246e-05/0.3859, allocations: 4 kB / 438.3 MB, free: 15.95 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001984/0.3861, allocations: 48.34 kB / 438.4 MB, free: 15.9 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.623e-05/0.3861, allocations: 11.94 kB / 438.4 MB, free: 15.89 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001148/0.3862, allocations: 23.88 kB / 438.4 MB, free: 15.86 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.485e-05/0.3862, allocations: 8 kB / 438.4 MB, free: 15.86 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 15 * 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 (20): * Single equations (assignments): 20 * 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.0001546/0.3864, allocations: 125.8 kB / 438.6 MB, free: 15.72 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001597/0.3865, allocations: 89.52 kB / 438.6 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.853e-05/0.3866, allocations: 12.72 kB / 438.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.699e-06/0.3866, allocations: 7.938 kB / 438.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.472e-06/0.3866, allocations: 4 kB / 438.7 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.476e-06/0.3866, allocations: 3.984 kB / 438.7 MB, free: 15.6 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002964/0.3869, allocations: 172.6 kB / 438.8 MB, free: 15.39 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.396e-06/0.3869, allocations: 4 kB / 438.8 MB, free: 15.38 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001737/0.3871, allocations: 39.91 kB / 438.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.118e-06/0.3871, allocations: 3.938 kB / 438.9 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.637e-05/0.3871, allocations: 8 kB / 438.9 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.463e-06/0.3871, allocations: 0 / 438.9 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3871, allocations: 4 kB / 438.9 MB, free: 15.33 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005966/0.3877, allocations: 371.7 kB / 439.3 MB, free: 14.95 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.985e-05/0.3877, allocations: 15.86 kB / 439.3 MB, free: 14.93 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.762e-05/0.3878, allocations: 11.94 kB / 439.3 MB, free: 14.92 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001345/0.3879, allocations: 7.984 kB / 439.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.5e-05/0.3879, allocations: 4.062 kB / 439.3 MB, free: 14.91 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.147e-06/0.3879, allocations: 8 kB / 439.3 MB, free: 14.9 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.518e-05/0.388, allocations: 95.27 kB / 439.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.388, allocations: 0 / 439.4 MB, free: 14.8 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003112/0.3883, allocations: 31.95 kB / 439.4 MB, free: 14.77 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 (14): * Single equations (assignments): 14 * 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.0009019/0.3892, allocations: 0.9111 MB / 440.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003431/0.3896, allocations: 120.6 kB / 440.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.144e-06/0.3896, allocations: 0 / 440.5 MB, free: 13.72 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.937e-05/0.3897, allocations: 23.98 kB / 440.5 MB, free: 13.7 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005094/0.3902, allocations: 63.98 kB / 440.5 MB, free: 13.64 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002571/0.3928, allocations: 2.037 MB / 442.6 MB, free: 11.44 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003774/0.3931, allocations: 0.7123 MB / 443.3 MB, free: 10.7 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.461e-05/0.3932, allocations: 8.641 kB / 443.3 MB, free: 10.69 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.087e-05/0.3933, allocations: 39.42 kB / 443.3 MB, free: 10.65 MB / 350.1 MB Notification: Performance of SimCode: time 2.81e-07/0.3933, allocations: 0 / 443.3 MB, free: 10.65 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02679/0.4201, allocations: 2.962 MB / 446.3 MB, free: 7.836 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.57/11.99, allocations: 18.84 kB / 446.3 MB, free: 7.82 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteTextbookController/ClockedWithDiscreteTextbookController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.Td,PI.kd,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.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.968863153015263]