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.001848/0.001848, allocations: 131.4 kB / 17.8 MB, free: 5.219 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.002275/0.002275, allocations: 211.6 kB / 20.75 MB, free: 2.27 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.467/1.467, allocations: 230.4 MB / 254 MB, free: 15.16 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002068/0.002068, allocations: 71.89 kB / 373 MB, free: 10.12 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1272/0.1292, allocations: 53.37 MB / 426.3 MB, free: 4.652 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003943/0.1332, allocations: 2.084 MB / 428.4 MB, free: 2.559 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001072/0.1342, allocations: 0.5298 MB / 428.9 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001295/0.1344, allocations: 15.88 kB / 429 MB, free: 2.008 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001457/0.1345, allocations: 15.8 kB / 429 MB, free: 1.992 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.201e-05/0.1346, allocations: 31.7 kB / 429 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003402/0.1349, allocations: 55.88 kB / 429.1 MB, free: 1.906 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002215/0.1352, allocations: 127.6 kB / 429.2 MB, free: 1.781 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001761/0.1353, allocations: 39.92 kB / 429.2 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001103/0.1355, allocations: 59.77 kB / 429.3 MB, free: 1.68 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001069/0.1356, allocations: 55.7 kB / 429.3 MB, free: 1.625 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.756e-05/0.1356, allocations: 8 kB / 429.4 MB, free: 1.617 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.475e-05/0.1356, allocations: 16 kB / 429.4 MB, free: 1.602 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.896e-05/0.1357, allocations: 27.86 kB / 429.4 MB, free: 1.574 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.791e-05/0.1357, allocations: 59.67 kB / 429.5 MB, free: 1.516 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002501/0.136, allocations: 135.4 kB / 429.6 MB, free: 1.383 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.469e-06/0.136, allocations: 0 / 429.6 MB, free: 1.383 MB / 350.1 MB Notification: Performance of FrontEnd: time 2.635e-06/0.136, allocations: 0 / 429.6 MB, free: 1.383 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.136, allocations: 0 / 429.6 MB, free: 1.383 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.0007366/0.1367, allocations: 430.9 kB / 430 MB, free: 0.9141 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.933e-05/0.1368, allocations: 19.97 kB / 430 MB, free: 0.8945 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.425e-05/0.1368, allocations: 38.75 kB / 430.1 MB, free: 0.8477 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.853e-05/0.1369, allocations: 20.83 kB / 430.1 MB, free: 0.8281 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003175/0.1372, allocations: 204.2 kB / 430.3 MB, free: 0.5898 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.617e-05/0.1372, allocations: 12.31 kB / 430.3 MB, free: 0.5781 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.402e-05/0.1373, allocations: 12.38 kB / 430.3 MB, free: 0.5664 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.00054/0.1378, allocations: 238.7 kB / 430.5 MB, free: 316 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.662e-05/0.1378, allocations: 3.938 kB / 430.5 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.524e-05/0.1378, allocations: 0 / 430.5 MB, free: 312 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.867e-06/0.1378, allocations: 4 kB / 430.5 MB, free: 308 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002683/0.1381, allocations: 91.86 kB / 430.6 MB, free: 216 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008115/0.1389, allocations: 0.5922 MB / 431.2 MB, free: 15.55 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003599/0.1393, allocations: 139.9 kB / 431.4 MB, free: 15.38 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001652/0.1394, allocations: 74.58 kB / 431.4 MB, free: 15.3 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.634e-05/0.1395, allocations: 11.98 kB / 431.4 MB, free: 15.29 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.74e-05/0.1395, allocations: 30.56 kB / 431.5 MB, free: 15.25 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.513e-06/0.1395, allocations: 0 / 431.5 MB, free: 15.25 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005341/0.14, allocations: 193.2 kB / 431.7 MB, free: 15.05 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.946e-05/0.1401, allocations: 110.9 kB / 431.8 MB, free: 14.92 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001187/0.1402, allocations: 140.9 kB / 431.9 MB, free: 14.78 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.041e-05/0.1403, allocations: 25.7 kB / 431.9 MB, free: 14.75 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.668e-05/0.1403, allocations: 112.1 kB / 432 MB, free: 14.63 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.405e-05/0.1404, allocations: 31.78 kB / 432.1 MB, free: 14.6 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.798e-05/0.1404, allocations: 37.7 kB / 432.1 MB, free: 14.56 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001461/0.1406, allocations: 326.8 kB / 432.4 MB, free: 14.23 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001201/0.1407, allocations: 35.97 kB / 432.5 MB, free: 14.2 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001874/0.1409, allocations: 137.7 kB / 432.6 MB, free: 14.01 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.0004606/0.1413, allocations: 278.7 kB / 432.9 MB, free: 13.67 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.358e-06/0.1414, allocations: 3.938 kB / 432.9 MB, free: 13.67 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003845/0.1417, allocations: 201.4 kB / 433.1 MB, free: 13.46 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.175e-05/0.1418, allocations: 10.03 kB / 433.1 MB, free: 13.46 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.686e-06/0.1418, allocations: 4 kB / 433.1 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.034e-05/0.1418, allocations: 4 kB / 433.1 MB, free: 13.45 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001581/0.1419, allocations: 47.91 kB / 433.1 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.066e-05/0.142, allocations: 4 kB / 433.1 MB, free: 13.4 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001106/0.1421, allocations: 23.88 kB / 433.2 MB, free: 13.38 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.55e-05/0.1421, allocations: 16.31 kB / 433.2 MB, free: 13.36 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.0001391/0.1422, allocations: 133.7 kB / 433.3 MB, free: 13.22 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001735/0.1424, allocations: 89.58 kB / 433.4 MB, free: 13.12 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.124e-05/0.1425, allocations: 20.7 kB / 433.4 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.685e-06/0.1425, allocations: 0 / 433.4 MB, free: 13.1 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.363e-06/0.1425, allocations: 4 kB / 433.4 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.088e-06/0.1425, allocations: 0 / 433.4 MB, free: 13.09 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003174/0.1428, allocations: 217.4 kB / 433.6 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.757e-06/0.1428, allocations: 4.469 kB / 433.6 MB, free: 12.83 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002172/0.143, allocations: 47.91 kB / 433.7 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.325e-06/0.143, allocations: 0 / 433.7 MB, free: 12.78 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.762e-05/0.143, allocations: 7.984 kB / 433.7 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.543e-06/0.143, allocations: 4 kB / 433.7 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.543e-06/0.143, allocations: 3.938 kB / 433.7 MB, free: 12.77 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006072/0.1436, allocations: 387.3 kB / 434.1 MB, free: 12.37 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.097e-05/0.1437, allocations: 89.08 kB / 434.2 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.092e-05/0.1437, allocations: 0 / 434.2 MB, free: 12.26 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001328/0.1439, allocations: 12 kB / 434.2 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.974e-05/0.1439, allocations: 3.984 kB / 434.2 MB, free: 12.25 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.398e-06/0.1439, allocations: 4 kB / 434.2 MB, free: 12.24 MB / 366.1 MB Notification: Performance of sorting global known variables: time 8.603e-05/0.144, allocations: 103.3 kB / 434.3 MB, free: 12.14 MB / 366.1 MB Notification: Performance of sort global known variables: time 8e-08/0.144, allocations: 4.062 kB / 434.3 MB, free: 12.14 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003235/0.1443, allocations: 31.89 kB / 434.3 MB, free: 12.11 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.0008949/0.1452, allocations: 0.9171 MB / 435.2 MB, free: 11.16 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003618/0.1456, allocations: 123.7 kB / 435.4 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.1456, allocations: 0.9375 kB / 435.4 MB, free: 11.04 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001051/0.1457, allocations: 32.39 kB / 435.4 MB, free: 11.01 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005493/0.1462, allocations: 67.81 kB / 435.5 MB, free: 10.94 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002759/0.149, allocations: 2.091 MB / 437.6 MB, free: 8.668 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003463/0.1493, allocations: 0.7162 MB / 438.3 MB, free: 7.926 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.749e-05/0.1494, allocations: 9.078 kB / 438.3 MB, free: 7.918 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.084e-05/0.1495, allocations: 40.83 kB / 438.3 MB, free: 7.879 MB / 366.1 MB Notification: Performance of SimCode: time 7.61e-07/0.1495, allocations: 288 / 438.3 MB, free: 7.879 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02922/0.1787, allocations: 3.029 MB / 441.3 MB, free: 5.031 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.777/7.956, allocations: 10.89 kB / 441.4 MB, free: 5.023 MB / 366.1 MB " [Timeout remaining time 652] (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 & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000989903 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.csv","/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] "Error: Could not read variable PI.x in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.csv failed! " [Timeout remaining time 660] "" Variables in the reference:time,load.phi,load.w,PI.x,PI.y Variables in the result:time,load.phi,load.w [Calling sys.exit(0), Time elapsed: 10.798984855995513]