Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.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.001665/0.001665, allocations: 120.1 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.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.002239/0.002239, allocations: 215 kB / 21.45 MB, free: 1.617 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.544/1.544, allocations: 230.6 MB / 254.8 MB, free: 15.26 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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001589/0.001589, allocations: 47.92 kB / 373.7 MB, free: 10.25 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1122/0.1137, allocations: 53.33 MB / 427 MB, free: 4.824 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.003681/0.1174, allocations: 2.025 MB / 429 MB, free: 2.785 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001038/0.1185, allocations: 0.5337 MB / 429.6 MB, free: 2.246 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.961e-05/0.1186, allocations: 7.938 kB / 429.6 MB, free: 2.238 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001216/0.1187, allocations: 15.8 kB / 429.6 MB, free: 2.223 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 6.982e-05/0.1188, allocations: 23.8 kB / 429.6 MB, free: 2.199 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002938/0.1191, allocations: 55.81 kB / 429.7 MB, free: 2.145 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001917/0.1192, allocations: 123.6 kB / 429.8 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001463/0.1194, allocations: 41.38 kB / 429.8 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 8.775e-05/0.1195, allocations: 51.84 kB / 429.9 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.421e-05/0.1196, allocations: 59.69 kB / 429.9 MB, free: 1.871 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.416e-05/0.1196, allocations: 12 kB / 429.9 MB, free: 1.859 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.169e-05/0.1196, allocations: 12 kB / 430 MB, free: 1.848 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.206e-05/0.1197, allocations: 23.92 kB / 430 MB, free: 1.824 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.942e-05/0.1197, allocations: 55.67 kB / 430 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002159/0.12, allocations: 131.4 kB / 430.2 MB, free: 1.641 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.977e-06/0.12, allocations: 0 / 430.2 MB, free: 1.641 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.513e-06/0.12, allocations: 0 / 430.2 MB, free: 1.641 MB / 350.1 MB Notification: Performance of Transformations before backend: time 1.088e-05/0.12, allocations: 0 / 430.2 MB, free: 1.641 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: 30 * Number of variables: 30 Notification: Performance of Generate backend data structure: time 0.0006813/0.1207, allocations: 427 kB / 430.6 MB, free: 1.176 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.467e-05/0.1207, allocations: 19.95 kB / 430.6 MB, free: 1.156 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.419e-05/0.1207, allocations: 192 / 430.6 MB, free: 1.156 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.706e-05/0.1208, allocations: 46.75 kB / 430.6 MB, free: 1.102 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.076e-05/0.1208, allocations: 16.83 kB / 430.7 MB, free: 1.086 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003008/0.1211, allocations: 208.1 kB / 430.9 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.716e-05/0.1211, allocations: 8.375 kB / 430.9 MB, free: 0.8359 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.883e-05/0.1212, allocations: 20.33 kB / 430.9 MB, free: 0.8164 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005094/0.1217, allocations: 238.5 kB / 431.1 MB, free: 0.5586 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.441e-05/0.1217, allocations: 4 kB / 431.1 MB, free: 0.5547 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.577e-05/0.1217, allocations: 4 kB / 431.1 MB, free: 0.5508 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.893e-06/0.1217, allocations: 4 kB / 431.1 MB, free: 0.5469 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000285/0.122, allocations: 91.86 kB / 431.2 MB, free: 468 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007128/0.1227, allocations: 0.5882 MB / 431.8 MB, free: 15.8 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002916/0.123, allocations: 139.9 kB / 431.9 MB, free: 15.63 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001757/0.1232, allocations: 78.62 kB / 432 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.704e-05/0.1232, allocations: 0 / 432 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.073e-05/0.1232, allocations: 42.5 kB / 432.1 MB, free: 15.5 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.142e-06/0.1232, allocations: 3.938 kB / 432.1 MB, free: 15.49 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005532/0.1238, allocations: 173.4 kB / 432.2 MB, free: 15.32 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.81e-05/0.1239, allocations: 114.8 kB / 432.4 MB, free: 15.18 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001282/0.124, allocations: 132.2 kB / 432.5 MB, free: 15.04 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.93e-05/0.124, allocations: 25.7 kB / 432.5 MB, free: 15.01 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.388e-05/0.1241, allocations: 115.8 kB / 432.6 MB, free: 14.89 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.282e-05/0.1241, allocations: 27.78 kB / 432.6 MB, free: 14.86 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.516e-05/0.1242, allocations: 37.84 kB / 432.7 MB, free: 14.82 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001436/0.1243, allocations: 322.8 kB / 433 MB, free: 14.5 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001286/0.1245, allocations: 36.34 kB / 433 MB, free: 14.46 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001893/0.1247, allocations: 132.8 kB / 433.2 MB, free: 14.29 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003066/0.125, allocations: 180.6 kB / 433.3 MB, free: 14.06 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.524e-06/0.125, allocations: 0 / 433.3 MB, free: 14.06 MB / 366.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003855/0.1253, allocations: 193.3 kB / 433.5 MB, free: 13.87 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.145e-05/0.1254, allocations: 13.97 kB / 433.5 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 9.437e-06/0.1254, allocations: 4 kB / 433.5 MB, free: 13.85 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.251e-05/0.1254, allocations: 7.984 kB / 433.6 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000186/0.1256, allocations: 43.92 kB / 433.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.507e-06/0.1256, allocations: 4 kB / 433.6 MB, free: 13.8 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001051/0.1257, allocations: 19.88 kB / 433.6 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.7e-05/0.1257, allocations: 12.27 kB / 433.6 MB, free: 13.77 MB / 366.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.0001349/0.1259, allocations: 137.7 kB / 433.8 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001502/0.126, allocations: 85.75 kB / 433.9 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.478e-05/0.1261, allocations: 24.69 kB / 433.9 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.896e-06/0.1261, allocations: 0 / 433.9 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.709e-06/0.1261, allocations: 0 / 433.9 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.529e-06/0.1261, allocations: 4 kB / 433.9 MB, free: 13.5 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002973/0.1264, allocations: 205.5 kB / 434.1 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1264, allocations: 0 / 434.1 MB, free: 13.25 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001815/0.1265, allocations: 39.98 kB / 434.1 MB, free: 13.21 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.578e-06/0.1266, allocations: 3.938 kB / 434.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.154e-05/0.1266, allocations: 0 / 434.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.119e-06/0.1266, allocations: 4 kB / 434.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.876e-06/0.1266, allocations: 3.938 kB / 434.1 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005622/0.1271, allocations: 375.2 kB / 434.5 MB, free: 12.81 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.323e-05/0.1272, allocations: 92.95 kB / 434.6 MB, free: 12.7 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.519e-05/0.1272, allocations: 11.88 kB / 434.6 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001356/0.1274, allocations: 7.984 kB / 434.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.38e-05/0.1274, allocations: 8 kB / 434.6 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.007e-06/0.1274, allocations: 4 kB / 434.6 MB, free: 12.67 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.328e-05/0.1275, allocations: 105.4 kB / 434.7 MB, free: 12.57 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1275, allocations: 64 / 434.7 MB, free: 12.57 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003161/0.1278, allocations: 28 kB / 434.7 MB, free: 12.54 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 (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.0008722/0.1287, allocations: 0.9078 MB / 435.7 MB, free: 11.61 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003578/0.129, allocations: 115.7 kB / 435.8 MB, free: 11.49 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.554e-06/0.129, allocations: 0 / 435.8 MB, free: 11.49 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001104/0.1291, allocations: 28.8 kB / 435.8 MB, free: 11.46 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006174/0.1298, allocations: 44.08 kB / 435.8 MB, free: 11.42 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002881/0.1326, allocations: 2.031 MB / 437.9 MB, free: 9.219 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004009/0.133, allocations: 0.7123 MB / 438.6 MB, free: 8.48 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.686e-05/0.1331, allocations: 8.656 kB / 438.6 MB, free: 8.473 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.26e-05/0.1332, allocations: 39.42 kB / 438.6 MB, free: 8.434 MB / 366.1 MB Notification: Performance of SimCode: time 9.52e-07/0.1332, allocations: 0 / 438.6 MB, free: 8.434 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02184/0.155, allocations: 2.815 MB / 441.4 MB, free: 5.832 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.547/8.702, allocations: 12.44 kB / 441.5 MB, free: 5.82 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; mkfifo Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe >> ../files/Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController.fmu > Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.1.0_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_4.1.0_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: 11.675174892006908]