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.002028/0.002028, allocations: 128.5 kB / 17.79 MB, free: 5.246 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.002367/0.002367, allocations: 207.2 kB / 20.75 MB, free: 2.297 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.51/1.51, allocations: 230.6 MB / 254.1 MB, free: 15.1 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001599/0.001599, allocations: 59.91 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1378/0.1394, allocations: 53.32 MB / 426.3 MB, free: 4.82 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.00402/0.1434, allocations: 2.071 MB / 428.4 MB, free: 2.738 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001117/0.1445, allocations: 0.5414 MB / 428.9 MB, free: 2.191 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001085/0.1446, allocations: 4 kB / 428.9 MB, free: 2.188 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001556/0.1448, allocations: 15.8 kB / 428.9 MB, free: 2.172 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.000101/0.1449, allocations: 31.72 kB / 429 MB, free: 2.141 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003035/0.1452, allocations: 55.88 kB / 429 MB, free: 2.086 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000217/0.1454, allocations: 131.5 kB / 429.1 MB, free: 1.957 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001677/0.1455, allocations: 45.78 kB / 429.2 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001078/0.1457, allocations: 51.8 kB / 429.2 MB, free: 1.855 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001115/0.1458, allocations: 55.75 kB / 429.3 MB, free: 1.801 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.91e-05/0.1458, allocations: 12 kB / 429.3 MB, free: 1.789 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.103e-05/0.1458, allocations: 8 kB / 429.3 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 5.04e-05/0.1459, allocations: 27.86 kB / 429.3 MB, free: 1.754 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.94e-05/0.1459, allocations: 63.67 kB / 429.4 MB, free: 1.691 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002403/0.1462, allocations: 135.3 kB / 429.5 MB, free: 1.559 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.992e-06/0.1462, allocations: 0 / 429.5 MB, free: 1.559 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.694e-06/0.1462, allocations: 7.938 kB / 429.5 MB, free: 1.551 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.731e-06/0.1462, allocations: 0 / 429.5 MB, free: 1.551 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.0007537/0.147, allocations: 430.9 kB / 430 MB, free: 1.082 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.493e-05/0.147, allocations: 8.031 kB / 430 MB, free: 1.074 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.393e-05/0.1471, allocations: 46.73 kB / 430 MB, free: 1.02 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.734e-05/0.1471, allocations: 16.84 kB / 430 MB, free: 1.004 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003242/0.1474, allocations: 214.1 kB / 430.2 MB, free: 0.7578 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.663e-05/0.1475, allocations: 8.375 kB / 430.3 MB, free: 0.75 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.36e-05/0.1475, allocations: 12.38 kB / 430.3 MB, free: 0.7383 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005559/0.148, allocations: 246.6 kB / 430.5 MB, free: 484 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.686e-05/0.1481, allocations: 0 / 430.5 MB, free: 484 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.957e-05/0.1481, allocations: 8 kB / 430.5 MB, free: 476 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.318e-06/0.1481, allocations: 4 kB / 430.5 MB, free: 472 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002641/0.1484, allocations: 83.86 kB / 430.6 MB, free: 388 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008724/0.1492, allocations: 0.5999 MB / 431.2 MB, free: 15.71 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000388/0.1496, allocations: 139.9 kB / 431.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001707/0.1498, allocations: 70.64 kB / 431.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.005e-05/0.1498, allocations: 3.984 kB / 431.4 MB, free: 15.46 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.232e-05/0.1499, allocations: 42.5 kB / 431.4 MB, free: 15.41 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.193e-06/0.1499, allocations: 4 kB / 431.5 MB, free: 15.41 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005516/0.1504, allocations: 181.3 kB / 431.6 MB, free: 15.22 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001005/0.1505, allocations: 110.8 kB / 431.7 MB, free: 15.09 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001506/0.1507, allocations: 135.9 kB / 431.9 MB, free: 14.95 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.282e-05/0.1507, allocations: 25.7 kB / 431.9 MB, free: 14.92 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.491e-05/0.1508, allocations: 128.2 kB / 432 MB, free: 14.79 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.834e-05/0.1508, allocations: 23.8 kB / 432 MB, free: 14.77 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.041e-05/0.1509, allocations: 38.08 kB / 432.1 MB, free: 14.72 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.000166/0.151, allocations: 322.8 kB / 432.4 MB, free: 14.4 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001217/0.1512, allocations: 35.97 kB / 432.4 MB, free: 14.36 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002001/0.1514, allocations: 143.7 kB / 432.6 MB, free: 14.18 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.0005001/0.1519, allocations: 282.6 kB / 432.8 MB, free: 13.83 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.498e-06/0.1519, allocations: 7.938 kB / 432.9 MB, free: 13.82 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003942/0.1523, allocations: 193.6 kB / 433 MB, free: 13.63 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.99e-05/0.1523, allocations: 12.03 kB / 433.1 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.332e-06/0.1523, allocations: 0 / 433.1 MB, free: 13.62 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.8e-05/0.1523, allocations: 8 kB / 433.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002512/0.1526, allocations: 43.91 kB / 433.1 MB, free: 13.57 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 9.658e-06/0.1526, allocations: 4 kB / 433.1 MB, free: 13.56 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001077/0.1527, allocations: 27.88 kB / 433.1 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.719e-05/0.1527, allocations: 8 kB / 433.1 MB, free: 13.53 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.0001519/0.1528, allocations: 133.7 kB / 433.3 MB, free: 13.39 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001697/0.153, allocations: 97.52 kB / 433.4 MB, free: 13.29 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.083e-05/0.1531, allocations: 16.7 kB / 433.4 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.799e-06/0.1531, allocations: 4 kB / 433.4 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.46e-06/0.1531, allocations: 0 / 433.4 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.557e-06/0.1531, allocations: 0 / 433.4 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003009/0.1534, allocations: 213.4 kB / 433.6 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.393e-06/0.1534, allocations: 0 / 433.6 MB, free: 13 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002223/0.1536, allocations: 43.97 kB / 433.6 MB, free: 12.96 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.742e-06/0.1536, allocations: 7.984 kB / 433.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.231e-05/0.1536, allocations: 0 / 433.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.1536, allocations: 4 kB / 433.7 MB, free: 12.95 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.901e-06/0.1536, allocations: 11.94 kB / 433.7 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006079/0.1542, allocations: 379.4 kB / 434 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.841e-05/0.1543, allocations: 89.16 kB / 434.1 MB, free: 12.44 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.201e-05/0.1543, allocations: 8 kB / 434.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001323/0.1545, allocations: 4 kB / 434.1 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.567e-05/0.1545, allocations: 11.98 kB / 434.1 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.067e-06/0.1545, allocations: 4 kB / 434.2 MB, free: 12.41 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.953e-05/0.1546, allocations: 105.1 kB / 434.3 MB, free: 12.31 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.1546, allocations: 0 / 434.3 MB, free: 12.31 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003254/0.1549, allocations: 35.89 kB / 434.3 MB, free: 12.27 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.0009124/0.1558, allocations: 0.9175 MB / 435.2 MB, free: 11.33 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003903/0.1562, allocations: 123.8 kB / 435.3 MB, free: 11.21 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 3.016e-06/0.1562, allocations: 0 / 435.3 MB, free: 11.21 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001093/0.1563, allocations: 32.33 kB / 435.4 MB, free: 11.18 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005269/0.1569, allocations: 70.84 kB / 435.4 MB, free: 11.11 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00289/0.1597, allocations: 2.093 MB / 437.5 MB, free: 8.836 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.00044/0.1602, allocations: 0.7123 MB / 438.2 MB, free: 8.098 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.342e-05/0.1602, allocations: 13.08 kB / 438.2 MB, free: 8.086 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.141e-05/0.1603, allocations: 39.42 kB / 438.3 MB, free: 8.047 MB / 366.1 MB Notification: Performance of SimCode: time 3e-07/0.1603, allocations: 0 / 438.3 MB, free: 8.047 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03278/0.1931, allocations: 3.026 MB / 441.3 MB, free: 5.215 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.287/8.48, allocations: 8.047 kB / 441.3 MB, free: 5.207 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] Reference file matches [Calling sys.exit(0), Time elapsed: 11.227383740944788]