Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.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.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController",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.001138/0.001138, allocations: 114.2 kB / 16.63 MB, free: 6.816 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.001146/0.001146, allocations: 189.8 kB / 17.55 MB, free: 5.93 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.378/1.378, allocations: 222.9 MB / 241.2 MB, free: 13.74 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001119/0.001119, allocations: 42.48 kB / 300.2 MB, free: 5.898 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1204/0.1216, allocations: 49.44 MB / 349.7 MB, free: 4.457 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController): time 0.005749/0.1274, allocations: 2.079 MB / 351.8 MB, free: 2.363 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001745/0.1292, allocations: 0.561 MB / 352.3 MB, free: 1.797 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002366/0.1295, allocations: 4 kB / 352.3 MB, free: 1.793 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0002027/0.1297, allocations: 11.86 kB / 352.3 MB, free: 1.781 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003195/0.1301, allocations: 23.84 kB / 352.4 MB, free: 1.758 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005324/0.1306, allocations: 63.88 kB / 352.4 MB, free: 1.695 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003721/0.131, allocations: 135.5 kB / 352.5 MB, free: 1.562 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002424/0.1313, allocations: 49.86 kB / 352.6 MB, free: 1.516 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000165/0.1315, allocations: 51.78 kB / 352.6 MB, free: 1.465 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001597/0.1316, allocations: 67.69 kB / 352.7 MB, free: 1.398 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 4.482e-05/0.1317, allocations: 12 kB / 352.7 MB, free: 1.387 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.82e-05/0.1317, allocations: 12 kB / 352.7 MB, free: 1.375 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000107/0.1319, allocations: 27.92 kB / 352.8 MB, free: 1.348 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001224/0.132, allocations: 67.61 kB / 352.8 MB, free: 1.281 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003112/0.1323, allocations: 143.7 kB / 353 MB, free: 1.141 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.053e-05/0.1323, allocations: 0 / 353 MB, free: 1.141 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.154e-06/0.1323, allocations: 3.938 kB / 353 MB, free: 1.137 MB / 286.1 MB Notification: Performance of Transformations before backend: time 7.514e-06/0.1324, allocations: 0 / 353 MB, free: 1.137 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: 32 * Number of variables: 32 Notification: Performance of Generate backend data structure: time 0.0009536/0.1333, allocations: 454.8 kB / 353.4 MB, free: 0.6445 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.551e-05/0.1334, allocations: 8.031 kB / 353.4 MB, free: 0.6367 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.953e-05/0.1335, allocations: 50.73 kB / 353.5 MB, free: 0.5781 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.107e-05/0.1336, allocations: 20.66 kB / 353.5 MB, free: 0.5586 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003445/0.1339, allocations: 219.9 kB / 353.7 MB, free: 312 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.238e-05/0.1339, allocations: 12.36 kB / 353.7 MB, free: 300 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.466e-05/0.134, allocations: 16.38 kB / 353.7 MB, free: 284 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000775/0.1348, allocations: 255.2 kB / 354 MB, free: 4 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.201e-05/0.1348, allocations: 0 / 354 MB, free: 4 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.115e-05/0.1348, allocations: 4 kB / 354 MB, free: 0 / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.564e-06/0.1349, allocations: 7.984 kB / 354 MB, free: 15.99 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003888/0.1353, allocations: 95.81 kB / 354.1 MB, free: 15.9 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001045/0.1364, allocations: 0.5959 MB / 354.7 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0005217/0.1369, allocations: 147.9 kB / 354.8 MB, free: 15.06 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002483/0.1372, allocations: 74.62 kB / 354.9 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.964e-05/0.1372, allocations: 8 kB / 354.9 MB, free: 14.97 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.376e-05/0.1373, allocations: 30.56 kB / 354.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.785e-06/0.1373, allocations: 4 kB / 354.9 MB, free: 14.93 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0007752/0.1381, allocations: 185.3 kB / 355.1 MB, free: 14.74 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.982e-05/0.1382, allocations: 118.9 kB / 355.2 MB, free: 14.6 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002074/0.1384, allocations: 158.2 kB / 355.4 MB, free: 14.43 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.287e-05/0.1384, allocations: 25.7 kB / 355.4 MB, free: 14.4 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000102/0.1385, allocations: 116.3 kB / 355.5 MB, free: 14.29 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.346e-05/0.1386, allocations: 31.64 kB / 355.6 MB, free: 14.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.943e-05/0.1387, allocations: 37.7 kB / 355.6 MB, free: 14.21 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001514/0.1389, allocations: 322.8 kB / 355.9 MB, free: 13.89 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001711/0.139, allocations: 35.98 kB / 356 MB, free: 13.85 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002446/0.1393, allocations: 137.7 kB / 356.1 MB, free: 13.67 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004232/0.1397, allocations: 189.6 kB / 356.3 MB, free: 13.43 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.711e-06/0.1398, allocations: 3.938 kB / 356.3 MB, free: 13.43 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0005731/0.1403, allocations: 205.4 kB / 356.5 MB, free: 13.22 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.615e-05/0.1404, allocations: 8 kB / 356.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.164e-05/0.1404, allocations: 4 kB / 356.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.163e-05/0.1404, allocations: 4 kB / 356.5 MB, free: 13.21 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0002327/0.1407, allocations: 47.84 kB / 356.5 MB, free: 13.16 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.745e-05/0.1407, allocations: 11.94 kB / 356.6 MB, free: 13.15 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001804/0.1409, allocations: 19.84 kB / 356.6 MB, free: 13.13 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.946e-05/0.1409, allocations: 8 kB / 356.6 MB, free: 13.12 MB / 302.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.0001701/0.1411, allocations: 146.3 kB / 356.7 MB, free: 12.97 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000245/0.1414, allocations: 89.47 kB / 356.8 MB, free: 12.88 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001837/0.1416, allocations: 20.7 kB / 356.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.556e-06/0.1416, allocations: 4 kB / 356.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 7.525e-06/0.1416, allocations: 0 / 356.8 MB, free: 12.85 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.976e-05/0.1416, allocations: 4 kB / 356.8 MB, free: 12.84 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004737/0.1421, allocations: 213.5 kB / 357 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.695e-06/0.1421, allocations: 0 / 357 MB, free: 12.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0002666/0.1424, allocations: 39.91 kB / 357.1 MB, free: 12.55 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.678e-06/0.1424, allocations: 4 kB / 357.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.438e-05/0.1424, allocations: 8 kB / 357.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.148e-06/0.1425, allocations: 0 / 357.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.144e-06/0.1425, allocations: 0 / 357.1 MB, free: 12.54 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007333/0.1432, allocations: 389.7 kB / 357.5 MB, free: 12.14 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001075/0.1433, allocations: 97.03 kB / 357.6 MB, free: 12.02 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.868e-05/0.1434, allocations: 15.98 kB / 357.6 MB, free: 12.01 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001765/0.1436, allocations: 4 kB / 357.6 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.009e-05/0.1436, allocations: 7.984 kB / 357.6 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.197e-05/0.1437, allocations: 4 kB / 357.6 MB, free: 11.99 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001187/0.1438, allocations: 124.1 kB / 357.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.8e-07/0.1438, allocations: 0 / 357.7 MB, free: 11.87 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0004508/0.1443, allocations: 35.91 kB / 357.8 MB, free: 11.84 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.001062/0.1453, allocations: 0.9309 MB / 358.7 MB, free: 10.88 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004696/0.1458, allocations: 122.9 kB / 358.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.176e-06/0.1458, allocations: 0 / 358.8 MB, free: 10.76 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001253/0.146, allocations: 36.84 kB / 358.8 MB, free: 10.72 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000686/0.1467, allocations: 66.83 kB / 358.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.003118/0.1498, allocations: 2.151 MB / 361.1 MB, free: 8.312 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003588/0.1502, allocations: 0.7239 MB / 361.8 MB, free: 7.562 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.153e-05/0.1503, allocations: 17.42 kB / 361.8 MB, free: 7.547 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.926e-05/0.1504, allocations: 39.38 kB / 361.8 MB, free: 7.508 MB / 302.1 MB Notification: Performance of SimCode: time 7.01e-07/0.1504, allocations: 0 / 361.8 MB, free: 7.508 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02154/0.1719, allocations: 2.788 MB / 364.6 MB, free: 4.93 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0003001/0.1723, allocations: 242.1 kB / 364.9 MB, free: 4.68 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.01/2.183, allocations: 3.562 kB / 364.9 MB, free: 4.68 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController_fmu --startTime=0 --stopTime=5 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ExactlyClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/SimpleControlledDrive/ExactlyClockedWithDiscreteController/ExactlyClockedWithDiscreteController.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ExactlyClockedWithDiscreteController.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches