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.001589/0.001589, 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.001906/0.001906, allocations: 220.2 kB / 24.53 MB, free: 4.008 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.673/1.673, allocations: 230.5 MB / 258.2 MB, free: 8.008 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.002163/0.002163, allocations: 59.91 kB / 378.5 MB, free: 3.047 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.4146/0.4168, allocations: 53.42 MB / 432 MB, free: 6.711 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.006075/0.4229, allocations: 2.094 MB / 434 MB, free: 4.613 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001673/0.4245, allocations: 0.5415 MB / 434.6 MB, free: 4.066 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002663/0.4248, allocations: 7.938 kB / 434.6 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002079/0.425, allocations: 15.8 kB / 434.6 MB, free: 4.043 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002213/0.4252, allocations: 31.72 kB / 434.6 MB, free: 4.012 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004377/0.4257, allocations: 59.38 kB / 434.7 MB, free: 3.957 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003726/0.426, allocations: 127.6 kB / 434.8 MB, free: 3.832 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002462/0.4263, allocations: 45.97 kB / 434.9 MB, free: 3.777 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000202/0.4265, allocations: 51.73 kB / 434.9 MB, free: 3.727 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001485/0.4266, allocations: 59.7 kB / 435 MB, free: 3.668 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 3.744e-05/0.4267, allocations: 15.98 kB / 435 MB, free: 3.652 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.345e-05/0.4267, allocations: 8 kB / 435 MB, free: 3.645 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 4.033e-05/0.4267, allocations: 23.92 kB / 435 MB, free: 3.621 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.829e-05/0.4268, allocations: 67.67 kB / 435.1 MB, free: 3.555 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003214/0.4271, allocations: 123.8 kB / 435.2 MB, free: 3.438 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.582e-06/0.4272, allocations: 0 / 435.2 MB, free: 3.438 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.926e-06/0.4272, allocations: 3.938 kB / 435.2 MB, free: 3.434 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.607e-05/0.4272, allocations: 4 kB / 435.2 MB, free: 3.43 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.0009586/0.4281, allocations: 361.7 kB / 435.6 MB, free: 3.047 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.724e-05/0.4282, allocations: 11.97 kB / 435.6 MB, free: 3.035 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.379e-05/0.4282, allocations: 4.188 kB / 435.6 MB, free: 3.031 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.28e-05/0.4283, allocations: 46.75 kB / 435.6 MB, free: 2.977 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.621e-05/0.4283, allocations: 16.84 kB / 435.7 MB, free: 2.961 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004438/0.4288, allocations: 154.3 kB / 435.8 MB, free: 2.785 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.838e-05/0.4288, allocations: 8.375 kB / 435.8 MB, free: 2.777 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.281e-05/0.4288, allocations: 12.38 kB / 435.8 MB, free: 2.766 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005502/0.4294, allocations: 243.2 kB / 436.1 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.61e-05/0.4294, allocations: 0 / 436.1 MB, free: 2.504 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.496e-05/0.4294, allocations: 8 kB / 436.1 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.735e-06/0.4294, allocations: 0 / 436.1 MB, free: 2.496 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003926/0.4298, allocations: 87.86 kB / 436.2 MB, free: 2.41 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001402/0.4312, allocations: 0.5389 MB / 436.7 MB, free: 1.812 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0007263/0.432, allocations: 143.9 kB / 436.8 MB, free: 1.645 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0003241/0.4323, allocations: 74.62 kB / 436.9 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 6.225e-05/0.4323, allocations: 0 / 436.9 MB, free: 1.562 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 8.34e-05/0.4324, allocations: 38.56 kB / 436.9 MB, free: 1.516 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 2.505e-06/0.4324, allocations: 0 / 436.9 MB, free: 1.516 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001068/0.4335, allocations: 181.3 kB / 437.1 MB, free: 1.332 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001957/0.4337, allocations: 114.8 kB / 437.2 MB, free: 1.195 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002534/0.4339, allocations: 141 kB / 437.4 MB, free: 1.051 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 5.325e-05/0.434, allocations: 29.7 kB / 437.4 MB, free: 1.016 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001734/0.4342, allocations: 116 kB / 437.5 MB, free: 0.8984 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.939e-05/0.4342, allocations: 36.16 kB / 437.6 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.937e-05/0.4343, allocations: 25.72 kB / 437.6 MB, free: 0.832 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002756/0.4346, allocations: 326.8 kB / 437.9 MB, free: 0.5039 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001971/0.4348, allocations: 43.91 kB / 437.9 MB, free: 472 kB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000354/0.4352, allocations: 141.2 kB / 438.1 MB, free: 284 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.0009125/0.4361, allocations: 212.5 kB / 438.3 MB, free: 24 kB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.023e-05/0.4361, allocations: 4 kB / 438.3 MB, free: 20 kB / 334.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.00079/0.4369, allocations: 197.6 kB / 438.5 MB, free: 15.82 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.842e-05/0.4369, allocations: 4 kB / 438.5 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.651e-05/0.4369, allocations: 4 kB / 438.5 MB, free: 15.81 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 4.254e-05/0.437, allocations: 7.984 kB / 438.5 MB, free: 15.8 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0003411/0.4373, allocations: 43.92 kB / 438.5 MB, free: 15.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.223e-05/0.4373, allocations: 7.938 kB / 438.5 MB, free: 15.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002333/0.4376, allocations: 23.88 kB / 438.6 MB, free: 15.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.486e-05/0.4376, allocations: 12 kB / 438.6 MB, free: 15.71 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.000288/0.4379, allocations: 130 kB / 438.7 MB, free: 15.58 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003227/0.4382, allocations: 89.56 kB / 438.8 MB, free: 15.48 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001079/0.4383, allocations: 16.72 kB / 438.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.363e-05/0.4383, allocations: 4 kB / 438.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.323e-05/0.4383, allocations: 0 / 438.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 8.366e-06/0.4384, allocations: 0 / 438.8 MB, free: 15.46 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0005675/0.4389, allocations: 188.5 kB / 439 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 7.003e-06/0.4389, allocations: 3.984 kB / 439 MB, free: 15.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0003898/0.4393, allocations: 43.91 kB / 439 MB, free: 15.19 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 7.945e-06/0.4393, allocations: 4 kB / 439.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.908e-05/0.4394, allocations: 8 kB / 439.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.986e-06/0.4394, allocations: 0 / 439.1 MB, free: 15.18 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.744e-06/0.4394, allocations: 4.234 kB / 439.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.00115/0.4405, allocations: 398.5 kB / 439.5 MB, free: 14.77 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.094e-05/0.4406, allocations: 7.984 kB / 439.5 MB, free: 14.76 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.297e-05/0.4406, allocations: 8 kB / 439.5 MB, free: 14.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0002564/0.4409, allocations: 7.984 kB / 439.5 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.547e-05/0.441, allocations: 4 kB / 439.5 MB, free: 14.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.327e-05/0.441, allocations: 11.98 kB / 439.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001322/0.4411, allocations: 98.02 kB / 439.6 MB, free: 14.63 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.4411, allocations: 0 / 439.6 MB, free: 14.63 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0006756/0.4418, allocations: 40.02 kB / 439.6 MB, free: 14.59 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.001583/0.4434, allocations: 0.9155 MB / 440.5 MB, free: 13.65 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0007113/0.4441, allocations: 123.7 kB / 440.7 MB, free: 13.53 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 6.081e-06/0.4441, allocations: 3.828 kB / 440.7 MB, free: 13.53 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001699/0.4443, allocations: 28.86 kB / 440.7 MB, free: 13.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.001066/0.4453, allocations: 63.98 kB / 440.8 MB, free: 13.44 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005013/0.4503, allocations: 2.097 MB / 442.9 MB, free: 11.16 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0006685/0.451, allocations: 0.7162 MB / 443.6 MB, free: 10.42 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001205/0.4511, allocations: 17.06 kB / 443.6 MB, free: 10.4 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001587/0.4513, allocations: 39.42 kB / 443.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of SimCode: time 2.174e-06/0.4513, allocations: 0 / 443.6 MB, free: 10.36 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0377/0.489, allocations: 3.232 MB / 446.9 MB, free: 7.285 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.62/12.11, allocations: 11.91 kB / 446.9 MB, free: 7.273 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: 15.059279203007463]