Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.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.Elementary.RealSignals.Sample3,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3,fileNamePrefix="Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3",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.002187/0.002187, allocations: 105.8 kB / 16.92 MB, free: 5.785 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.002371/0.002371, allocations: 191.3 kB / 17.85 MB, free: 5.164 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.621/1.621, allocations: 222.9 MB / 241.6 MB, free: 15.21 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000981/0.000981, allocations: 50.52 kB / 300.7 MB, free: 5.797 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1753/0.1763, allocations: 49.44 MB / 350.2 MB, free: 4.348 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.Sample3): time 0.004729/0.1811, allocations: 1.674 MB / 351.8 MB, free: 2.652 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.00068/0.1818, allocations: 179.3 kB / 352 MB, free: 2.477 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001679/0.182, allocations: 0 / 352 MB, free: 2.477 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 6.916e-05/0.1821, allocations: 7.938 kB / 352 MB, free: 2.469 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002045/0.1823, allocations: 15.86 kB / 352 MB, free: 2.453 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004097/0.1828, allocations: 43.02 kB / 352.1 MB, free: 2.414 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.000157/0.1829, allocations: 47.86 kB / 352.1 MB, free: 2.367 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001742/0.1831, allocations: 27.98 kB / 352.2 MB, free: 2.34 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 6.061e-05/0.1832, allocations: 31.84 kB / 352.2 MB, free: 2.309 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 7.491e-05/0.1833, allocations: 27.86 kB / 352.2 MB, free: 2.281 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.375e-05/0.1833, allocations: 4 kB / 352.2 MB, free: 2.277 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 1.492e-05/0.1833, allocations: 4 kB / 352.2 MB, free: 2.273 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 7.906e-05/0.1834, allocations: 15.92 kB / 352.2 MB, free: 2.258 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 5.881e-05/0.1835, allocations: 39.75 kB / 352.3 MB, free: 2.219 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000184/0.1837, allocations: 67.72 kB / 352.3 MB, free: 2.152 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.204e-06/0.1837, allocations: 0 / 352.3 MB, free: 2.152 MB / 286.1 MB Notification: Performance of FrontEnd: time 2.104e-06/0.1837, allocations: 0 / 352.3 MB, free: 2.152 MB / 286.1 MB Notification: Performance of Transformations before backend: time 8.415e-06/0.1837, allocations: 0 / 352.3 MB, free: 2.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: 15 * Number of variables: 15 Notification: Performance of Generate backend data structure: time 0.0007541/0.1845, allocations: 395.3 kB / 352.7 MB, free: 1.715 MB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.956e-05/0.1845, allocations: 8.031 kB / 352.7 MB, free: 1.707 MB / 286.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.772e-05/0.1846, allocations: 42.73 kB / 352.8 MB, free: 1.656 MB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.812e-05/0.1847, allocations: 12.78 kB / 352.8 MB, free: 1.645 MB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003025/0.185, allocations: 192.1 kB / 353 MB, free: 1.418 MB / 286.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.807e-05/0.185, allocations: 4.375 kB / 353 MB, free: 1.414 MB / 286.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.807e-05/0.185, allocations: 8.375 kB / 353 MB, free: 1.406 MB / 286.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004589/0.1855, allocations: 178.2 kB / 353.2 MB, free: 1.211 MB / 286.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.332e-05/0.1855, allocations: 7.938 kB / 353.2 MB, free: 1.203 MB / 286.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.164e-05/0.1856, allocations: 0 / 353.2 MB, free: 1.203 MB / 286.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.712e-06/0.1856, allocations: 0 / 353.2 MB, free: 1.203 MB / 286.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000138/0.1857, allocations: 35.97 kB / 353.2 MB, free: 1.168 MB / 286.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006271/0.1863, allocations: 377.7 kB / 353.6 MB, free: 0.7422 MB / 286.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003082/0.1867, allocations: 111.8 kB / 353.7 MB, free: 0.6055 MB / 286.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.589e-05/0.1868, allocations: 54.69 kB / 353.7 MB, free: 0.543 MB / 286.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.541e-05/0.1868, allocations: 7.984 kB / 353.7 MB, free: 0.5352 MB / 286.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.162e-05/0.1868, allocations: 34.5 kB / 353.8 MB, free: 0.4922 MB / 286.1 MB Notification: Performance of pre-optimization done (n=10): time 2.535e-06/0.1868, allocations: 4 kB / 353.8 MB, free: 500 kB / 286.1 MB Notification: Performance of matching and sorting (n=10): time 0.0003343/0.1872, allocations: 125.6 kB / 353.9 MB, free: 368 kB / 286.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.648e-05/0.1873, allocations: 106.8 kB / 354 MB, free: 236 kB / 286.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000115/0.1874, allocations: 137 kB / 354.1 MB, free: 92 kB / 286.1 MB Notification: Performance of collectPreVariables (initialization): time 1.471e-05/0.1874, allocations: 29.7 kB / 354.2 MB, free: 56 kB / 286.1 MB Notification: Performance of collectInitialEqns (initialization): time 6.95e-05/0.1875, allocations: 92.12 kB / 354.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.011e-05/0.1875, allocations: 4.156 kB / 354.3 MB, free: 15.96 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.791e-05/0.1876, allocations: 29.72 kB / 354.3 MB, free: 15.92 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001179/0.1877, allocations: 326.7 kB / 354.6 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.294e-05/0.1877, allocations: 15.98 kB / 354.6 MB, free: 15.58 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001154/0.1879, allocations: 67.72 kB / 354.7 MB, free: 15.48 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001333/0.188, allocations: 95.59 kB / 354.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.729e-06/0.188, allocations: 4 kB / 354.8 MB, free: 15.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=10) (initialization): time 0.0002468/0.1883, allocations: 101.4 kB / 354.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.96e-05/0.1883, allocations: 8.281 kB / 354.9 MB, free: 15.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.643e-06/0.1883, allocations: 7.984 kB / 354.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.704e-05/0.1883, allocations: 4 kB / 354.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 6.792e-05/0.1884, allocations: 23.94 kB / 354.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.756e-06/0.1884, allocations: 4 kB / 354.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.112e-05/0.1885, allocations: 7.984 kB / 355 MB, free: 15.2 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 8.747e-06/0.1885, allocations: 4 kB / 355 MB, free: 15.2 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 9 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (10): * Single equations (assignments): 10 * 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.0001804/0.1887, allocations: 129.9 kB / 355.1 MB, free: 15.06 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001341/0.1888, allocations: 77.44 kB / 355.2 MB, free: 14.98 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.439e-05/0.1889, allocations: 24.64 kB / 355.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.49e-06/0.1889, allocations: 4 kB / 355.2 MB, free: 14.95 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.06e-05/0.1889, allocations: 3.984 kB / 355.2 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.458e-06/0.1889, allocations: 3.938 kB / 355.2 MB, free: 14.94 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002886/0.1892, allocations: 181.6 kB / 355.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.142e-06/0.1892, allocations: 4 kB / 355.4 MB, free: 14.71 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.168e-05/0.1893, allocations: 15.98 kB / 355.4 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.39e-06/0.1893, allocations: 4 kB / 355.4 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.12e-05/0.1893, allocations: 0 / 355.4 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.936e-06/0.1893, allocations: 0 / 355.4 MB, free: 14.69 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 6.522e-06/0.1894, allocations: 4 kB / 355.4 MB, free: 14.68 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004858/0.1899, allocations: 312.2 kB / 355.7 MB, free: 14.36 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.927e-05/0.19, allocations: 104.9 kB / 355.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 1.699e-05/0.19, allocations: 0 / 355.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.287e-05/0.1901, allocations: 8 kB / 355.8 MB, free: 14.23 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.446e-05/0.1901, allocations: 4 kB / 355.8 MB, free: 14.22 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 8.445e-06/0.1901, allocations: 4 kB / 355.8 MB, free: 14.22 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001111/0.1903, allocations: 107.2 kB / 355.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.31e-07/0.1903, allocations: 0 / 355.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002997/0.1906, allocations: 11.94 kB / 355.9 MB, free: 14.1 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 0 () * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (10): * Single equations (assignments): 10 * 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.0008006/0.1914, allocations: 0.8537 MB / 356.8 MB, free: 13.21 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002542/0.1917, allocations: 68.33 kB / 356.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.044e-06/0.1917, allocations: 0 / 356.9 MB, free: 13.15 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.468e-05/0.1917, allocations: 15.94 kB / 356.9 MB, free: 13.13 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0005454/0.1923, allocations: 48.08 kB / 356.9 MB, free: 13.09 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002129/0.1944, allocations: 1.589 MB / 358.5 MB, free: 11.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004387/0.1949, allocations: 0.6924 MB / 359.2 MB, free: 10.64 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 4.657e-05/0.1949, allocations: 8.656 kB / 359.2 MB, free: 10.63 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.044e-05/0.195, allocations: 19.44 kB / 359.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.195, allocations: 0 / 359.2 MB, free: 10.61 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1974/0.3925, allocations: 1.836 MB / 361.1 MB, free: 8.855 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 9.794/10.19, allocations: 13.27 kB / 361.1 MB, free: 8.848 MB / 302.1 MB (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3_fmu --startTime=0 --stopTime=0.2 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Clocked_Examples_Elementary_RealSignals_Sample3.fmu > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/Sample3/Sample3.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.RealSignals.Sample3.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches