Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.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: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|sample1.y|subSample1.y",fileNamePrefix="Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001648/0.001648, allocations: 106.3 kB / 17.16 MB, free: 6.324 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.00173/0.001731, allocations: 198.9 kB / 18.08 MB, free: 5.422 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.999/1.999, allocations: 222.9 MB / 241.8 MB, free: 15.31 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002218/0.002218, allocations: 43.55 kB / 300.6 MB, free: 6.289 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1921/0.1944, allocations: 49.45 MB / 350.1 MB, free: 4.836 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample): time 0.006703/0.2012, allocations: 1.937 MB / 352 MB, free: 2.879 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.003426/0.2047, allocations: 1.103 MB / 353.1 MB, free: 1.77 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000259/0.205, allocations: 4 kB / 353.1 MB, free: 1.766 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006124/0.2057, allocations: 63.78 kB / 353.2 MB, free: 1.703 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003894/0.2061, allocations: 79.72 kB / 353.2 MB, free: 1.625 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001266/0.2074, allocations: 230.9 kB / 353.5 MB, free: 1.402 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004008/0.2078, allocations: 151.5 kB / 353.6 MB, free: 1.254 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001896/0.2081, allocations: 37.48 kB / 353.7 MB, free: 1.219 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000167/0.2082, allocations: 63.7 kB / 353.7 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001899/0.2084, allocations: 75.67 kB / 353.8 MB, free: 1.082 MB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.697e-05/0.2085, allocations: 4 kB / 353.8 MB, free: 1.078 MB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002365/0.2087, allocations: 59.91 kB / 353.8 MB, free: 1.02 MB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001416/0.2089, allocations: 47.83 kB / 353.9 MB, free: 0.9727 MB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001345/0.2091, allocations: 71.48 kB / 354 MB, free: 0.9023 MB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003805/0.2094, allocations: 172 kB / 354.1 MB, free: 0.7344 MB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.695e-06/0.2095, allocations: 4 kB / 354.1 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of FrontEnd: time 1.804e-06/0.2095, allocations: 0 / 354.1 MB, free: 0.7305 MB / 286.1 MB Notification: Performance of Transformations before backend: time 6.192e-06/0.2095, allocations: 0 / 354.1 MB, free: 0.7305 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: 14 * Number of variables: 14 Notification: Performance of Generate backend data structure: time 0.001318/0.2108, allocations: 0.5272 MB / 354.7 MB, free: 152 kB / 286.1 MB Notification: Performance of prepare preOptimizeDAE: time 7.485e-05/0.2109, allocations: 8.031 kB / 354.7 MB, free: 144 kB / 286.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001169/0.2111, allocations: 24.66 kB / 354.7 MB, free: 120 kB / 286.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0006862/0.2118, allocations: 283.6 kB / 355 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.312e-05/0.2118, allocations: 8.359 kB / 355 MB, free: 15.8 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.015e-05/0.2119, allocations: 12.12 kB / 355 MB, free: 15.79 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0006458/0.2125, allocations: 163.5 kB / 355.2 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.66e-05/0.2126, allocations: 0 / 355.2 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.075e-05/0.2126, allocations: 0 / 355.2 MB, free: 15.6 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.328e-05/0.2126, allocations: 7.938 kB / 355.2 MB, free: 15.59 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002199/0.2129, allocations: 31.97 kB / 355.2 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001093/0.214, allocations: 390.3 kB / 355.6 MB, free: 15.12 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004522/0.2144, allocations: 115.9 kB / 355.7 MB, free: 14.98 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001633/0.2146, allocations: 42.56 kB / 355.7 MB, free: 14.93 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.268e-05/0.2147, allocations: 8 kB / 355.7 MB, free: 14.92 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000428/0.2151, allocations: 79.31 kB / 355.8 MB, free: 14.83 MB / 302.1 MB Notification: Performance of pre-optimization done (n=9): time 2.655e-06/0.2151, allocations: 0 / 355.8 MB, free: 14.83 MB / 302.1 MB Notification: Performance of matching and sorting (n=9): time 0.0007236/0.2159, allocations: 153.3 kB / 356 MB, free: 14.68 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0002009/0.2161, allocations: 166.4 kB / 356.1 MB, free: 14.48 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006591/0.2168, allocations: 326.7 kB / 356.4 MB, free: 14.14 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.788e-05/0.2168, allocations: 25.7 kB / 356.5 MB, free: 14.11 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001567/0.217, allocations: 128.1 kB / 356.6 MB, free: 13.98 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 6e-05/0.2171, allocations: 23.73 kB / 356.6 MB, free: 13.96 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 8.673e-05/0.2172, allocations: 29.7 kB / 356.6 MB, free: 13.93 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002012/0.2174, allocations: 334.8 kB / 357 MB, free: 13.59 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000114/0.2175, allocations: 27.98 kB / 357 MB, free: 13.56 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001948/0.2177, allocations: 82.84 kB / 357.1 MB, free: 13.46 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002444/0.218, allocations: 88.47 kB / 357.2 MB, free: 13.36 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.786e-06/0.218, allocations: 0 / 357.2 MB, free: 13.36 MB / 302.1 MB Notification: Performance of matching and sorting (n=11) (initialization): time 0.0003866/0.2184, allocations: 125.3 kB / 357.3 MB, free: 13.23 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.429e-05/0.2184, allocations: 4 kB / 357.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.092e-05/0.2185, allocations: 4 kB / 357.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.999e-05/0.2185, allocations: 0 / 357.3 MB, free: 13.22 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000177/0.2187, allocations: 19.98 kB / 357.3 MB, free: 13.2 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.111e-05/0.2187, allocations: 8.062 kB / 357.3 MB, free: 13.19 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001318/0.2188, allocations: 15.88 kB / 357.3 MB, free: 13.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 5.901e-05/0.2189, allocations: 7.984 kB / 357.3 MB, free: 13.17 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 9 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition1,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,subSample1.y,subSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (11): * Single equations (assignments): 11 * 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.0002247/0.2191, allocations: 153.8 kB / 357.5 MB, free: 13.01 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0001514/0.2193, allocations: 69.34 kB / 357.6 MB, free: 12.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.352e-05/0.2194, allocations: 25.7 kB / 357.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.919e-06/0.2194, allocations: 0 / 357.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.823e-06/0.2194, allocations: 64 / 357.6 MB, free: 12.91 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.065e-05/0.2195, allocations: 11.94 kB / 357.6 MB, free: 12.9 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003548/0.2198, allocations: 237.6 kB / 357.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.2198, allocations: 0 / 357.8 MB, free: 12.62 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001009/0.22, allocations: 15.98 kB / 357.9 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.477e-06/0.22, allocations: 0 / 357.9 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.807e-05/0.22, allocations: 4 kB / 357.9 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.725e-06/0.22, allocations: 0 / 357.9 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.833e-06/0.22, allocations: 0 / 357.9 MB, free: 12.6 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000457/0.2205, allocations: 170.4 kB / 358 MB, free: 12.41 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001948/0.2207, allocations: 108.8 kB / 358.1 MB, free: 12.28 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.055e-05/0.2208, allocations: 11.98 kB / 358.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001061/0.2209, allocations: 4.062 kB / 358.1 MB, free: 12.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 9.457e-05/0.221, allocations: 16.02 kB / 358.2 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.878e-05/0.221, allocations: 7.938 kB / 358.2 MB, free: 12.24 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0004298/0.2215, allocations: 237.9 kB / 358.4 MB, free: 12.01 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.065e-06/0.2215, allocations: 4 kB / 358.4 MB, free: 12.01 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000503/0.222, allocations: 40.02 kB / 358.4 MB, free: 11.97 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: 7 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,subSample1.y,sample1.y,subSample1.u) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (9): * Single equations (assignments): 7 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * 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.001885/0.2239, allocations: 427.3 kB / 358.9 MB, free: 11.71 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004147/0.2244, allocations: 75.89 kB / 358.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.587e-06/0.2244, allocations: 0 / 358.9 MB, free: 11.63 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001461/0.2245, allocations: 28.3 kB / 359 MB, free: 11.61 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007251/0.2253, allocations: 72.48 kB / 359 MB, free: 11.54 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00119/0.2265, allocations: 436.8 kB / 359.5 MB, free: 11.06 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0007377/0.2272, allocations: 0.74 MB / 360.2 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001047/0.2274, allocations: 27.42 kB / 360.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of SimCode: time 9.82e-07/0.2274, allocations: 0 / 360.2 MB, free: 10.27 MB / 302.1 MB Notification: Performance of Templates: time 0.01006/0.2374, allocations: 2.857 MB / 363.1 MB, free: 7.422 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/SubSample/SubSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.IntegerSignals.SubSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches