Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries/ --ompython_omhome=/usr Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.conf.json 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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) Running command: translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") translateModel(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|sum.y",fileNamePrefix="Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009714/0.0009714, allocations: 193.5 kB / 17.05 MB, free: 5.102 MB / 13.93 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.313/1.313, allocations: 226.6 MB / 244.3 MB, free: 8.309 MB / 202.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008914/0.0008916, allocations: 97.16 kB / 296.4 MB, free: 7.008 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 0.0002215/0.0002215, allocations: 8 kB / 356.2 MB, free: 11.21 MB / 298.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2015/0.2017, allocations: 51.29 MB / 407.5 MB, free: 27.84 MB / 298.7 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample): time 0.001664/0.2034, allocations: 1.647 MB / 409.1 MB, free: 26.18 MB / 298.7 MB Notification: Performance of NFInst.instExpressions: time 0.001378/0.2048, allocations: 1.262 MB / 410.4 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.577e-05/0.2049, allocations: 3.938 kB / 410.4 MB, free: 24.91 MB / 298.7 MB Notification: Performance of NFTyping.typeComponents: time 0.0002455/0.2052, allocations: 67.78 kB / 410.5 MB, free: 24.84 MB / 298.7 MB Notification: Performance of NFTyping.typeBindings: time 0.0002234/0.2054, allocations: 104.2 kB / 410.6 MB, free: 24.74 MB / 298.7 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006001/0.206, allocations: 267.1 kB / 410.8 MB, free: 24.49 MB / 298.7 MB Notification: Performance of NFFlatten.flatten: time 0.0001656/0.2062, allocations: 191.4 kB / 411 MB, free: 24.3 MB / 298.7 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001002/0.2063, allocations: 38.23 kB / 411.1 MB, free: 24.27 MB / 298.7 MB Notification: Performance of NFEvalConstants.evaluate: time 8.012e-05/0.2064, allocations: 79.62 kB / 411.1 MB, free: 24.19 MB / 298.7 MB Notification: Performance of NFSimplifyModel.simplify: time 9.92e-05/0.2065, allocations: 90.41 kB / 411.2 MB, free: 24.1 MB / 298.7 MB Notification: Performance of NFPackage.collectConstants: time 2.119e-05/0.2065, allocations: 4 kB / 411.2 MB, free: 24.1 MB / 298.7 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001044/0.2067, allocations: 63.89 kB / 411.3 MB, free: 24.04 MB / 298.7 MB Notification: Performance of NFScalarize.scalarize: time 5.003e-05/0.2067, allocations: 51.83 kB / 411.3 MB, free: 23.98 MB / 298.7 MB Notification: Performance of NFVerifyModel.verify: time 4.014e-05/0.2068, allocations: 57.58 kB / 411.4 MB, free: 23.92 MB / 298.7 MB Notification: Performance of NFConvertDAE.convert: time 0.000177/0.2069, allocations: 216.5 kB / 411.6 MB, free: 23.71 MB / 298.7 MB Notification: Performance of FrontEnd - DAE generated: time 3.848e-06/0.207, allocations: 0 / 411.6 MB, free: 23.71 MB / 298.7 MB Notification: Performance of FrontEnd: time 1.392e-06/0.207, allocations: 0 / 411.6 MB, free: 23.71 MB / 298.7 MB Notification: Performance of Transformations before backend: time 7.985e-06/0.207, allocations: 2.562 kB / 411.6 MB, free: 23.71 MB / 298.7 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.0005701/0.2075, allocations: 0.5389 MB / 412.2 MB, free: 23.12 MB / 298.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.036e-05/0.2076, allocations: 12.03 kB / 412.2 MB, free: 23.11 MB / 298.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.284e-05/0.2076, allocations: 31.56 kB / 412.2 MB, free: 23.07 MB / 298.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002946/0.2079, allocations: 298.4 kB / 412.5 MB, free: 22.74 MB / 298.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.979e-05/0.208, allocations: 8 kB / 412.5 MB, free: 22.73 MB / 298.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.342e-05/0.208, allocations: 19.95 kB / 412.5 MB, free: 22.71 MB / 298.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004519/0.2085, allocations: 324.6 kB / 412.8 MB, free: 22.37 MB / 298.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.766e-06/0.2085, allocations: 0 / 412.8 MB, free: 22.37 MB / 298.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.649e-05/0.2085, allocations: 8 kB / 412.8 MB, free: 22.36 MB / 298.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.41e-06/0.2085, allocations: 4 kB / 412.8 MB, free: 22.36 MB / 298.7 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001439/0.2087, allocations: 67.89 kB / 412.9 MB, free: 22.29 MB / 298.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0003932/0.2091, allocations: 418.3 kB / 413.3 MB, free: 21.83 MB / 298.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002817/0.2094, allocations: 204 kB / 413.5 MB, free: 21.6 MB / 298.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001244/0.2095, allocations: 90.53 kB / 413.6 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preOpt evalFunc (simulation): time 2.372e-05/0.2095, allocations: 8.219 kB / 413.6 MB, free: 21.5 MB / 298.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0001325/0.2097, allocations: 83.31 kB / 413.7 MB, free: 21.4 MB / 298.7 MB Notification: Performance of pre-optimization done (n=22): time 1.603e-06/0.2097, allocations: 0 / 413.7 MB, free: 21.4 MB / 298.7 MB Notification: Performance of matching and sorting (n=22): time 0.0004254/0.2101, allocations: 245.2 kB / 413.9 MB, free: 21.16 MB / 298.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.248e-05/0.2102, allocations: 170.1 kB / 414.1 MB, free: 20.95 MB / 298.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002485/0.2104, allocations: 351 kB / 414.4 MB, free: 20.6 MB / 298.7 MB Notification: Performance of collectPreVariables (initialization): time 1.637e-05/0.2104, allocations: 33.7 kB / 414.5 MB, free: 20.56 MB / 298.7 MB Notification: Performance of collectInitialEqns (initialization): time 5.555e-05/0.2105, allocations: 132.5 kB / 414.6 MB, free: 20.43 MB / 298.7 MB Notification: Performance of collectInitialBindings (initialization): time 2.352e-05/0.2105, allocations: 31.78 kB / 414.6 MB, free: 20.4 MB / 298.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.733e-06/0.2105, allocations: 8 kB / 414.6 MB, free: 20.39 MB / 298.7 MB Notification: Performance of setup shared object (initialization): time 5.12e-05/0.2106, allocations: 346.8 kB / 415 MB, free: 20.04 MB / 298.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 7.866e-05/0.2107, allocations: 36.45 kB / 415 MB, free: 20.01 MB / 298.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001162/0.2108, allocations: 191.4 kB / 415.2 MB, free: 19.76 MB / 298.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000102/0.2109, allocations: 67.92 kB / 415.3 MB, free: 19.69 MB / 298.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.236e-06/0.2109, allocations: 4 kB / 415.3 MB, free: 19.69 MB / 298.7 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0002885/0.2112, allocations: 237.2 kB / 415.5 MB, free: 19.45 MB / 298.7 MB Notification: Performance of prepare postOptimizeDAE: time 1.134e-05/0.2112, allocations: 8 kB / 415.5 MB, free: 19.44 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.971e-06/0.2113, allocations: 4.531 kB / 415.5 MB, free: 19.44 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.271e-05/0.2113, allocations: 8 kB / 415.5 MB, free: 19.43 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001348/0.2114, allocations: 47.86 kB / 415.6 MB, free: 19.38 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.2114, allocations: 7.938 kB / 415.6 MB, free: 19.38 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001049/0.2115, allocations: 27.77 kB / 415.6 MB, free: 19.35 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.307e-05/0.2116, allocations: 12 kB / 415.6 MB, free: 19.34 MB / 298.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 18 * Number of states: 0 () * Number of discrete variables: 26 ($whenCondition1,$PRE.table.combiTimeTable.nextTimeEvent,table.y,table.combiTimeTable.nextTimeEvent,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEventScaled,sum.y,sum.u[2],sum.u[1],upSample2.u_super,upSample2.b_super,$CLKPRE.upSample2.b_super,upSample2.y,upSample1.u_super,upSample1.b_super,$CLKPRE.upSample1.b_super,upSample1.y,upSample2.b,$CLKPRE.upSample2.b,upSample2.dummy,upSample2.u,upSample1.b,$CLKPRE.upSample1.b,upSample1.dummy,upSample1.u,sample1.y) * Number of discrete states: 0 () * Number of clocked states: 4 (upSample2.b_super,upSample1.b_super,upSample2.b,upSample1.b) * Top-level inputs: 0 Notification: Strong component statistics for initialization (28): * Single equations (assignments): 28 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 0 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001122/0.2117, allocations: 172 kB / 415.8 MB, free: 19.16 MB / 298.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.000146/0.2118, allocations: 137.3 kB / 415.9 MB, free: 19.02 MB / 298.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.781e-05/0.2119, allocations: 41.78 kB / 416 MB, free: 18.98 MB / 298.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.715e-06/0.2119, allocations: 0 / 416 MB, free: 18.98 MB / 298.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.12e-06/0.2119, allocations: 4.312 kB / 416 MB, free: 18.97 MB / 298.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.368e-06/0.212, allocations: 0 / 416 MB, free: 18.97 MB / 298.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001504/0.2121, allocations: 273.3 kB / 416.2 MB, free: 18.66 MB / 298.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.254e-06/0.2121, allocations: 4 kB / 416.2 MB, free: 18.65 MB / 298.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 0.0001163/0.2122, allocations: 27.92 kB / 416.3 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.366e-06/0.2122, allocations: 4 kB / 416.3 MB, free: 18.62 MB / 298.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.444e-05/0.2123, allocations: 7.984 kB / 416.3 MB, free: 18.61 MB / 298.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.435e-06/0.2123, allocations: 4 kB / 416.3 MB, free: 18.61 MB / 298.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.012e-06/0.2123, allocations: 0 / 416.3 MB, free: 18.61 MB / 298.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002863/0.2126, allocations: 255.7 kB / 416.5 MB, free: 18.34 MB / 298.7 MB Notification: Performance of postOpt removeConstants (simulation): time 7.947e-05/0.2127, allocations: 124.7 kB / 416.7 MB, free: 18.2 MB / 298.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.508e-05/0.2127, allocations: 11.98 kB / 416.7 MB, free: 18.19 MB / 298.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.367e-05/0.2128, allocations: 8 kB / 416.7 MB, free: 18.18 MB / 298.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 3.716e-05/0.2128, allocations: 7.984 kB / 416.7 MB, free: 18.17 MB / 298.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.825e-05/0.2129, allocations: 12 kB / 416.7 MB, free: 18.16 MB / 298.7 MB Notification: Performance of sorting global known variables: time 0.0001696/0.213, allocations: 253.9 kB / 416.9 MB, free: 17.91 MB / 298.7 MB Notification: Performance of sort global known variables: time 1.1e-07/0.213, allocations: 0 / 416.9 MB, free: 17.91 MB / 298.7 MB Notification: Performance of remove unused functions: time 0.0002649/0.2133, allocations: 51.98 kB / 417 MB, free: 17.86 MB / 298.7 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 20 ($whenCondition1,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,sum.u[1],sum.u[2],sum.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 4 (upSample1.b_super,upSample2.b_super,upSample1.b,upSample2.b) * Top-level inputs: 0 Notification: Strong component statistics for simulation (22): * Single equations (assignments): 20 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 2 * If-equations: 0 * Equation systems (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0007297/0.214, allocations: 436.5 kB / 417.4 MB, free: 17.56 MB / 298.7 MB Notification: Performance of simCode: created initialization part: time 0.0002546/0.2143, allocations: 155.7 kB / 417.6 MB, free: 17.41 MB / 298.7 MB Notification: Performance of simCode: created event and clocks part: time 1.834e-06/0.2143, allocations: 0 / 417.6 MB, free: 17.41 MB / 298.7 MB Notification: Performance of simCode: created simulation system equations: time 6.388e-05/0.2144, allocations: 27.98 kB / 417.6 MB, free: 17.38 MB / 298.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004178/0.2148, allocations: 120.7 kB / 417.7 MB, free: 17.26 MB / 298.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.000555/0.2154, allocations: 0.5392 MB / 418.3 MB, free: 16.68 MB / 298.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001452/0.2155, allocations: 0.7677 MB / 419 MB, free: 15.89 MB / 298.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 5.215e-05/0.2156, allocations: 31.42 kB / 419.1 MB, free: 15.86 MB / 298.7 MB Notification: Performance of SimCode: time 2.3e-07/0.2156, allocations: 0 / 419.1 MB, free: 15.86 MB / 298.7 MB Notification: Performance of Templates: time 0.004166/0.2198, allocations: 3.633 MB / 422.7 MB, free: 12.24 MB / 298.7 MB make -j1 -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.makefile (rm -f Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; mkfifo Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe >> ../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.sim & ./Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample --alarm=480 -emit_protected > Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/IntegerSignals/UpSample/UpSample.csv","../files/Modelica_trunk_cpp_Modelica.Clocked.Examples.Elementary.IntegerSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches