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.001248/0.001248, 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.00133/0.00133, allocations: 205.5 kB / 24.51 MB, free: 3.945 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.517/1.517, allocations: 230.5 MB / 258.2 MB, free: 7.82 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.001855/0.001855, allocations: 59.91 kB / 378.5 MB, free: 2.867 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.3438/0.3457, allocations: 53.4 MB / 431.9 MB, free: 6.492 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.00424/0.3499, allocations: 1.977 MB / 433.9 MB, free: 4.512 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001179/0.3511, allocations: 0.5064 MB / 434.4 MB, free: 4 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001228/0.3512, allocations: 4 kB / 434.4 MB, free: 3.996 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001343/0.3513, allocations: 15.8 kB / 434.4 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.074e-05/0.3514, allocations: 27.72 kB / 434.4 MB, free: 3.953 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003775/0.3518, allocations: 59.88 kB / 434.5 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002178/0.352, allocations: 123.6 kB / 434.6 MB, free: 3.773 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001834/0.3522, allocations: 47.72 kB / 434.6 MB, free: 3.723 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.068e-05/0.3523, allocations: 47.8 kB / 434.7 MB, free: 3.676 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.813e-05/0.3524, allocations: 55.75 kB / 434.7 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.197e-05/0.3524, allocations: 12 kB / 434.8 MB, free: 3.609 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.521e-05/0.3524, allocations: 12 kB / 434.8 MB, free: 3.598 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.002e-05/0.3525, allocations: 27.86 kB / 434.8 MB, free: 3.57 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.959e-05/0.3526, allocations: 43.8 kB / 434.8 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002371/0.3528, allocations: 127.4 kB / 435 MB, free: 3.402 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.292e-06/0.3528, allocations: 4 kB / 435 MB, free: 3.398 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.034e-06/0.3528, allocations: 0 / 435 MB, free: 3.398 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.249e-05/0.3528, allocations: 0 / 435 MB, free: 3.398 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.0006649/0.3535, allocations: 349.8 kB / 435.3 MB, free: 3.027 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.491e-05/0.3535, allocations: 15.95 kB / 435.3 MB, free: 3.012 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.63e-05/0.3535, allocations: 4.188 kB / 435.3 MB, free: 3.008 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.585e-05/0.3536, allocations: 42.75 kB / 435.4 MB, free: 2.957 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.08e-05/0.3536, allocations: 16.84 kB / 435.4 MB, free: 2.941 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002414/0.3539, allocations: 146.3 kB / 435.5 MB, free: 2.773 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.795e-05/0.3539, allocations: 12.38 kB / 435.5 MB, free: 2.762 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.024e-05/0.3539, allocations: 16.33 kB / 435.6 MB, free: 2.746 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005457/0.3545, allocations: 251.2 kB / 435.8 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.423e-05/0.3545, allocations: 0 / 435.8 MB, free: 2.477 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.701e-05/0.3545, allocations: 4 kB / 435.8 MB, free: 2.473 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.3545, allocations: 4 kB / 435.8 MB, free: 2.469 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002581/0.3548, allocations: 91.88 kB / 435.9 MB, free: 2.379 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006801/0.3555, allocations: 0.5154 MB / 436.4 MB, free: 1.805 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002919/0.3557, allocations: 139.9 kB / 436.5 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000157/0.3559, allocations: 66.64 kB / 436.6 MB, free: 1.566 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.053e-05/0.3559, allocations: 4 kB / 436.6 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.301e-05/0.356, allocations: 34.5 kB / 436.6 MB, free: 1.52 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.342e-06/0.356, allocations: 0 / 436.6 MB, free: 1.52 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.000522/0.3565, allocations: 189.4 kB / 436.8 MB, free: 1.328 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.094e-05/0.3566, allocations: 110.8 kB / 436.9 MB, free: 1.195 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001244/0.3567, allocations: 129.3 kB / 437.1 MB, free: 1.059 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.702e-05/0.3567, allocations: 29.7 kB / 437.1 MB, free: 1.023 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.96e-05/0.3568, allocations: 115.8 kB / 437.2 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3e-05/0.3568, allocations: 27.78 kB / 437.2 MB, free: 0.8789 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.724e-05/0.3569, allocations: 37.7 kB / 437.3 MB, free: 0.8359 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001541/0.3571, allocations: 327 kB / 437.6 MB, free: 0.5078 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000113/0.3572, allocations: 36.34 kB / 437.6 MB, free: 484 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001866/0.3574, allocations: 131.5 kB / 437.8 MB, free: 308 kB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002997/0.3577, allocations: 172.7 kB / 437.9 MB, free: 88 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.478e-06/0.3577, allocations: 4 kB / 437.9 MB, free: 84 kB / 334.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003837/0.358, allocations: 197.1 kB / 438.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.186e-05/0.3581, allocations: 10.75 kB / 438.1 MB, free: 15.88 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.736e-06/0.3581, allocations: 4 kB / 438.1 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.187e-05/0.3581, allocations: 4 kB / 438.1 MB, free: 15.87 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001913/0.3583, allocations: 48.36 kB / 438.2 MB, free: 15.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.28e-05/0.3583, allocations: 7.984 kB / 438.2 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001029/0.3584, allocations: 19.89 kB / 438.2 MB, free: 15.79 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.563e-05/0.3584, allocations: 8 kB / 438.2 MB, free: 15.79 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.000143/0.3586, allocations: 133.7 kB / 438.4 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001521/0.3587, allocations: 89.52 kB / 438.4 MB, free: 15.55 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.75e-05/0.3588, allocations: 16.66 kB / 438.5 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.5e-06/0.3588, allocations: 4 kB / 438.5 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.751e-06/0.3588, allocations: 0 / 438.5 MB, free: 15.53 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.671e-06/0.3588, allocations: 8 kB / 438.5 MB, free: 15.52 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002788/0.3591, allocations: 168.7 kB / 438.6 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.282e-06/0.3591, allocations: 0 / 438.6 MB, free: 15.31 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001687/0.3592, allocations: 31.92 kB / 438.7 MB, free: 15.28 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.194e-06/0.3592, allocations: 7.938 kB / 438.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.615e-05/0.3593, allocations: 3.984 kB / 438.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.804e-06/0.3593, allocations: 0 / 438.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.456e-06/0.3593, allocations: 4 kB / 438.7 MB, free: 15.27 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005524/0.3598, allocations: 374.8 kB / 439 MB, free: 14.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 2.913e-05/0.3598, allocations: 15.88 kB / 439.1 MB, free: 14.87 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.604e-05/0.3599, allocations: 3.938 kB / 439.1 MB, free: 14.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001316/0.36, allocations: 11.98 kB / 439.1 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.78e-05/0.36, allocations: 11.92 kB / 439.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.466e-06/0.3601, allocations: 4 kB / 439.1 MB, free: 14.84 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.835e-05/0.3601, allocations: 99.27 kB / 439.2 MB, free: 14.74 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3601, allocations: 0 / 439.2 MB, free: 14.74 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.000328/0.3605, allocations: 24 kB / 439.2 MB, free: 14.71 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.0008761/0.3613, allocations: 0.9118 MB / 440.1 MB, free: 13.77 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003329/0.3617, allocations: 116.5 kB / 440.2 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.165e-06/0.3617, allocations: 0 / 440.2 MB, free: 13.66 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.762e-05/0.3618, allocations: 32.03 kB / 440.3 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.0005269/0.3623, allocations: 63.05 kB / 440.3 MB, free: 13.57 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002497/0.3648, allocations: 2.032 MB / 442.4 MB, free: 11.38 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001166/0.3649, allocations: 105.5 kB / 442.5 MB, free: 11.25 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.719e-05/0.3649, allocations: 12.64 kB / 442.5 MB, free: 11.24 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.552e-05/0.365, allocations: 31.44 kB / 442.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of SimCode: time 7.32e-07/0.365, allocations: 0 / 442.5 MB, free: 11.21 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03647/0.4015, allocations: 3.001 MB / 445.5 MB, free: 8.363 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.94/11.34, allocations: 8.266 kB / 445.5 MB, free: 8.359 MB / 350.1 MB " [Timeout remaining time 649] (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: 13.99936432891991]