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.001441/0.001441, allocations: 127.4 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.001477/0.001477, allocations: 208.3 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.56/1.56, allocations: 230.6 MB / 254.1 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.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController,fileNamePrefix="Modelica_4_1_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteTextbookController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001566/0.001566, allocations: 51.92 kB / 373 MB, free: 10.23 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1152/0.1168, allocations: 53.33 MB / 426.3 MB, free: 4.801 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController): time 0.004177/0.121, allocations: 2.017 MB / 428.3 MB, free: 2.77 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001179/0.1221, allocations: 0.5375 MB / 428.9 MB, free: 2.227 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00012/0.1223, allocations: 7.938 kB / 428.9 MB, free: 2.219 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001486/0.1224, allocations: 23.8 kB / 428.9 MB, free: 2.195 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.371e-05/0.1225, allocations: 19.78 kB / 428.9 MB, free: 2.176 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003311/0.1228, allocations: 63.86 kB / 429 MB, free: 2.113 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002033/0.123, allocations: 119.6 kB / 429.1 MB, free: 1.996 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001589/0.1232, allocations: 33.44 kB / 429.1 MB, free: 1.961 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001032/0.1233, allocations: 59.77 kB / 429.2 MB, free: 1.902 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.607e-05/0.1234, allocations: 51.72 kB / 429.2 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.459e-05/0.1234, allocations: 8 kB / 429.2 MB, free: 1.844 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.108e-05/0.1234, allocations: 16 kB / 429.2 MB, free: 1.828 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 4.165e-05/0.1235, allocations: 23.92 kB / 429.3 MB, free: 1.805 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 8.066e-05/0.1235, allocations: 67.64 kB / 429.3 MB, free: 1.738 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002427/0.1238, allocations: 115.5 kB / 429.4 MB, free: 1.625 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.408e-06/0.1238, allocations: 0 / 429.4 MB, free: 1.625 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.743e-06/0.1238, allocations: 0 / 429.4 MB, free: 1.625 MB / 350.1 MB Notification: Performance of Transformations before backend: time 6.642e-06/0.1238, allocations: 4 kB / 429.5 MB, free: 1.621 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.0007662/0.1246, allocations: 430.9 kB / 429.9 MB, free: 1.152 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.823e-05/0.1246, allocations: 12.03 kB / 429.9 MB, free: 1.141 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 0.0001007/0.1247, allocations: 46.73 kB / 429.9 MB, free: 1.086 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.762e-05/0.1248, allocations: 16.84 kB / 429.9 MB, free: 1.07 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004053/0.1252, allocations: 204.1 kB / 430.1 MB, free: 0.832 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.893e-05/0.1252, allocations: 8.375 kB / 430.2 MB, free: 0.8242 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.08e-05/0.1252, allocations: 16.33 kB / 430.2 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006053/0.1258, allocations: 249.7 kB / 430.4 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.694e-05/0.1258, allocations: 0 / 430.4 MB, free: 0.543 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.76e-05/0.1259, allocations: 4 kB / 430.4 MB, free: 0.5391 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.957e-06/0.1259, allocations: 4 kB / 430.4 MB, free: 0.5352 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000279/0.1262, allocations: 91.88 kB / 430.5 MB, free: 456 kB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007864/0.1269, allocations: 0.5882 MB / 431.1 MB, free: 15.79 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003079/0.1272, allocations: 151.8 kB / 431.2 MB, free: 15.61 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001874/0.1274, allocations: 66.64 kB / 431.3 MB, free: 15.54 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.071e-05/0.1275, allocations: 4 kB / 431.3 MB, free: 15.53 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.407e-05/0.1275, allocations: 42.55 kB / 431.4 MB, free: 15.48 MB / 366.1 MB Notification: Performance of pre-optimization done (n=14): time 1.523e-06/0.1275, allocations: 3.938 kB / 431.4 MB, free: 15.48 MB / 366.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005575/0.1281, allocations: 177.4 kB / 431.5 MB, free: 15.3 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.886e-05/0.1282, allocations: 106.9 kB / 431.6 MB, free: 15.17 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001227/0.1283, allocations: 140.4 kB / 431.8 MB, free: 15.02 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.48e-05/0.1283, allocations: 29.7 kB / 431.8 MB, free: 14.98 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.501e-05/0.1284, allocations: 115.8 kB / 431.9 MB, free: 14.87 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.387e-05/0.1284, allocations: 31.78 kB / 431.9 MB, free: 14.84 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.859e-05/0.1285, allocations: 29.72 kB / 432 MB, free: 14.8 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001658/0.1287, allocations: 318.8 kB / 432.3 MB, free: 14.48 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001242/0.1288, allocations: 35.97 kB / 432.3 MB, free: 14.45 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002209/0.129, allocations: 128.8 kB / 432.5 MB, free: 14.27 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.00032/0.1293, allocations: 176.7 kB / 432.6 MB, free: 14.05 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.348e-06/0.1293, allocations: 4 kB / 432.6 MB, free: 14.05 MB / 366.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003767/0.1297, allocations: 189.2 kB / 432.8 MB, free: 13.86 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.722e-05/0.1297, allocations: 4 kB / 432.8 MB, free: 13.86 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.218e-05/0.1298, allocations: 12.55 kB / 432.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.201e-05/0.1298, allocations: 8 kB / 432.8 MB, free: 13.84 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001919/0.13, allocations: 47.97 kB / 432.9 MB, free: 13.79 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.358e-05/0.13, allocations: 7.938 kB / 432.9 MB, free: 13.78 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001075/0.1301, allocations: 19.88 kB / 432.9 MB, free: 13.76 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.886e-05/0.1302, allocations: 15.98 kB / 432.9 MB, free: 13.75 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.0001304/0.1303, allocations: 129.7 kB / 433.1 MB, free: 13.61 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001495/0.1304, allocations: 81.95 kB / 433.1 MB, free: 13.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.551e-05/0.1305, allocations: 24.66 kB / 433.2 MB, free: 13.49 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.083e-06/0.1305, allocations: 7.938 kB / 433.2 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.092e-06/0.1305, allocations: 0 / 433.2 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.807e-06/0.1305, allocations: 0 / 433.2 MB, free: 13.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002964/0.1308, allocations: 205.5 kB / 433.4 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.432e-06/0.1308, allocations: 0 / 433.4 MB, free: 13.23 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001749/0.131, allocations: 35.97 kB / 433.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.166e-06/0.131, allocations: 0 / 433.4 MB, free: 13.2 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.888e-05/0.131, allocations: 7.938 kB / 433.4 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.388e-06/0.131, allocations: 3.984 kB / 433.4 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.823e-06/0.131, allocations: 0 / 433.4 MB, free: 13.19 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000616/0.1316, allocations: 375.5 kB / 433.8 MB, free: 12.8 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.926e-05/0.1317, allocations: 96.97 kB / 433.9 MB, free: 12.69 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.444e-05/0.1317, allocations: 11.88 kB / 433.9 MB, free: 12.68 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001326/0.1319, allocations: 16.06 kB / 433.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.313e-05/0.1319, allocations: 3.984 kB / 433.9 MB, free: 12.66 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.188e-06/0.1319, allocations: 4 kB / 433.9 MB, free: 12.65 MB / 366.1 MB Notification: Performance of sorting global known variables: time 7.578e-05/0.132, allocations: 101.2 kB / 434 MB, free: 12.55 MB / 366.1 MB Notification: Performance of sort global known variables: time 7e-08/0.132, allocations: 0 / 434 MB, free: 12.55 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0003217/0.1323, allocations: 24 kB / 434 MB, free: 12.53 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.0008981/0.1332, allocations: 0.9116 MB / 434.9 MB, free: 11.59 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0003673/0.1336, allocations: 116.2 kB / 435.1 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.184e-06/0.1336, allocations: 0 / 435.1 MB, free: 11.48 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001056/0.1337, allocations: 31.91 kB / 435.1 MB, free: 11.45 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005292/0.1342, allocations: 44.02 kB / 435.1 MB, free: 11.4 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002742/0.1369, allocations: 2.033 MB / 437.2 MB, free: 9.203 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003593/0.1373, allocations: 0.7162 MB / 437.9 MB, free: 8.461 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 5.423e-05/0.1374, allocations: 8.641 kB / 437.9 MB, free: 8.453 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.208e-05/0.1374, allocations: 39.42 kB / 437.9 MB, free: 8.414 MB / 366.1 MB Notification: Performance of SimCode: time 2.91e-07/0.1374, allocations: 0 / 437.9 MB, free: 8.414 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02919/0.1666, allocations: 2.766 MB / 440.7 MB, free: 5.832 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.272/8.439, allocations: 8.375 kB / 440.7 MB, free: 5.824 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 & python3 -m fmpy simulate --output-file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv --start-time 0 --stop-time 5 --timeout 50 --relative-tolerance 1e-06 --interface-type ModelExchange --solver CVode --output-interval 0.000989903 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.csv","/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] "Error: Could not read variable PI.x in file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.1.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteTextbookController_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.355603608011734]