Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001725/0.001725, allocations: 112.6 kB / 18.49 MB, free: 4.562 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001823/0.001823, allocations: 193 kB / 21.43 MB, free: 1.633 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.479/1.479, allocations: 225.6 MB / 249.8 MB, free: 3.469 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001722/0.001722, allocations: 47.94 kB / 366.3 MB, free: 0.832 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1077/0.1094, allocations: 52.15 MB / 418.5 MB, free: 12.59 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.004094/0.1135, allocations: 2.071 MB / 420.5 MB, free: 10.51 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001152/0.1147, allocations: 0.5025 MB / 421 MB, free: 10 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001759/0.1149, allocations: 4 kB / 421 MB, free: 10 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001472/0.115, allocations: 15.8 kB / 421.1 MB, free: 9.984 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001193/0.1151, allocations: 27.72 kB / 421.1 MB, free: 9.957 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003132/0.1154, allocations: 55.88 kB / 421.1 MB, free: 9.902 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000248/0.1157, allocations: 139.4 kB / 421.3 MB, free: 9.766 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001661/0.1159, allocations: 37.8 kB / 421.3 MB, free: 9.723 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001122/0.116, allocations: 51.86 kB / 421.4 MB, free: 9.672 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001064/0.1161, allocations: 59.69 kB / 421.4 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.626e-05/0.1161, allocations: 12 kB / 421.4 MB, free: 9.602 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.133e-05/0.1161, allocations: 8 kB / 421.4 MB, free: 9.594 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.277e-05/0.1162, allocations: 27.92 kB / 421.5 MB, free: 9.566 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.018e-05/0.1162, allocations: 59.61 kB / 421.5 MB, free: 9.508 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002462/0.1165, allocations: 143.2 kB / 421.7 MB, free: 9.367 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.398e-06/0.1165, allocations: 4 kB / 421.7 MB, free: 9.363 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.362e-06/0.1165, allocations: 0 / 421.7 MB, free: 9.363 MB / 350.1 MB Notification: Performance of Transformations before backend: time 7.704e-06/0.1165, allocations: 0 / 421.7 MB, free: 9.363 MB / 350.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.0007089/0.1172, allocations: 430.9 kB / 422.1 MB, free: 8.895 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.225e-05/0.1172, allocations: 11.89 kB / 422.1 MB, free: 8.883 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.873e-05/0.1173, allocations: 4.188 kB / 422.1 MB, free: 8.879 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.645e-05/0.1173, allocations: 46.73 kB / 422.2 MB, free: 8.824 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.644e-05/0.1174, allocations: 20.84 kB / 422.2 MB, free: 8.805 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000338/0.1177, allocations: 210.3 kB / 422.4 MB, free: 8.562 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.007e-05/0.1177, allocations: 12.38 kB / 422.4 MB, free: 8.551 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.93e-05/0.1178, allocations: 16.36 kB / 422.4 MB, free: 8.535 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005212/0.1183, allocations: 234.6 kB / 422.6 MB, free: 8.281 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.655e-05/0.1183, allocations: 3.984 kB / 422.6 MB, free: 8.277 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.515e-05/0.1183, allocations: 11.98 kB / 422.7 MB, free: 8.266 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.23e-06/0.1183, allocations: 0 / 422.7 MB, free: 8.266 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000261/0.1186, allocations: 83.88 kB / 422.7 MB, free: 8.184 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007685/0.1194, allocations: 0.5999 MB / 423.3 MB, free: 7.512 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003678/0.1197, allocations: 143.9 kB / 423.5 MB, free: 7.344 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001671/0.1199, allocations: 66.64 kB / 423.5 MB, free: 7.27 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.355e-05/0.1199, allocations: 7.922 kB / 423.5 MB, free: 7.262 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.732e-05/0.12, allocations: 38.56 kB / 423.6 MB, free: 7.215 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.663e-06/0.12, allocations: 0 / 423.6 MB, free: 7.215 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005566/0.1205, allocations: 181.3 kB / 423.8 MB, free: 7.031 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.843e-05/0.1206, allocations: 110.8 kB / 423.9 MB, free: 6.898 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001292/0.1207, allocations: 136.6 kB / 424 MB, free: 6.758 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.883e-05/0.1207, allocations: 29.83 kB / 424 MB, free: 6.723 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.299e-05/0.1208, allocations: 124 kB / 424.2 MB, free: 6.598 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.85e-05/0.1209, allocations: 23.8 kB / 424.2 MB, free: 6.574 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.229e-05/0.1209, allocations: 41.64 kB / 424.2 MB, free: 6.527 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.000145/0.1211, allocations: 322.8 kB / 424.5 MB, free: 6.203 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001243/0.1212, allocations: 35.97 kB / 424.6 MB, free: 6.168 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000213/0.1214, allocations: 141.6 kB / 424.7 MB, free: 5.98 MB / 350.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.0005007/0.1219, allocations: 282.6 kB / 425 MB, free: 5.637 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.717e-06/0.1219, allocations: 4 kB / 425 MB, free: 5.633 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004141/0.1223, allocations: 197.6 kB / 425.2 MB, free: 5.434 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.704e-05/0.1223, allocations: 4 kB / 425.2 MB, free: 5.43 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.743e-06/0.1223, allocations: 4 kB / 425.2 MB, free: 5.426 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.129e-05/0.1224, allocations: 8 kB / 425.2 MB, free: 5.418 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001656/0.1225, allocations: 43.91 kB / 425.2 MB, free: 5.375 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.1225, allocations: 4 kB / 425.2 MB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001181/0.1227, allocations: 27.88 kB / 425.3 MB, free: 5.344 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.445e-05/0.1227, allocations: 8 kB / 425.3 MB, free: 5.336 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.0001344/0.1228, allocations: 137.8 kB / 425.4 MB, free: 5.191 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001754/0.123, allocations: 97.53 kB / 425.5 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.848e-05/0.123, allocations: 16.7 kB / 425.5 MB, free: 5.066 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.999e-06/0.123, allocations: 4 kB / 425.5 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.268e-06/0.123, allocations: 0 / 425.5 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.157e-06/0.123, allocations: 240 / 425.5 MB, free: 5.062 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000298/0.1233, allocations: 217.4 kB / 425.7 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.364e-06/0.1233, allocations: 0 / 425.7 MB, free: 4.801 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.000225/0.1236, allocations: 47.95 kB / 425.8 MB, free: 4.754 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.22e-06/0.1236, allocations: 7.922 kB / 425.8 MB, free: 4.746 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.268e-05/0.1236, allocations: 8 kB / 425.8 MB, free: 4.738 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.214e-06/0.1236, allocations: 3.938 kB / 425.8 MB, free: 4.734 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.527e-06/0.1236, allocations: 4 kB / 425.8 MB, free: 4.73 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005851/0.1242, allocations: 381.6 kB / 426.2 MB, free: 4.34 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.143e-05/0.1242, allocations: 89.05 kB / 426.3 MB, free: 4.234 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.502e-05/0.1243, allocations: 8 kB / 426.3 MB, free: 4.227 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001447/0.1244, allocations: 7.984 kB / 426.3 MB, free: 4.219 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.442e-05/0.1245, allocations: 7.938 kB / 426.3 MB, free: 4.211 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.106e-05/0.1245, allocations: 8 kB / 426.3 MB, free: 4.203 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.486e-05/0.1245, allocations: 101.8 kB / 426.4 MB, free: 4.105 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1245, allocations: 3.938 kB / 426.4 MB, free: 4.102 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003316/0.1249, allocations: 35.94 kB / 426.4 MB, free: 4.066 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.0009273/0.1258, allocations: 0.9179 MB / 427.4 MB, free: 3.121 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003744/0.1262, allocations: 123.7 kB / 427.5 MB, free: 3 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1262, allocations: 0 / 427.5 MB, free: 3 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001034/0.1263, allocations: 28.91 kB / 427.5 MB, free: 2.973 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005192/0.1268, allocations: 67.98 kB / 427.6 MB, free: 2.906 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002837/0.1296, allocations: 2.093 MB / 429.7 MB, free: 0.6328 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003824/0.13, allocations: 0.7123 MB / 430.4 MB, free: 15.89 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.006e-05/0.1301, allocations: 17.06 kB / 430.4 MB, free: 15.88 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.652e-05/0.1302, allocations: 39.42 kB / 430.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of SimCode: time 7.92e-07/0.1302, allocations: 0 / 430.4 MB, free: 15.84 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02288/0.153, allocations: 3.062 MB / 433.5 MB, free: 12.99 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.521/8.674, allocations: 14.25 kB / 433.5 MB, free: 12.98 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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: 11.285341768991202]