Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002/0.002, allocations: 120.1 kB / 18.5 MB, free: 4.535 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002489/0.002489, allocations: 222.3 kB / 21.46 MB, free: 1.582 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.819/1.819, allocations: 230.4 MB / 254.7 MB, free: 15.03 MB / 206.1 MB " [Timeout remaining time 178] 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.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample,fileNamePrefix="Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002705/0.002705, allocations: 64.12 kB / 373.7 MB, free: 10.09 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1696/0.1723, allocations: 53.37 MB / 427.1 MB, free: 4.625 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.RealSignals.SubSample): time 0.003818/0.1761, allocations: 1.603 MB / 428.7 MB, free: 3.016 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001416/0.1776, allocations: 0.5415 MB / 429.2 MB, free: 2.469 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001199/0.1777, allocations: 4 kB / 429.2 MB, free: 2.465 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 7.221e-05/0.1778, allocations: 7.875 kB / 429.2 MB, free: 2.457 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002072/0.178, allocations: 15.91 kB / 429.2 MB, free: 2.441 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004886/0.1784, allocations: 58.7 kB / 429.3 MB, free: 2.387 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0001642/0.1786, allocations: 47.78 kB / 429.3 MB, free: 2.34 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001578/0.1788, allocations: 20.19 kB / 429.4 MB, free: 2.32 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001672/0.1789, allocations: 35.84 kB / 429.4 MB, free: 2.285 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 8.193e-05/0.179, allocations: 19.86 kB / 429.4 MB, free: 2.266 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.098e-05/0.179, allocations: 4 kB / 429.4 MB, free: 2.262 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.677e-05/0.1791, allocations: 4 kB / 429.4 MB, free: 2.258 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.457e-05/0.1792, allocations: 15.92 kB / 429.4 MB, free: 2.242 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 6.509e-05/0.1792, allocations: 35.78 kB / 429.5 MB, free: 2.207 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002413/0.1795, allocations: 55.69 kB / 429.5 MB, free: 2.152 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.805e-06/0.1795, allocations: 0 / 429.5 MB, free: 2.152 MB / 350.1 MB Notification: Performance of FrontEnd: time 3.797e-06/0.1795, allocations: 0 / 429.5 MB, free: 2.152 MB / 350.1 MB Notification: Performance of Transformations before backend: time 9.588e-06/0.1795, allocations: 0 / 429.5 MB, free: 2.152 MB / 350.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 8 * Number of variables: 8 Notification: Performance of Generate backend data structure: time 0.0007525/0.1803, allocations: 393.6 kB / 429.9 MB, free: 1.723 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 6.012e-05/0.1803, allocations: 8.031 kB / 429.9 MB, free: 1.715 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.677e-05/0.1803, allocations: 192 / 429.9 MB, free: 1.715 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.715e-05/0.1804, allocations: 38.69 kB / 430 MB, free: 1.668 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000212/0.1806, allocations: 20.81 kB / 430 MB, free: 1.648 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004064/0.181, allocations: 212.7 kB / 430.2 MB, free: 1.402 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.774e-05/0.181, allocations: 11.94 kB / 430.2 MB, free: 1.391 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.337e-05/0.181, allocations: 4 kB / 430.2 MB, free: 1.387 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003198/0.1813, allocations: 113.9 kB / 430.3 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.172e-05/0.1814, allocations: 0 / 430.3 MB, free: 1.254 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.349e-05/0.1814, allocations: 8 kB / 430.3 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.052e-06/0.1814, allocations: 0 / 430.3 MB, free: 1.246 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 8.942e-05/0.1815, allocations: 19.92 kB / 430.3 MB, free: 1.227 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0004152/0.1819, allocations: 274.6 kB / 430.6 MB, free: 0.9023 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001465/0.182, allocations: 67.78 kB / 430.7 MB, free: 0.8086 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001264/0.1822, allocations: 34.62 kB / 430.7 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.937e-05/0.1822, allocations: 0 / 430.7 MB, free: 0.7656 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 4.756e-05/0.1822, allocations: 42.5 kB / 430.7 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of pre-optimization done (n=4): time 1.001e-06/0.1822, allocations: 0 / 430.7 MB, free: 0.7148 MB / 350.1 MB Notification: Performance of matching and sorting (n=4): time 0.0003216/0.1826, allocations: 85.52 kB / 430.8 MB, free: 0.625 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.98e-05/0.1826, allocations: 106.8 kB / 430.9 MB, free: 0.4961 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0001708/0.1828, allocations: 153.1 kB / 431.1 MB, free: 348 kB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.164e-05/0.1828, allocations: 30.02 kB / 431.1 MB, free: 312 kB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.482e-05/0.1829, allocations: 88.14 kB / 431.2 MB, free: 220 kB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.706e-05/0.1829, allocations: 7.984 kB / 431.2 MB, free: 212 kB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 4.394e-05/0.183, allocations: 21.67 kB / 431.2 MB, free: 184 kB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001824/0.1832, allocations: 314.8 kB / 431.5 MB, free: 15.86 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 4.938e-05/0.1832, allocations: 11.98 kB / 431.6 MB, free: 15.85 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 5.579e-05/0.1833, allocations: 31.42 kB / 431.6 MB, free: 15.81 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001/0.1834, allocations: 51.36 kB / 431.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.144e-06/0.1834, allocations: 0 / 431.6 MB, free: 15.75 MB / 366.1 MB Notification: Performance of matching and sorting (n=4) (initialization): time 0.0001404/0.1835, allocations: 69.72 kB / 431.7 MB, free: 15.67 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.773e-05/0.1835, allocations: 4 kB / 431.7 MB, free: 15.67 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.036e-05/0.1835, allocations: 8.078 kB / 431.7 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.195e-05/0.1836, allocations: 3.984 kB / 431.7 MB, free: 15.66 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.932e-05/0.1837, allocations: 8 kB / 431.7 MB, free: 15.65 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.753e-05/0.1837, allocations: 11.81 kB / 431.7 MB, free: 15.64 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 4.204e-05/0.1837, allocations: 4 kB / 431.7 MB, free: 15.63 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.282e-05/0.1837, allocations: 3.984 kB / 431.7 MB, free: 15.63 MB / 366.1 MB Notification: Model statistics after passing the back-end for initialization: * 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 initialization (4): * Single equations (assignments): 4 * 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.0001186/0.1838, allocations: 121.8 kB / 431.9 MB, free: 15.5 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 8.262e-05/0.1839, allocations: 57.62 kB / 431.9 MB, free: 15.44 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 4.48e-05/0.184, allocations: 15.81 kB / 431.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.184, allocations: 0 / 431.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.738e-06/0.184, allocations: 7.938 kB / 431.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.106e-06/0.184, allocations: 0 / 431.9 MB, free: 15.41 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002102/0.1842, allocations: 177.6 kB / 432.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.262e-06/0.1842, allocations: 0 / 432.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.249e-05/0.1843, allocations: 8 kB / 432.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.013e-06/0.1843, allocations: 0 / 432.1 MB, free: 15.18 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.108e-05/0.1843, allocations: 4 kB / 432.1 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.383e-06/0.1843, allocations: 4.062 kB / 432.1 MB, free: 15.17 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.166e-06/0.1843, allocations: 7.938 kB / 432.1 MB, free: 15.16 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002226/0.1845, allocations: 177.1 kB / 432.3 MB, free: 14.96 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001035/0.1846, allocations: 97.03 kB / 432.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 2.223e-05/0.1846, allocations: 4 kB / 432.4 MB, free: 14.85 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 6.636e-05/0.1847, allocations: 4 kB / 432.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.944e-05/0.1847, allocations: 3.938 kB / 432.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.937e-06/0.1847, allocations: 4 kB / 432.4 MB, free: 14.84 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0001015/0.1848, allocations: 111.2 kB / 432.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of sort global known variables: time 6.1e-08/0.1848, allocations: 0 / 432.5 MB, free: 14.73 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.0002311/0.1851, allocations: 4 kB / 432.5 MB, free: 14.72 MB / 366.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 (4): * Single equations (assignments): 4 * 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.0006327/0.1857, allocations: 0.7063 MB / 433.2 MB, free: 13.98 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002187/0.1859, allocations: 39.91 kB / 433.3 MB, free: 13.95 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 2.274e-06/0.1859, allocations: 3.938 kB / 433.3 MB, free: 13.94 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 4.115e-05/0.186, allocations: 8.25 kB / 433.3 MB, free: 13.93 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004266/0.1864, allocations: 24.02 kB / 433.3 MB, free: 13.91 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001673/0.1881, allocations: 1.401 MB / 434.7 MB, free: 12.4 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003292/0.1884, allocations: 0.6924 MB / 435.4 MB, free: 11.68 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 4.401e-05/0.1884, allocations: 8 kB / 435.4 MB, free: 11.68 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.52e-05/0.1885, allocations: 19.42 kB / 435.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of SimCode: time 2.7e-07/0.1885, allocations: 0 / 435.4 MB, free: 11.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02054/0.209, allocations: 1.747 MB / 437.2 MB, free: 10.03 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.202/8.411, allocations: 14.22 kB / 437.2 MB, free: 10.02 MB / 366.1 MB " [Timeout remaining time 651] (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat --tempDir=temp_Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample_fmu --startTime=0 --stopTime=0.2 --stepSize=3.99122e-05 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Clocked_Examples_Elementary_RealSignals_SubSample.fmu > Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.pipe 2>&1) [Timeout 52.5] diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Clocked/Examples/Elementary/RealSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.RealSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] "" Variables in the reference:time,sample1.y,subSample1.y Variables in the result:periodicClock.factor,periodicClock.resolution,periodicClock.useSolver,sample1.u,sample1.y,sine.amplitude,sine.continuous,sine.f,sine.offset,sine.phase,sine.startTime,sine.y,subSample1.factor,subSample1.inferFactor,subSample1.u,subSample1.y,time [Calling sys.exit(0), Time elapsed: 11.808479510014877]