Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.001348/0.001348, allocations: 124.4 kB / 17.79 MB, free: 5.266 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.001589/0.001589, allocations: 206.6 kB / 20.75 MB, free: 2.312 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.502/1.502, allocations: 230.4 MB / 254 MB, free: 15.02 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.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001854/0.001854, allocations: 59.89 kB / 373 MB, free: 10.13 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1197/0.1215, allocations: 53.38 MB / 426.3 MB, free: 4.652 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003617/0.1252, allocations: 2.025 MB / 428.4 MB, free: 2.617 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001029/0.1262, allocations: 0.5648 MB / 428.9 MB, free: 2.047 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001047/0.1263, allocations: 3.938 kB / 428.9 MB, free: 2.043 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001232/0.1264, allocations: 19.8 kB / 429 MB, free: 2.023 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001533/0.1266, allocations: 43.66 kB / 429 MB, free: 1.98 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.00024/0.1268, allocations: 51.88 kB / 429 MB, free: 1.93 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001876/0.127, allocations: 115.6 kB / 429.2 MB, free: 1.816 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001552/0.1271, allocations: 45.41 kB / 429.2 MB, free: 1.77 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.213e-05/0.1272, allocations: 47.86 kB / 429.2 MB, free: 1.723 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.704e-05/0.1273, allocations: 55.7 kB / 429.3 MB, free: 1.668 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.678e-05/0.1274, allocations: 12 kB / 429.3 MB, free: 1.656 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.311e-05/0.1274, allocations: 12 kB / 429.3 MB, free: 1.645 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.532e-05/0.1274, allocations: 31.84 kB / 429.4 MB, free: 1.613 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.726e-05/0.1275, allocations: 55.67 kB / 429.4 MB, free: 1.559 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002071/0.1277, allocations: 127.5 kB / 429.5 MB, free: 1.434 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.908e-06/0.1277, allocations: 0 / 429.5 MB, free: 1.434 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.573e-06/0.1277, allocations: 0 / 429.5 MB, free: 1.434 MB / 350.1 MB Notification: Performance of Transformations before backend: time 5.59e-06/0.1277, allocations: 4 kB / 429.5 MB, free: 1.43 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0007172/0.1284, allocations: 438.8 kB / 430 MB, free: 0.9531 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.854e-05/0.1285, allocations: 8.031 kB / 430 MB, free: 0.9453 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.322e-05/0.1285, allocations: 46.73 kB / 430 MB, free: 0.8906 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.906e-05/0.1286, allocations: 16.84 kB / 430 MB, free: 0.875 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002402/0.1288, allocations: 216.1 kB / 430.2 MB, free: 0.625 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.552e-05/0.1288, allocations: 8.375 kB / 430.3 MB, free: 0.6172 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.063e-05/0.1288, allocations: 12.38 kB / 430.3 MB, free: 0.6055 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005259/0.1294, allocations: 250.7 kB / 430.5 MB, free: 344 kB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.548e-05/0.1294, allocations: 3.938 kB / 430.5 MB, free: 340 kB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.635e-05/0.1294, allocations: 4 kB / 430.5 MB, free: 336 kB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.528e-06/0.1294, allocations: 7.984 kB / 430.5 MB, free: 328 kB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002622/0.1297, allocations: 87.88 kB / 430.6 MB, free: 240 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006864/0.1304, allocations: 0.5883 MB / 431.2 MB, free: 15.57 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003535/0.1307, allocations: 147.9 kB / 431.3 MB, free: 15.4 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001656/0.1309, allocations: 74.62 kB / 431.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.342e-05/0.1309, allocations: 4 kB / 431.4 MB, free: 15.32 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.466e-05/0.1309, allocations: 34.5 kB / 431.5 MB, free: 15.27 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.502e-06/0.1309, allocations: 0 / 431.5 MB, free: 15.27 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005443/0.1315, allocations: 197.6 kB / 431.7 MB, free: 15.07 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.534e-05/0.1315, allocations: 111 kB / 431.8 MB, free: 14.94 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001101/0.1317, allocations: 132.2 kB / 431.9 MB, free: 14.8 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 1.854e-05/0.1317, allocations: 29.7 kB / 431.9 MB, free: 14.77 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.914e-05/0.1318, allocations: 115.9 kB / 432 MB, free: 14.65 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.519e-05/0.1318, allocations: 23.84 kB / 432.1 MB, free: 14.62 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.734e-05/0.1318, allocations: 41.83 kB / 432.1 MB, free: 14.58 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001283/0.132, allocations: 322.8 kB / 432.4 MB, free: 14.25 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001191/0.1321, allocations: 35.97 kB / 432.4 MB, free: 14.22 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001814/0.1323, allocations: 140.4 kB / 432.6 MB, free: 14.04 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003016/0.1326, allocations: 181.5 kB / 432.8 MB, free: 13.81 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 7.073e-06/0.1326, allocations: 7.938 kB / 432.8 MB, free: 13.8 MB / 366.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0003753/0.133, allocations: 197.2 kB / 433 MB, free: 13.6 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.632e-05/0.133, allocations: 8 kB / 433 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.784e-06/0.133, allocations: 7.938 kB / 433 MB, free: 13.59 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.768e-05/0.133, allocations: 4 kB / 433 MB, free: 13.58 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001541/0.1332, allocations: 44.44 kB / 433 MB, free: 13.54 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.1332, allocations: 7.938 kB / 433 MB, free: 13.53 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001011/0.1333, allocations: 23.94 kB / 433.1 MB, free: 13.51 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.337e-05/0.1333, allocations: 8 kB / 433.1 MB, free: 13.5 MB / 366.1 MB 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.0001054/0.1334, allocations: 137.6 kB / 433.2 MB, free: 13.36 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001512/0.1335, allocations: 89.58 kB / 433.3 MB, free: 13.26 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.837e-05/0.1336, allocations: 16.72 kB / 433.3 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.785e-06/0.1336, allocations: 0 / 433.3 MB, free: 13.24 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.881e-06/0.1336, allocations: 3.984 kB / 433.3 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.727e-06/0.1336, allocations: 8 kB / 433.3 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002692/0.1339, allocations: 209.5 kB / 433.5 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.383e-06/0.1339, allocations: 0 / 433.5 MB, free: 12.97 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001715/0.1341, allocations: 31.98 kB / 433.5 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1341, allocations: 0 / 433.5 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.504e-05/0.1341, allocations: 4 kB / 433.6 MB, free: 12.94 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.049e-06/0.1341, allocations: 3.984 kB / 433.6 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.32e-07/0.1341, allocations: 0 / 433.6 MB, free: 12.93 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005491/0.1346, allocations: 383.6 kB / 433.9 MB, free: 12.54 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.641e-05/0.1347, allocations: 96.92 kB / 434 MB, free: 12.43 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.884e-05/0.1347, allocations: 11.98 kB / 434 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001323/0.1348, allocations: 4 kB / 434 MB, free: 12.41 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.079e-05/0.1349, allocations: 7.984 kB / 434 MB, free: 12.4 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.426e-06/0.1349, allocations: 8.062 kB / 434.1 MB, free: 12.39 MB / 366.1 MB Notification: Performance of sorting global known variables: time 6.358e-05/0.135, allocations: 96.67 kB / 434.2 MB, free: 12.3 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.135, allocations: 0 / 434.2 MB, free: 12.3 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003059/0.1353, allocations: 28 kB / 434.2 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.0008434/0.1361, allocations: 0.9208 MB / 435.1 MB, free: 11.32 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003396/0.1365, allocations: 116.7 kB / 435.2 MB, free: 11.21 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.904e-06/0.1365, allocations: 4.062 kB / 435.2 MB, free: 11.21 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001016/0.1366, allocations: 31.91 kB / 435.2 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.0004704/0.137, allocations: 54.7 kB / 435.3 MB, free: 11.12 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002487/0.1395, allocations: 2.052 MB / 437.4 MB, free: 8.891 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003458/0.1399, allocations: 0.72 MB / 438.1 MB, free: 8.145 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.332e-05/0.1399, allocations: 13.08 kB / 438.1 MB, free: 8.133 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.11e-05/0.14, allocations: 31.44 kB / 438.1 MB, free: 8.102 MB / 366.1 MB Notification: Performance of SimCode: time 2.81e-07/0.14, allocations: 0 / 438.1 MB, free: 8.102 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02653/0.1665, allocations: 2.809 MB / 440.9 MB, free: 5.441 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.127/8.294, allocations: 12.42 kB / 440.9 MB, free: 5.43 MB / 366.1 MB " [Timeout remaining time 652] (rm -f Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & python3 -m fmpy simulate --output-file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv --start-time 0 --stop-time 3 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000593942 Modelica_trunk_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.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.ClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.x from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv failed! Error: Could not read variable PI.y in file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.y from file Modelica_trunk_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_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: 11.217409044038504]