Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001704/0.001704, allocations: 120.1 kB / 17.79 MB, free: 5.25 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.002033/0.002033, allocations: 194.8 kB / 20.73 MB, free: 2.312 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.533/1.533, allocations: 225.6 MB / 249.1 MB, free: 3.594 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001582/0.001582, allocations: 51.91 kB / 365.6 MB, free: 0.8672 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.107/0.1085, allocations: 52.14 MB / 417.8 MB, free: 12.64 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.003512/0.112, allocations: 2.024 MB / 419.8 MB, free: 10.61 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009623/0.113, allocations: 0.5298 MB / 420.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001031/0.1131, allocations: 4 kB / 420.3 MB, free: 10.07 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001242/0.1132, allocations: 15.8 kB / 420.3 MB, free: 10.05 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001424/0.1134, allocations: 31.72 kB / 420.4 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002454/0.1136, allocations: 63.86 kB / 420.4 MB, free: 9.957 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002123/0.1138, allocations: 123.5 kB / 420.5 MB, free: 9.836 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000146/0.114, allocations: 37.44 kB / 420.6 MB, free: 9.797 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.706e-05/0.1141, allocations: 59.77 kB / 420.6 MB, free: 9.738 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 9.846e-05/0.1142, allocations: 59.7 kB / 420.7 MB, free: 9.68 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.995e-05/0.1142, allocations: 12 kB / 420.7 MB, free: 9.668 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.186e-05/0.1142, allocations: 8 kB / 420.7 MB, free: 9.66 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.371e-05/0.1143, allocations: 23.92 kB / 420.7 MB, free: 9.637 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.692e-05/0.1143, allocations: 63.66 kB / 420.8 MB, free: 9.574 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002007/0.1145, allocations: 123.5 kB / 420.9 MB, free: 9.453 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.898e-06/0.1145, allocations: 0 / 420.9 MB, free: 9.453 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.312e-06/0.1145, allocations: 0 / 420.9 MB, free: 9.453 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.849e-06/0.1146, allocations: 0 / 420.9 MB, free: 9.453 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.0006694/0.1152, allocations: 442.8 kB / 421.4 MB, free: 8.973 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.794e-05/0.1153, allocations: 8.031 kB / 421.4 MB, free: 8.965 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.537e-05/0.1153, allocations: 50.67 kB / 421.4 MB, free: 8.906 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.893e-05/0.1154, allocations: 16.84 kB / 421.4 MB, free: 8.891 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002672/0.1156, allocations: 192.2 kB / 421.6 MB, free: 8.664 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.792e-05/0.1156, allocations: 16.31 kB / 421.6 MB, free: 8.648 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.554e-05/0.1157, allocations: 12.38 kB / 421.6 MB, free: 8.637 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005359/0.1162, allocations: 265.5 kB / 421.9 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.413e-05/0.1162, allocations: 0 / 421.9 MB, free: 8.355 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.579e-05/0.1162, allocations: 8 kB / 421.9 MB, free: 8.348 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.532e-06/0.1163, allocations: 4 kB / 421.9 MB, free: 8.344 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002824/0.1165, allocations: 91.81 kB / 422 MB, free: 8.254 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006794/0.1172, allocations: 0.5844 MB / 422.6 MB, free: 7.598 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003824/0.1176, allocations: 143.7 kB / 422.7 MB, free: 7.43 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000175/0.1178, allocations: 74.83 kB / 422.8 MB, free: 7.348 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.75e-05/0.1178, allocations: 7.938 kB / 422.8 MB, free: 7.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 2.598e-05/0.1178, allocations: 38.5 kB / 422.8 MB, free: 7.293 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.173e-06/0.1178, allocations: 0 / 422.8 MB, free: 7.293 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.000567/0.1184, allocations: 193.3 kB / 423 MB, free: 7.098 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.871e-05/0.1185, allocations: 111.1 kB / 423.1 MB, free: 6.965 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001206/0.1186, allocations: 136.6 kB / 423.3 MB, free: 6.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.398e-05/0.1186, allocations: 25.7 kB / 423.3 MB, free: 6.789 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.434e-05/0.1187, allocations: 119.9 kB / 423.4 MB, free: 6.668 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.87e-05/0.1187, allocations: 27.83 kB / 423.4 MB, free: 6.641 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.602e-05/0.1188, allocations: 33.72 kB / 423.5 MB, free: 6.602 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001414/0.1189, allocations: 318.8 kB / 423.8 MB, free: 6.281 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001257/0.1191, allocations: 39.97 kB / 423.8 MB, free: 6.242 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000201/0.1193, allocations: 145.6 kB / 424 MB, free: 6.051 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003268/0.1196, allocations: 181.5 kB / 424.1 MB, free: 5.824 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.859e-06/0.1196, allocations: 3.938 kB / 424.2 MB, free: 5.82 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004107/0.12, allocations: 197.5 kB / 424.3 MB, free: 5.621 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.945e-05/0.12, allocations: 14.17 kB / 424.4 MB, free: 5.609 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.575e-06/0.12, allocations: 4 kB / 424.4 MB, free: 5.605 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.721e-05/0.12, allocations: 4 kB / 424.4 MB, free: 5.602 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001614/0.1202, allocations: 43.92 kB / 424.4 MB, free: 5.559 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.1202, allocations: 7.984 kB / 424.4 MB, free: 5.551 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001103/0.1203, allocations: 15.95 kB / 424.4 MB, free: 5.535 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.372e-05/0.1203, allocations: 8 kB / 424.4 MB, free: 5.527 MB / 350.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.0001171/0.1205, allocations: 137.8 kB / 424.6 MB, free: 5.383 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001688/0.1206, allocations: 93.53 kB / 424.7 MB, free: 5.285 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.58e-05/0.1207, allocations: 16.7 kB / 424.7 MB, free: 5.262 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.242e-06/0.1207, allocations: 4.469 kB / 424.7 MB, free: 5.258 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.1207, allocations: 0 / 424.7 MB, free: 5.258 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.1207, allocations: 0 / 424.7 MB, free: 5.258 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002883/0.121, allocations: 209.5 kB / 424.9 MB, free: 5.004 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.679e-06/0.121, allocations: 4 kB / 424.9 MB, free: 5 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001905/0.1212, allocations: 39.91 kB / 424.9 MB, free: 4.961 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.194e-06/0.1212, allocations: 7.938 kB / 424.9 MB, free: 4.953 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.785e-05/0.1212, allocations: 4 kB / 424.9 MB, free: 4.949 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.657e-06/0.1212, allocations: 3.938 kB / 424.9 MB, free: 4.945 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.232e-06/0.1212, allocations: 0 / 424.9 MB, free: 4.945 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006083/0.1218, allocations: 387.4 kB / 425.3 MB, free: 4.547 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.982e-05/0.1219, allocations: 89.03 kB / 425.4 MB, free: 4.441 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.259e-05/0.1219, allocations: 4 kB / 425.4 MB, free: 4.438 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001415/0.1221, allocations: 7.984 kB / 425.4 MB, free: 4.43 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.412e-05/0.1221, allocations: 8.234 kB / 425.4 MB, free: 4.422 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.927e-06/0.1221, allocations: 4 kB / 425.4 MB, free: 4.418 MB / 350.1 MB Notification: Performance of sorting global known variables: time 6.837e-05/0.1222, allocations: 102 kB / 425.5 MB, free: 4.32 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1222, allocations: 0 / 425.5 MB, free: 4.32 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003275/0.1225, allocations: 32.02 kB / 425.6 MB, free: 4.289 MB / 350.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.0008999/0.1234, allocations: 0.9232 MB / 426.5 MB, free: 3.336 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003573/0.1238, allocations: 119.8 kB / 426.6 MB, free: 3.219 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.934e-06/0.1238, allocations: 0 / 426.6 MB, free: 3.219 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000103/0.1239, allocations: 24.92 kB / 426.6 MB, free: 3.195 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004917/0.1244, allocations: 56 kB / 426.7 MB, free: 3.141 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00258/0.1269, allocations: 2.056 MB / 428.7 MB, free: 0.9062 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003473/0.1273, allocations: 0.7123 MB / 429.5 MB, free: 172 kB / 350.1 MB Notification: Performance of simCode: alias equations: time 4.435e-05/0.1273, allocations: 13.08 kB / 429.5 MB, free: 160 kB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.623e-05/0.1274, allocations: 39.42 kB / 429.5 MB, free: 120 kB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.1274, allocations: 288 / 429.5 MB, free: 120 kB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02854/0.1559, allocations: 2.812 MB / 432.3 MB, free: 13.46 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.781/8.937, allocations: 22.25 kB / 432.3 MB, free: 13.44 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.sim & python3 -m fmpy simulate --output-file Modelica_4.0.0_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_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscreteController/ClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.x from file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv failed! Error: Could not read variable PI.y in file Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.csv. Warning: Get data of variable PI.y from file Modelica_4.0.0_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.668172840960324]