Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.001279/0.001279, allocations: 105.1 kB / 21.22 MB, free: 0.6289 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.001427/0.001427, allocations: 214.2 kB / 24.52 MB, free: 3.918 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.502/1.502, allocations: 230.5 MB / 258.2 MB, free: 7.754 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.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001825/0.001825, allocations: 63.89 kB / 378.5 MB, free: 2.848 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.321/0.3228, allocations: 53.41 MB / 431.9 MB, free: 6.453 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.00392/0.3267, allocations: 2.023 MB / 433.9 MB, free: 4.43 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001093/0.3278, allocations: 0.5064 MB / 434.4 MB, free: 3.918 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001539/0.328, allocations: 7.938 kB / 434.4 MB, free: 3.91 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001461/0.3281, allocations: 15.8 kB / 434.4 MB, free: 3.895 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.201e-05/0.3282, allocations: 31.72 kB / 434.5 MB, free: 3.863 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003228/0.3285, allocations: 55.88 kB / 434.5 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002138/0.3287, allocations: 131.5 kB / 434.7 MB, free: 3.68 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001744/0.3289, allocations: 39.69 kB / 434.7 MB, free: 3.633 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.233e-05/0.329, allocations: 55.83 kB / 434.8 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.563e-05/0.3291, allocations: 51.72 kB / 434.8 MB, free: 3.527 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.487e-05/0.3291, allocations: 12 kB / 434.8 MB, free: 3.516 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.537e-05/0.3291, allocations: 12 kB / 434.8 MB, free: 3.504 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 3.488e-05/0.3292, allocations: 27.86 kB / 434.9 MB, free: 3.477 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 6.163e-05/0.3292, allocations: 51.77 kB / 434.9 MB, free: 3.426 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002096/0.3294, allocations: 135.3 kB / 435 MB, free: 3.293 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.047e-06/0.3294, allocations: 0 / 435 MB, free: 3.293 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.386e-06/0.3294, allocations: 7.922 kB / 435 MB, free: 3.285 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.33e-06/0.3295, allocations: 0 / 435 MB, free: 3.285 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.000685/0.3301, allocations: 353.8 kB / 435.4 MB, free: 2.91 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.139e-05/0.3302, allocations: 8.031 kB / 435.4 MB, free: 2.902 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.889e-05/0.3302, allocations: 8.188 kB / 435.4 MB, free: 2.895 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.717e-05/0.3303, allocations: 42.73 kB / 435.5 MB, free: 2.844 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.046e-05/0.3303, allocations: 16.84 kB / 435.5 MB, free: 2.828 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003022/0.3306, allocations: 158.3 kB / 435.6 MB, free: 2.648 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.005e-05/0.3306, allocations: 8.375 kB / 435.6 MB, free: 2.641 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.907e-05/0.3307, allocations: 24.31 kB / 435.7 MB, free: 2.617 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005354/0.3312, allocations: 231.3 kB / 435.9 MB, free: 2.367 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.953e-05/0.3312, allocations: 0 / 435.9 MB, free: 2.367 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.718e-05/0.3312, allocations: 8 kB / 435.9 MB, free: 2.359 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.115e-05/0.3312, allocations: 11.98 kB / 435.9 MB, free: 2.348 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000247/0.3315, allocations: 79.88 kB / 436 MB, free: 2.27 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007666/0.3323, allocations: 0.5154 MB / 436.5 MB, free: 1.695 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003958/0.3327, allocations: 139.9 kB / 436.6 MB, free: 1.531 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001619/0.3328, allocations: 66.64 kB / 436.7 MB, free: 1.457 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.042e-05/0.3329, allocations: 11.94 kB / 436.7 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.475e-05/0.3329, allocations: 38.5 kB / 436.7 MB, free: 1.398 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.623e-06/0.3329, allocations: 0 / 436.7 MB, free: 1.398 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005302/0.3334, allocations: 185.3 kB / 436.9 MB, free: 1.211 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.285e-05/0.3335, allocations: 106.8 kB / 437 MB, free: 1.082 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001437/0.3337, allocations: 136.9 kB / 437.2 MB, free: 0.9414 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.854e-05/0.3337, allocations: 29.7 kB / 437.2 MB, free: 0.9062 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.948e-05/0.3338, allocations: 124.1 kB / 437.3 MB, free: 0.7812 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.921e-05/0.3338, allocations: 36.16 kB / 437.3 MB, free: 0.7461 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.007e-05/0.3339, allocations: 33.7 kB / 437.4 MB, free: 0.707 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002094/0.3341, allocations: 326.8 kB / 437.7 MB, free: 388 kB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001233/0.3342, allocations: 35.97 kB / 437.7 MB, free: 352 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002069/0.3344, allocations: 141 kB / 437.9 MB, free: 164 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.0005135/0.3349, allocations: 212.8 kB / 438.1 MB, free: 15.91 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.611e-06/0.3349, allocations: 4 kB / 438.1 MB, free: 15.9 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004165/0.3353, allocations: 205.5 kB / 438.3 MB, free: 15.7 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.197e-05/0.3354, allocations: 4 kB / 438.3 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.829e-06/0.3354, allocations: 4 kB / 438.3 MB, free: 15.69 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.176e-05/0.3354, allocations: 4 kB / 438.3 MB, free: 15.68 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001571/0.3356, allocations: 43.92 kB / 438.3 MB, free: 15.64 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.965e-05/0.3356, allocations: 11.97 kB / 438.4 MB, free: 15.63 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001108/0.3357, allocations: 19.89 kB / 438.4 MB, free: 15.61 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.463e-05/0.3357, allocations: 12 kB / 438.4 MB, free: 15.6 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.0001556/0.3359, allocations: 137.8 kB / 438.5 MB, free: 15.45 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001705/0.336, allocations: 85.58 kB / 438.6 MB, free: 15.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.353e-05/0.3361, allocations: 16.72 kB / 438.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.831e-06/0.3361, allocations: 4 kB / 438.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.252e-06/0.3361, allocations: 0 / 438.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.251e-06/0.3361, allocations: 3.984 kB / 438.6 MB, free: 15.34 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002877/0.3364, allocations: 172.6 kB / 438.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.336e-06/0.3364, allocations: 3.984 kB / 438.8 MB, free: 15.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002146/0.3366, allocations: 43.97 kB / 438.8 MB, free: 15.08 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.358e-06/0.3366, allocations: 4 kB / 438.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.372e-05/0.3366, allocations: 4 kB / 438.8 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.34e-06/0.3366, allocations: 4 kB / 438.9 MB, free: 15.07 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.997e-06/0.3366, allocations: 7.938 kB / 438.9 MB, free: 15.06 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005855/0.3372, allocations: 390.4 kB / 439.2 MB, free: 14.66 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 1.937e-05/0.3372, allocations: 7.984 kB / 439.2 MB, free: 14.65 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.928e-05/0.3373, allocations: 8 kB / 439.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001455/0.3374, allocations: 7.984 kB / 439.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.342e-05/0.3375, allocations: 0 / 439.3 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.397e-05/0.3375, allocations: 16.05 kB / 439.3 MB, free: 14.62 MB / 350.1 MB Notification: Performance of sorting global known variables: time 8.355e-05/0.3376, allocations: 106 kB / 439.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.3376, allocations: 0 / 439.4 MB, free: 14.52 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003134/0.3379, allocations: 27.95 kB / 439.4 MB, free: 14.49 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.0008706/0.3388, allocations: 0.9155 MB / 440.3 MB, free: 13.55 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003511/0.3391, allocations: 127.7 kB / 440.5 MB, free: 13.42 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 4.689e-06/0.3391, allocations: 4 kB / 440.5 MB, free: 13.42 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.536e-05/0.3392, allocations: 23.92 kB / 440.5 MB, free: 13.39 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005239/0.3397, allocations: 72.81 kB / 440.6 MB, free: 13.32 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002719/0.3424, allocations: 2.101 MB / 442.7 MB, free: 11.04 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001116/0.3426, allocations: 98.7 kB / 442.7 MB, free: 10.93 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 5.415e-05/0.3426, allocations: 17.08 kB / 442.8 MB, free: 10.91 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.102e-05/0.3427, allocations: 35.42 kB / 442.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of SimCode: time 2.7e-07/0.3427, allocations: 0 / 442.8 MB, free: 10.88 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02595/0.3686, allocations: 3.273 MB / 446.1 MB, free: 7.77 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.44, allocations: 12.05 kB / 446.1 MB, free: 7.758 MB / 350.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_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_trunk_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.128700231900439]