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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001056/0.001057, allocations: 88.61 kB / 16.65 MB, free: 6.535 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.001565/0.001565, allocations: 177.5 kB / 17.56 MB, free: 6.18 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.521/1.521, allocations: 223.3 MB / 241.6 MB, free: 192 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0003477/0.0003478, allocations: 4 kB / 301.5 MB, free: 6.066 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1214/0.1218, allocations: 50.41 MB / 351.9 MB, free: 3.645 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController): time 0.002889/0.1248, allocations: 1.756 MB / 353.7 MB, free: 1.875 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001059/0.1259, allocations: 0.4948 MB / 354.2 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001627/0.1261, allocations: 8 kB / 354.2 MB, free: 1.367 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001253/0.1262, allocations: 11.86 kB / 354.2 MB, free: 1.355 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001116/0.1263, allocations: 19.84 kB / 354.2 MB, free: 1.336 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003422/0.1267, allocations: 47.89 kB / 354.3 MB, free: 1.289 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002256/0.1269, allocations: 119.6 kB / 354.4 MB, free: 1.172 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001701/0.1271, allocations: 49.33 kB / 354.4 MB, free: 1.121 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001111/0.1272, allocations: 47.72 kB / 354.5 MB, free: 1.074 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.655e-05/0.1273, allocations: 39.78 kB / 354.5 MB, free: 1.035 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.283e-05/0.1273, allocations: 4 kB / 354.5 MB, free: 1.031 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 2.427e-05/0.1274, allocations: 8 kB / 354.5 MB, free: 1.023 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 3.069e-05/0.1274, allocations: 23.86 kB / 354.6 MB, free: 1 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.308e-05/0.1275, allocations: 73.38 kB / 354.6 MB, free: 0.9219 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000182/0.1277, allocations: 119.8 kB / 354.7 MB, free: 0.8047 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.407e-06/0.1277, allocations: 4 kB / 354.7 MB, free: 0.8008 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.603e-06/0.1277, allocations: 4 kB / 354.7 MB, free: 0.7969 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.544e-06/0.1277, allocations: 0 / 354.7 MB, free: 0.7969 MB / 286.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.0006511/0.1284, allocations: 411.1 kB / 355.1 MB, free: 356 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.526e-05/0.1284, allocations: 12.02 kB / 355.2 MB, free: 344 kB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.251e-05/0.1285, allocations: 42.75 kB / 355.2 MB, free: 292 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.493e-05/0.1286, allocations: 20.73 kB / 355.2 MB, free: 272 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002513/0.1288, allocations: 216 kB / 355.4 MB, free: 16 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.624e-05/0.1289, allocations: 8.375 kB / 355.4 MB, free: 8 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.482e-05/0.1289, allocations: 12.42 kB / 355.5 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0005292/0.1295, allocations: 234.7 kB / 355.7 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.629e-05/0.1295, allocations: 0 / 355.7 MB, free: 15.74 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.97e-05/0.1295, allocations: 8 kB / 355.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.458e-06/0.1295, allocations: 4 kB / 355.7 MB, free: 15.73 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002838/0.1298, allocations: 99.81 kB / 355.8 MB, free: 15.63 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007464/0.1306, allocations: 0.5959 MB / 356.4 MB, free: 14.96 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003733/0.131, allocations: 159.9 kB / 356.5 MB, free: 14.78 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001642/0.1311, allocations: 74.64 kB / 356.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.496e-05/0.1312, allocations: 0 / 356.6 MB, free: 14.7 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.038e-05/0.1312, allocations: 42.5 kB / 356.7 MB, free: 14.65 MB / 302.1 MB Notification: Performance of pre-optimization done (n=14): time 1.162e-06/0.1312, allocations: 4 kB / 356.7 MB, free: 14.64 MB / 302.1 MB Notification: Performance of matching and sorting (n=14): time 0.0005568/0.1318, allocations: 193.3 kB / 356.9 MB, free: 14.45 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.591e-05/0.1319, allocations: 118.9 kB / 357 MB, free: 14.31 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001188/0.132, allocations: 144.8 kB / 357.1 MB, free: 14.16 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.131e-05/0.132, allocations: 29.7 kB / 357.1 MB, free: 14.12 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.84e-05/0.1321, allocations: 115.9 kB / 357.3 MB, free: 14 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.904e-05/0.1322, allocations: 23.73 kB / 357.3 MB, free: 13.98 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.085e-05/0.1322, allocations: 17.72 kB / 357.3 MB, free: 13.96 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001211/0.1323, allocations: 326.8 kB / 357.6 MB, free: 13.63 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001292/0.1325, allocations: 43.97 kB / 357.7 MB, free: 13.59 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001858/0.1327, allocations: 148.5 kB / 357.8 MB, free: 13.39 MB / 302.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.0005056/0.1332, allocations: 290 kB / 358.1 MB, free: 13.05 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.35e-06/0.1332, allocations: 8 kB / 358.1 MB, free: 13.04 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004084/0.1336, allocations: 213.1 kB / 358.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.866e-05/0.1336, allocations: 8 kB / 358.3 MB, free: 12.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.125e-05/0.1336, allocations: 8.219 kB / 358.3 MB, free: 12.81 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.835e-05/0.1337, allocations: 4 kB / 358.3 MB, free: 12.8 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001632/0.1338, allocations: 43.92 kB / 358.4 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.024e-05/0.1339, allocations: 4 kB / 358.4 MB, free: 12.76 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.00012/0.134, allocations: 28.23 kB / 358.4 MB, free: 12.73 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.613e-05/0.134, allocations: 11.98 kB / 358.4 MB, free: 12.72 MB / 302.1 MB Warning: The initial conditions are over specified. The following 1 initial equations are redundant, so they are removed from the initialization sytem: 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.0001271/0.1341, allocations: 133.7 kB / 358.5 MB, free: 12.58 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001743/0.1343, allocations: 93.52 kB / 358.6 MB, free: 12.48 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.283e-05/0.1344, allocations: 16.72 kB / 358.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.116e-06/0.1344, allocations: 0 / 358.6 MB, free: 12.46 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.147e-06/0.1344, allocations: 8 kB / 358.6 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.278e-06/0.1344, allocations: 0 / 358.6 MB, free: 12.45 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002782/0.1347, allocations: 225.4 kB / 358.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.916e-06/0.1347, allocations: 480 / 358.9 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002089/0.1349, allocations: 43.97 kB / 358.9 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.472e-06/0.1349, allocations: 4 kB / 358.9 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.535e-05/0.135, allocations: 4 kB / 358.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.25e-06/0.135, allocations: 3.938 kB / 358.9 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.036e-06/0.135, allocations: 7.938 kB / 358.9 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005809/0.1356, allocations: 394.1 kB / 359.3 MB, free: 11.72 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.27e-05/0.1356, allocations: 96.95 kB / 359.4 MB, free: 11.61 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.452e-05/0.1357, allocations: 4 kB / 359.4 MB, free: 11.6 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001369/0.1358, allocations: 11.98 kB / 359.4 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.784e-05/0.1359, allocations: 4 kB / 359.4 MB, free: 11.59 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.998e-06/0.1359, allocations: 11.92 kB / 359.4 MB, free: 11.57 MB / 302.1 MB Notification: Performance of sorting global known variables: time 7.16e-05/0.136, allocations: 110 kB / 359.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.136, allocations: 0 / 359.5 MB, free: 11.47 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003233/0.1363, allocations: 24 kB / 359.6 MB, free: 11.45 MB / 302.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.0008783/0.1372, allocations: 0.9456 MB / 360.5 MB, free: 10.47 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003713/0.1376, allocations: 132.5 kB / 360.6 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 4.057e-06/0.1376, allocations: 4 kB / 360.7 MB, free: 10.34 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.000103/0.1377, allocations: 31.92 kB / 360.7 MB, free: 10.31 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005365/0.1382, allocations: 68.31 kB / 360.8 MB, free: 10.24 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002725/0.141, allocations: 2.201 MB / 363 MB, free: 7.852 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000305/0.1413, allocations: 0.7126 MB / 363.7 MB, free: 7.113 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 7.224e-05/0.1414, allocations: 13.06 kB / 363.7 MB, free: 7.098 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.14e-05/0.1415, allocations: 43.42 kB / 363.7 MB, free: 7.059 MB / 302.1 MB Notification: Performance of SimCode: time 3.2e-07/0.1415, allocations: 0 / 363.7 MB, free: 7.059 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01454/0.156, allocations: 2.645 MB / 366.4 MB, free: 4.625 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002043/0.1562, allocations: 248.9 kB / 366.6 MB, free: 4.375 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.131/2.288, allocations: 2.5 kB / 366.6 MB, free: 4.375 MB / 302.1 MB (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 --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) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ClockedWithDiscretizedContinuousController/ClockedWithDiscretizedContinuousController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscretizedContinuousController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches