Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) Using package Modelica with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo) Using package Complex with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) Running command: "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001509/0.001509, allocations: 114.1 kB / 17.33 MB, free: 6.016 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001759/0.00176, allocations: 213.8 kB / 18.27 MB, free: 5.098 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.496/1.496, allocations: 227.4 MB / 246.4 MB, free: 10.8 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002969/0.002969, allocations: 62.2 kB / 306.6 MB, free: 0.8555 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1713/0.1743, allocations: 50.53 MB / 357.1 MB, free: 14.33 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.BackSample): time 0.00442/0.1788, allocations: 1.679 MB / 358.8 MB, free: 12.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001339/0.1802, allocations: 0.5688 MB / 359.3 MB, free: 12.06 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001383/0.1803, allocations: 7.938 kB / 359.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 7.641e-05/0.1805, allocations: 3.938 kB / 359.3 MB, free: 12.05 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001848/0.1807, allocations: 11.92 kB / 359.4 MB, free: 12.04 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004877/0.1812, allocations: 71.81 kB / 359.4 MB, free: 11.97 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001726/0.1813, allocations: 63.73 kB / 359.5 MB, free: 11.91 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001527/0.1815, allocations: 20.2 kB / 359.5 MB, free: 11.88 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001657/0.1817, allocations: 27.91 kB / 359.5 MB, free: 11.86 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.353e-05/0.1818, allocations: 27.86 kB / 359.6 MB, free: 11.83 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.232e-05/0.1818, allocations: 7.938 kB / 359.6 MB, free: 11.82 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.768e-05/0.1819, allocations: 15.94 kB / 359.6 MB, free: 11.8 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.363e-05/0.1819, allocations: 11.98 kB / 359.6 MB, free: 11.79 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 5.545e-05/0.182, allocations: 35.73 kB / 359.6 MB, free: 11.76 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0001799/0.1822, allocations: 67.72 kB / 359.7 MB, free: 11.69 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.737e-06/0.1822, allocations: 0 / 359.7 MB, free: 11.69 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.124e-06/0.1822, allocations: 4 kB / 359.7 MB, free: 11.69 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.602e-06/0.1822, allocations: 0 / 359.7 MB, free: 11.69 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 10 * Number of variables: 10 Notification: Performance of Generate backend data structure: time 0.0006053/0.1828, allocations: 391.2 kB / 360.1 MB, free: 11.26 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.017e-05/0.1829, allocations: 19.95 kB / 360.1 MB, free: 11.24 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.57e-05/0.183, allocations: 38.75 kB / 360.1 MB, free: 11.19 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001954/0.1832, allocations: 20.83 kB / 360.2 MB, free: 11.17 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002662/0.1834, allocations: 199.4 kB / 360.4 MB, free: 10.94 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.072e-05/0.1835, allocations: 8.312 kB / 360.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.382e-05/0.1835, allocations: 8.312 kB / 360.4 MB, free: 10.93 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003763/0.1839, allocations: 138.9 kB / 360.5 MB, free: 10.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.133e-05/0.1839, allocations: 4 kB / 360.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.196e-05/0.1839, allocations: 0 / 360.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.1839, allocations: 0 / 360.5 MB, free: 10.76 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001012/0.184, allocations: 27.92 kB / 360.5 MB, free: 10.73 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004429/0.1845, allocations: 295.3 kB / 360.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001392/0.1846, allocations: 90.42 kB / 360.9 MB, free: 10.26 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 8.355e-05/0.1847, allocations: 51.48 kB / 361 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.675e-05/0.1848, allocations: 3.984 kB / 361 MB, free: 10.2 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 3.195e-05/0.1848, allocations: 38.48 kB / 361 MB, free: 10.15 MB / 302.1 MB Notification: Performance of pre-optimization done (n=6): time 1.403e-06/0.1848, allocations: 0 / 361 MB, free: 10.15 MB / 302.1 MB Notification: Performance of matching and sorting (n=6): time 0.0003037/0.1851, allocations: 101.5 kB / 361.1 MB, free: 10.04 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.62e-05/0.1852, allocations: 136.5 kB / 361.2 MB, free: 9.879 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001709/0.1854, allocations: 150.2 kB / 361.4 MB, free: 9.723 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 1.826e-05/0.1854, allocations: 25.7 kB / 361.4 MB, free: 9.691 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.403e-05/0.1855, allocations: 96.62 kB / 361.5 MB, free: 9.594 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 1.913e-05/0.1855, allocations: 4 kB / 361.5 MB, free: 9.59 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.678e-05/0.1856, allocations: 21.62 kB / 361.5 MB, free: 9.562 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001563/0.1858, allocations: 326.8 kB / 361.9 MB, free: 9.234 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 5.303e-05/0.1858, allocations: 15.98 kB / 361.9 MB, free: 9.219 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 6.211e-05/0.1859, allocations: 45.14 kB / 361.9 MB, free: 9.156 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001196/0.186, allocations: 65.02 kB / 362 MB, free: 9.074 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.186, allocations: 0 / 362 MB, free: 9.074 MB / 302.1 MB Notification: Performance of matching and sorting (n=6) (initialization): time 0.0001792/0.1862, allocations: 93.44 kB / 362.1 MB, free: 8.977 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.964e-05/0.1862, allocations: 8 kB / 362.1 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.163e-06/0.1863, allocations: 0 / 362.1 MB, free: 8.969 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.1863, allocations: 4 kB / 362.1 MB, free: 8.965 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.18e-05/0.1864, allocations: 12 kB / 362.1 MB, free: 8.953 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.038e-05/0.1864, allocations: 4 kB / 362.1 MB, free: 8.949 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 5.374e-05/0.1865, allocations: 3.984 kB / 362.1 MB, free: 8.945 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.23e-05/0.1865, allocations: 12.12 kB / 362.1 MB, free: 8.934 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 6 * 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 (6): * Single equations (assignments): 6 * 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.0001302/0.1866, allocations: 134.7 kB / 362.2 MB, free: 8.793 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001093/0.1867, allocations: 65.53 kB / 362.3 MB, free: 8.723 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.346e-05/0.1868, allocations: 19.81 kB / 362.3 MB, free: 8.699 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.206e-06/0.1868, allocations: 3.938 kB / 362.3 MB, free: 8.695 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.838e-06/0.1868, allocations: 4 kB / 362.3 MB, free: 8.691 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.739e-06/0.1868, allocations: 0 / 362.3 MB, free: 8.691 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002249/0.1871, allocations: 181.6 kB / 362.5 MB, free: 8.465 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.496e-06/0.1871, allocations: 8.219 kB / 362.5 MB, free: 8.457 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.033e-05/0.1872, allocations: 12 kB / 362.5 MB, free: 8.445 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.478e-06/0.1872, allocations: 0 / 362.5 MB, free: 8.445 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.605e-05/0.1872, allocations: 7.984 kB / 362.5 MB, free: 8.438 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.733e-06/0.1872, allocations: 0 / 362.5 MB, free: 8.438 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.853e-06/0.1872, allocations: 0 / 362.5 MB, free: 8.438 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002928/0.1875, allocations: 201.9 kB / 362.7 MB, free: 8.215 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.744e-05/0.1876, allocations: 96.91 kB / 362.8 MB, free: 8.102 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.439e-05/0.1877, allocations: 4 kB / 362.8 MB, free: 8.098 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.268e-05/0.1877, allocations: 4 kB / 362.8 MB, free: 8.094 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.427e-05/0.1878, allocations: 3.984 kB / 362.8 MB, free: 8.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 7.894e-06/0.1878, allocations: 4 kB / 362.8 MB, free: 8.086 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0001114/0.1879, allocations: 118.3 kB / 363 MB, free: 7.973 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.41e-07/0.188, allocations: 4 kB / 363 MB, free: 7.969 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002692/0.1882, allocations: 8 kB / 363 MB, free: 7.961 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 4 * 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 (6): * Single equations (assignments): 6 * 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.0007369/0.189, allocations: 0.7305 MB / 363.7 MB, free: 7.195 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002234/0.1892, allocations: 47.91 kB / 363.8 MB, free: 7.148 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.116e-06/0.1892, allocations: 4 kB / 363.8 MB, free: 7.145 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 4.48e-05/0.1893, allocations: 11.94 kB / 363.8 MB, free: 7.133 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006411/0.1899, allocations: 39.31 kB / 363.8 MB, free: 7.098 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002145/0.1921, allocations: 1.517 MB / 365.3 MB, free: 5.453 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004364/0.1925, allocations: 0.704 MB / 366 MB, free: 4.723 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 5.142e-05/0.1926, allocations: 4.672 kB / 366 MB, free: 4.719 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.8e-05/0.1927, allocations: 27.42 kB / 366.1 MB, free: 4.691 MB / 302.1 MB Notification: Performance of SimCode: time 3.8e-07/0.1927, allocations: 4 kB / 366.1 MB, free: 4.688 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.04613/0.2388, allocations: 1.915 MB / 368 MB, free: 2.914 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002288/0.2391, allocations: 220.2 kB / 368.2 MB, free: 2.656 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.054/2.293, allocations: 0 / 368.2 MB, free: 2.656 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample_fmu --startTime=0 --stopTime=0.09 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_BackSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/RealSignals/BackSample/BackSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.BackSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches