Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.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.001403/0.001403, allocations: 120.7 kB / 17.79 MB, free: 5.137 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.00135/0.00135, allocations: 186.9 kB / 20.73 MB, free: 2.207 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.568/1.568, allocations: 225.6 MB / 249.1 MB, free: 3.609 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.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001583/0.001583, allocations: 47.92 kB / 365.6 MB, free: 0.8477 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1099/0.1115, allocations: 52.15 MB / 417.8 MB, free: 12.6 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.003957/0.1155, allocations: 2.063 MB / 419.8 MB, free: 10.53 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.0009717/0.1165, allocations: 0.5103 MB / 420.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000103/0.1166, allocations: 0 / 420.3 MB, free: 10.02 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001288/0.1167, allocations: 23.8 kB / 420.4 MB, free: 9.992 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 7.821e-05/0.1168, allocations: 27.72 kB / 420.4 MB, free: 9.965 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002849/0.117, allocations: 51.88 kB / 420.4 MB, free: 9.914 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002557/0.1173, allocations: 131.5 kB / 420.6 MB, free: 9.785 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001442/0.1174, allocations: 37.8 kB / 420.6 MB, free: 9.742 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 9.439e-05/0.1175, allocations: 51.8 kB / 420.7 MB, free: 9.691 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.718e-05/0.1176, allocations: 55.7 kB / 420.7 MB, free: 9.637 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.693e-05/0.1177, allocations: 12 kB / 420.7 MB, free: 9.625 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.396e-05/0.1177, allocations: 12 kB / 420.7 MB, free: 9.613 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 3.082e-05/0.1177, allocations: 23.92 kB / 420.8 MB, free: 9.59 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 7.111e-05/0.1178, allocations: 63.66 kB / 420.8 MB, free: 9.527 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000306/0.1181, allocations: 135.3 kB / 421 MB, free: 9.395 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.556e-06/0.1181, allocations: 0 / 421 MB, free: 9.395 MB / 350.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.1181, allocations: 0 / 421 MB, free: 9.395 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.909e-06/0.1181, allocations: 0 / 421 MB, free: 9.395 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.0006586/0.1188, allocations: 441.3 kB / 421.4 MB, free: 8.918 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 8.415e-05/0.1188, allocations: 11.89 kB / 421.4 MB, free: 8.906 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.054e-05/0.1189, allocations: 46.73 kB / 421.4 MB, free: 8.852 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 3.776e-05/0.1189, allocations: 16.84 kB / 421.5 MB, free: 8.836 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003079/0.1192, allocations: 220 kB / 421.7 MB, free: 8.582 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.225e-05/0.1192, allocations: 8.375 kB / 421.7 MB, free: 8.574 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.602e-05/0.1193, allocations: 12.38 kB / 421.7 MB, free: 8.562 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005432/0.1198, allocations: 238.7 kB / 421.9 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.39e-05/0.1198, allocations: 0 / 421.9 MB, free: 8.305 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.524e-05/0.1199, allocations: 4 kB / 421.9 MB, free: 8.301 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.874e-06/0.1199, allocations: 7.938 kB / 421.9 MB, free: 8.293 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002515/0.1201, allocations: 87.88 kB / 422 MB, free: 8.207 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007941/0.1209, allocations: 0.5921 MB / 422.6 MB, free: 7.543 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003474/0.1213, allocations: 147.9 kB / 422.8 MB, free: 7.371 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002321/0.1215, allocations: 70.64 kB / 422.8 MB, free: 7.293 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.021e-05/0.1215, allocations: 4 kB / 422.8 MB, free: 7.289 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.054e-05/0.1216, allocations: 38.5 kB / 422.9 MB, free: 7.242 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.242e-06/0.1216, allocations: 0 / 422.9 MB, free: 7.242 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005309/0.1221, allocations: 177.4 kB / 423 MB, free: 7.062 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001015/0.1222, allocations: 118.9 kB / 423.2 MB, free: 6.922 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001676/0.1224, allocations: 134.2 kB / 423.3 MB, free: 6.781 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.248e-05/0.1224, allocations: 29.7 kB / 423.3 MB, free: 6.746 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.954e-05/0.1225, allocations: 116.1 kB / 423.4 MB, free: 6.629 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.255e-05/0.1225, allocations: 35.77 kB / 423.5 MB, free: 6.594 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.479e-05/0.1226, allocations: 29.72 kB / 423.5 MB, free: 6.559 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001501/0.1227, allocations: 322.8 kB / 423.8 MB, free: 6.234 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001287/0.1228, allocations: 43.97 kB / 423.9 MB, free: 6.191 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000197/0.123, allocations: 133.7 kB / 424 MB, free: 6.012 MB / 350.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.0004954/0.1235, allocations: 282.8 kB / 424.3 MB, free: 5.668 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 6.372e-06/0.1235, allocations: 7.938 kB / 424.3 MB, free: 5.66 MB / 350.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004168/0.1239, allocations: 193.3 kB / 424.5 MB, free: 5.465 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.527e-05/0.124, allocations: 7.984 kB / 424.5 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.685e-06/0.124, allocations: 4 kB / 424.5 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.208e-05/0.124, allocations: 4 kB / 424.5 MB, free: 5.449 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001489/0.1241, allocations: 47.92 kB / 424.5 MB, free: 5.402 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.435e-05/0.1242, allocations: 11.92 kB / 424.5 MB, free: 5.391 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000107/0.1243, allocations: 20.7 kB / 424.6 MB, free: 5.371 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.43e-05/0.1243, allocations: 16 kB / 424.6 MB, free: 5.355 MB / 350.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.0001292/0.1244, allocations: 137.7 kB / 424.7 MB, free: 5.211 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001633/0.1246, allocations: 93.47 kB / 424.8 MB, free: 5.113 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.553e-05/0.1246, allocations: 16.72 kB / 424.8 MB, free: 5.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.268e-06/0.1246, allocations: 4 kB / 424.8 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.827e-06/0.1246, allocations: 0 / 424.8 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.855e-06/0.1246, allocations: 0 / 424.8 MB, free: 5.086 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003317/0.125, allocations: 217.4 kB / 425 MB, free: 4.824 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.292e-06/0.125, allocations: 8 kB / 425 MB, free: 4.816 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002236/0.1252, allocations: 39.97 kB / 425.1 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.944e-06/0.1252, allocations: 0 / 425.1 MB, free: 4.777 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.513e-05/0.1252, allocations: 11.94 kB / 425.1 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.653e-06/0.1252, allocations: 0 / 425.1 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.042e-06/0.1252, allocations: 0 / 425.1 MB, free: 4.766 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006537/0.1259, allocations: 389.6 kB / 425.5 MB, free: 4.367 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.294e-05/0.1259, allocations: 89.05 kB / 425.6 MB, free: 4.262 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.305e-05/0.126, allocations: 4 kB / 425.6 MB, free: 4.258 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001349/0.1261, allocations: 11.98 kB / 425.6 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.456e-05/0.1261, allocations: 0 / 425.6 MB, free: 4.246 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.396e-06/0.1261, allocations: 7.984 kB / 425.6 MB, free: 4.238 MB / 350.1 MB Notification: Performance of sorting global known variables: time 7.619e-05/0.1262, allocations: 109.2 kB / 425.7 MB, free: 4.133 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.1262, allocations: 0 / 425.7 MB, free: 4.133 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003373/0.1265, allocations: 27.94 kB / 425.7 MB, free: 4.105 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.0009345/0.1275, allocations: 0.9232 MB / 426.6 MB, free: 3.152 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003411/0.1278, allocations: 124.6 kB / 426.8 MB, free: 3.031 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1278, allocations: 0 / 426.8 MB, free: 3.031 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 9.74e-05/0.1279, allocations: 31.98 kB / 426.8 MB, free: 3 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004954/0.1284, allocations: 68.28 kB / 426.9 MB, free: 2.934 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002781/0.1312, allocations: 2.101 MB / 429 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003925/0.1316, allocations: 0.7162 MB / 429.7 MB, free: 15.91 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.764e-05/0.1316, allocations: 13.03 kB / 429.7 MB, free: 15.9 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.157e-05/0.1317, allocations: 35.42 kB / 429.7 MB, free: 15.87 MB / 366.1 MB Notification: Performance of SimCode: time 4.41e-07/0.1317, allocations: 4 kB / 429.7 MB, free: 15.86 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02886/0.1606, allocations: 3.021 MB / 432.7 MB, free: 13.03 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.856/9.016, allocations: 18.02 kB / 432.8 MB, free: 13.02 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController_fmu --startTime=0 --stopTime=5 --stepSize=0.000989903 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscretizedContinuousController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork_2/OpenModelicaLibraryTesting/files/Modelica_4.0.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.654722888022661]