Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.001615/0.001615, allocations: 116.9 kB / 18.49 MB, free: 4.559 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001861/0.001861, allocations: 217.4 kB / 21.46 MB, free: 1.605 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.541/1.541, allocations: 230.6 MB / 254.8 MB, free: 15.09 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001648/0.001648, allocations: 51.91 kB / 373.7 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1132/0.1148, allocations: 53.32 MB / 427 MB, free: 4.809 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.004601/0.1194, allocations: 2.094 MB / 429.1 MB, free: 2.703 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001297/0.1207, allocations: 0.5375 MB / 429.6 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001774/0.1209, allocations: 0 / 429.6 MB, free: 2.16 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001484/0.1211, allocations: 19.8 kB / 429.6 MB, free: 2.141 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001246/0.1212, allocations: 27.72 kB / 429.7 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003494/0.1215, allocations: 59.86 kB / 429.7 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002607/0.1218, allocations: 131.5 kB / 429.9 MB, free: 1.926 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001962/0.122, allocations: 33.81 kB / 429.9 MB, free: 1.887 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001243/0.1221, allocations: 55.78 kB / 429.9 MB, free: 1.832 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001072/0.1222, allocations: 55.77 kB / 430 MB, free: 1.777 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.984e-05/0.1223, allocations: 16 kB / 430 MB, free: 1.762 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.046e-05/0.1223, allocations: 8 kB / 430 MB, free: 1.754 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.085e-05/0.1223, allocations: 27.86 kB / 430.1 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.591e-05/0.1224, allocations: 55.67 kB / 430.1 MB, free: 1.672 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002787/0.1227, allocations: 139.3 kB / 430.2 MB, free: 1.535 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.188e-06/0.1227, allocations: 0 / 430.2 MB, free: 1.535 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.1227, allocations: 3.938 kB / 430.2 MB, free: 1.531 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.019e-05/0.1227, allocations: 3.984 kB / 430.2 MB, free: 1.527 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.0008664/0.1236, allocations: 434.9 kB / 430.7 MB, free: 1.055 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.764e-05/0.1236, allocations: 8.031 kB / 430.7 MB, free: 1.047 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.564e-05/0.1236, allocations: 4.188 kB / 430.7 MB, free: 1.043 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.508e-05/0.1237, allocations: 46.73 kB / 430.7 MB, free: 0.9883 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.12e-05/0.1237, allocations: 16.84 kB / 430.7 MB, free: 0.9727 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003572/0.1241, allocations: 208.1 kB / 431 MB, free: 0.7305 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.372e-05/0.1241, allocations: 8.375 kB / 431 MB, free: 0.7227 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.155e-05/0.1241, allocations: 12.38 kB / 431 MB, free: 0.7109 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005567/0.1247, allocations: 246.4 kB / 431.2 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.827e-05/0.1247, allocations: 0 / 431.2 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.629e-05/0.1247, allocations: 4 kB / 431.2 MB, free: 452 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.755e-06/0.1247, allocations: 8 kB / 431.2 MB, free: 444 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002699/0.125, allocations: 79.88 kB / 431.3 MB, free: 364 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008715/0.1259, allocations: 0.5999 MB / 431.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003862/0.1263, allocations: 139.9 kB / 432 MB, free: 15.52 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001773/0.1264, allocations: 74.64 kB / 432.1 MB, free: 15.44 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.795e-05/0.1265, allocations: 4 kB / 432.1 MB, free: 15.43 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.537e-05/0.1265, allocations: 34.5 kB / 432.1 MB, free: 15.39 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.362e-06/0.1265, allocations: 4 kB / 432.2 MB, free: 15.39 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.000578/0.1271, allocations: 189.4 kB / 432.3 MB, free: 15.2 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001044/0.1272, allocations: 110.8 kB / 432.4 MB, free: 15.06 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001356/0.1273, allocations: 136 kB / 432.6 MB, free: 14.92 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.135e-05/0.1274, allocations: 25.7 kB / 432.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.772e-05/0.1274, allocations: 116.1 kB / 432.7 MB, free: 14.77 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.139e-05/0.1275, allocations: 28.16 kB / 432.7 MB, free: 14.75 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.08e-05/0.1275, allocations: 37.7 kB / 432.8 MB, free: 14.7 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001591/0.1277, allocations: 326.9 kB / 433.1 MB, free: 14.38 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001306/0.1278, allocations: 39.97 kB / 433.1 MB, free: 14.34 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001997/0.128, allocations: 141.6 kB / 433.3 MB, free: 14.15 MB / 366.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.0005041/0.1285, allocations: 274.6 kB / 433.5 MB, free: 13.81 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.777e-06/0.1285, allocations: 0 / 433.5 MB, free: 13.81 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004305/0.129, allocations: 205.3 kB / 433.7 MB, free: 13.61 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.002e-05/0.129, allocations: 8 kB / 433.8 MB, free: 13.6 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.596e-06/0.129, allocations: 4.047 kB / 433.8 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.305e-05/0.129, allocations: 7.984 kB / 433.8 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001656/0.1292, allocations: 44.39 kB / 433.8 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.58e-05/0.1292, allocations: 7.984 kB / 433.8 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001135/0.1293, allocations: 23.89 kB / 433.8 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.591e-05/0.1293, allocations: 8 kB / 433.8 MB, free: 13.5 MB / 366.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.00015/0.1295, allocations: 149.6 kB / 434 MB, free: 13.35 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001841/0.1297, allocations: 85.58 kB / 434.1 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.38e-05/0.1297, allocations: 16.72 kB / 434.1 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.106e-06/0.1297, allocations: 0 / 434.1 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.941e-06/0.1297, allocations: 4 kB / 434.1 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.512e-06/0.1297, allocations: 7.984 kB / 434.1 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002979/0.13, allocations: 213.4 kB / 434.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 9.318e-06/0.13, allocations: 4 kB / 434.3 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002334/0.1303, allocations: 43.97 kB / 434.4 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.577e-06/0.1303, allocations: 0 / 434.4 MB, free: 12.92 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.815e-05/0.1303, allocations: 4 kB / 434.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.344e-06/0.1303, allocations: 0 / 434.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.597e-06/0.1303, allocations: 3.938 kB / 434.4 MB, free: 12.91 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006113/0.1309, allocations: 388.4 kB / 434.7 MB, free: 12.51 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.098e-05/0.131, allocations: 85.09 kB / 434.8 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.095e-05/0.131, allocations: 8 kB / 434.8 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001375/0.1311, allocations: 7.984 kB / 434.8 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.628e-05/0.1312, allocations: 3.984 kB / 434.9 MB, free: 12.39 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.186e-05/0.1312, allocations: 12.06 kB / 434.9 MB, free: 12.38 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.867e-05/0.1313, allocations: 104.6 kB / 435 MB, free: 12.28 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1313, allocations: 0 / 435 MB, free: 12.28 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003408/0.1316, allocations: 31.89 kB / 435 MB, free: 12.25 MB / 366.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.000959/0.1326, allocations: 0.9191 MB / 435.9 MB, free: 11.3 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003773/0.133, allocations: 124.7 kB / 436 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.705e-06/0.133, allocations: 4 kB / 436 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001026/0.1331, allocations: 27.92 kB / 436.1 MB, free: 11.15 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005333/0.1336, allocations: 65.02 kB / 436.1 MB, free: 11.09 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003195/0.1368, allocations: 2.093 MB / 438.2 MB, free: 8.816 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005048/0.1373, allocations: 0.7201 MB / 438.9 MB, free: 8.07 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 6.651e-05/0.1374, allocations: 5.094 kB / 438.9 MB, free: 8.066 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.631e-05/0.1375, allocations: 39.42 kB / 439 MB, free: 8.027 MB / 366.1 MB Notification: Performance of SimCode: time 4.9e-07/0.1375, allocations: 4 kB / 439 MB, free: 8.023 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02382/0.1613, allocations: 3.063 MB / 442.1 MB, free: 5.18 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.549/8.71, allocations: 15.66 kB / 442.1 MB, free: 5.164 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.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.531127562047914]