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) 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.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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.00183/0.00183, allocations: 105.8 kB / 16.92 MB, free: 6.145 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.002159/0.00216, allocations: 187.4 kB / 17.85 MB, free: 5.285 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.64/1.64, allocations: 222.9 MB / 241.5 MB, free: 15.23 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001702/0.001703, allocations: 51.02 kB / 300.7 MB, free: 5.777 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1712/0.1729, allocations: 49.45 MB / 350.2 MB, free: 4.328 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController): time 0.005634/0.1787, allocations: 1.997 MB / 352.2 MB, free: 2.309 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001331/0.18, allocations: 0.5258 MB / 352.7 MB, free: 1.777 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001697/0.1802, allocations: 4 kB / 352.7 MB, free: 1.773 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001446/0.1804, allocations: 15.8 kB / 352.7 MB, free: 1.758 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002391/0.1807, allocations: 31.72 kB / 352.7 MB, free: 1.727 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003364/0.181, allocations: 61.8 kB / 352.8 MB, free: 1.668 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002743/0.1813, allocations: 127.6 kB / 352.9 MB, free: 1.543 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001922/0.1815, allocations: 49.3 kB / 353 MB, free: 1.496 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001212/0.1817, allocations: 47.78 kB / 353 MB, free: 1.449 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001263/0.1818, allocations: 55.77 kB / 353.1 MB, free: 1.395 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.85e-05/0.1818, allocations: 12 kB / 353.1 MB, free: 1.383 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.018e-05/0.1819, allocations: 12 kB / 353.1 MB, free: 1.371 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 4.32e-05/0.1819, allocations: 23.92 kB / 353.1 MB, free: 1.348 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001087/0.182, allocations: 71.64 kB / 353.2 MB, free: 1.277 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002445/0.1823, allocations: 123.8 kB / 353.3 MB, free: 1.156 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.025e-05/0.1823, allocations: 0 / 353.3 MB, free: 1.156 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.174e-06/0.1823, allocations: 3.938 kB / 353.3 MB, free: 1.152 MB / 286.1 MB Notification: Performance of Transformations before backend: time 1.485e-05/0.1823, allocations: 0 / 353.3 MB, free: 1.152 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: 31 * Number of variables: 31 Notification: Performance of Generate backend data structure: time 0.0009269/0.1833, allocations: 423 kB / 353.7 MB, free: 0.6914 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.902e-05/0.1833, allocations: 20.02 kB / 353.7 MB, free: 0.6719 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.865e-05/0.1834, allocations: 42.75 kB / 353.8 MB, free: 0.6211 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.259e-05/0.1835, allocations: 8.844 kB / 353.8 MB, free: 0.6133 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003037/0.1838, allocations: 216 kB / 354 MB, free: 372 kB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.998e-05/0.1838, allocations: 12.36 kB / 354 MB, free: 360 kB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.537e-05/0.1839, allocations: 12.38 kB / 354 MB, free: 348 kB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006222/0.1845, allocations: 247.2 kB / 354.3 MB, free: 76 kB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.481e-05/0.1845, allocations: 0 / 354.3 MB, free: 76 kB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.248e-05/0.1846, allocations: 15.97 kB / 354.3 MB, free: 60 kB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.592e-06/0.1846, allocations: 0 / 354.3 MB, free: 60 kB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003006/0.1849, allocations: 87.95 kB / 354.4 MB, free: 15.97 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008329/0.1857, allocations: 0.5958 MB / 355 MB, free: 15.3 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003895/0.1861, allocations: 139.9 kB / 355.1 MB, free: 15.14 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001662/0.1863, allocations: 86.56 kB / 355.2 MB, free: 15.05 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.815e-05/0.1863, allocations: 3.938 kB / 355.2 MB, free: 15.04 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.366e-05/0.1864, allocations: 38.56 kB / 355.2 MB, free: 15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.864e-06/0.1864, allocations: 0 / 355.2 MB, free: 15 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005652/0.187, allocations: 185.3 kB / 355.4 MB, free: 14.81 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.232e-05/0.1871, allocations: 110.8 kB / 355.5 MB, free: 14.68 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001251/0.1872, allocations: 142.3 kB / 355.7 MB, free: 14.52 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.145e-05/0.1872, allocations: 25.7 kB / 355.7 MB, free: 14.49 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.696e-05/0.1873, allocations: 111.8 kB / 355.8 MB, free: 14.38 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.107e-05/0.1874, allocations: 27.78 kB / 355.8 MB, free: 14.35 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.699e-05/0.1874, allocations: 37.7 kB / 355.9 MB, free: 14.31 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000152/0.1876, allocations: 330.8 kB / 356.2 MB, free: 13.98 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001168/0.1877, allocations: 31.97 kB / 356.2 MB, free: 13.95 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001796/0.1879, allocations: 133.7 kB / 356.3 MB, free: 13.77 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003328/0.1882, allocations: 193.5 kB / 356.5 MB, free: 13.53 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.07e-06/0.1883, allocations: 3.938 kB / 356.5 MB, free: 13.52 MB / 302.1 MB Notification: Performance of matching and sorting (n=21) (initialization): time 0.0004171/0.1887, allocations: 193.5 kB / 356.7 MB, free: 13.33 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.164e-05/0.1887, allocations: 12.06 kB / 356.7 MB, free: 13.32 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.184e-05/0.1887, allocations: 4 kB / 356.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.318e-05/0.1888, allocations: 4 kB / 356.7 MB, free: 13.31 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001554/0.1889, allocations: 47.91 kB / 356.8 MB, free: 13.26 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.479e-05/0.1889, allocations: 12 kB / 356.8 MB, free: 13.25 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001199/0.1891, allocations: 19.83 kB / 356.8 MB, free: 13.23 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.665e-05/0.1891, allocations: 12 kB / 356.8 MB, free: 13.22 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.0001308/0.1892, allocations: 133.7 kB / 357 MB, free: 13.08 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001621/0.1894, allocations: 89.53 kB / 357 MB, free: 12.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001087/0.1895, allocations: 16.72 kB / 357.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.192e-06/0.1895, allocations: 4.234 kB / 357.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.378e-06/0.1895, allocations: 3.984 kB / 357.1 MB, free: 12.96 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 7.184e-06/0.1896, allocations: 3.984 kB / 357.1 MB, free: 12.95 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003155/0.1899, allocations: 205.9 kB / 357.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.061e-06/0.1899, allocations: 4 kB / 357.3 MB, free: 12.7 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001934/0.1901, allocations: 35.92 kB / 357.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.903e-06/0.1901, allocations: 4 kB / 357.3 MB, free: 12.66 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.624e-05/0.1901, allocations: 7.984 kB / 357.3 MB, free: 12.65 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.839e-06/0.1901, allocations: 7.938 kB / 357.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 4.057e-06/0.1902, allocations: 0 / 357.3 MB, free: 12.64 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006162/0.1908, allocations: 382.6 kB / 357.7 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.334e-05/0.1909, allocations: 89.02 kB / 357.8 MB, free: 12.15 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.163e-05/0.1909, allocations: 15.92 kB / 357.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001412/0.1911, allocations: 4 kB / 357.8 MB, free: 12.13 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.763e-05/0.1911, allocations: 7.984 kB / 357.8 MB, free: 12.12 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.26e-05/0.1911, allocations: 8 kB / 357.8 MB, free: 12.11 MB / 302.1 MB Notification: Performance of sorting global known variables: time 8.746e-05/0.1912, allocations: 95.27 kB / 357.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.1e-07/0.1912, allocations: 0 / 357.9 MB, free: 12.02 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003713/0.1916, allocations: 27.91 kB / 358 MB, free: 11.99 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.001055/0.1927, allocations: 0.9193 MB / 358.9 MB, free: 11.04 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003685/0.1931, allocations: 127.8 kB / 359 MB, free: 10.92 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.906e-06/0.1931, allocations: 4 kB / 359 MB, free: 10.91 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 9.739e-05/0.1932, allocations: 27.92 kB / 359 MB, free: 10.89 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005171/0.1937, allocations: 56.02 kB / 359.1 MB, free: 10.84 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002935/0.1967, allocations: 2.045 MB / 361.1 MB, free: 8.613 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004122/0.1971, allocations: 0.72 MB / 361.8 MB, free: 7.867 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.355e-05/0.1972, allocations: 13.08 kB / 361.9 MB, free: 7.852 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.011e-05/0.1972, allocations: 31.44 kB / 361.9 MB, free: 7.824 MB / 302.1 MB Notification: Performance of SimCode: time 2.31e-07/0.1972, allocations: 4 kB / 361.9 MB, free: 7.82 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03245/0.2297, allocations: 2.735 MB / 364.6 MB, free: 5.211 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.436/9.665, allocations: 16.25 kB / 364.6 MB, free: 5.199 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController_fmu --startTime=0 --stopTime=3 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_SimpleControlledDrive_ClockedWithDiscreteController.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.SimpleControlledDrive.ClockedWithDiscreteController_res.mat","/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) Reference file matches