Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.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: translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") translateModel(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002206/0.002206, allocations: 112.4 kB / 18.45 MB, free: 4.645 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.003392/0.003392, allocations: 213.9 kB / 19.4 MB, free: 3.695 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 2.873/2.873, allocations: 227.4 MB / 247.6 MB, free: 10.54 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.002558/0.002558, allocations: 59.91 kB / 359.4 MB, free: 12.95 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.6737/0.6763, allocations: 50.54 MB / 409.9 MB, free: 1.59 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.006923/0.6833, allocations: 2 MB / 411.9 MB, free: 15.58 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.003788/0.6871, allocations: 1.247 MB / 413.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0003099/0.6875, allocations: 4 kB / 413.2 MB, free: 14.32 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001126/0.6887, allocations: 163.4 kB / 413.3 MB, free: 14.16 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008217/0.6896, allocations: 159.4 kB / 413.5 MB, free: 14 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.001313/0.6909, allocations: 214.8 kB / 413.7 MB, free: 13.8 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0006449/0.6916, allocations: 231.4 kB / 413.9 MB, free: 13.57 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002479/0.6918, allocations: 44.3 kB / 414 MB, free: 13.53 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003441/0.6922, allocations: 95.61 kB / 414.1 MB, free: 13.43 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002936/0.6925, allocations: 95.55 kB / 414.2 MB, free: 13.34 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 6.586e-05/0.6926, allocations: 16 kB / 414.2 MB, free: 13.32 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0003167/0.6929, allocations: 63.89 kB / 414.2 MB, free: 13.26 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000172/0.6931, allocations: 59.83 kB / 414.3 MB, free: 13.2 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002027/0.6933, allocations: 87.41 kB / 414.4 MB, free: 13.12 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0007271/0.6941, allocations: 262.8 kB / 414.6 MB, free: 12.86 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 8.827e-06/0.6941, allocations: 0 / 414.6 MB, free: 12.86 MB / 334.1 MB Notification: Performance of FrontEnd: time 2.695e-06/0.6941, allocations: 0 / 414.6 MB, free: 12.86 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.724e-05/0.6942, allocations: 0 / 414.6 MB, free: 12.86 MB / 334.1 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.001737/0.6959, allocations: 0.5599 MB / 415.2 MB, free: 12.25 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 0.0001009/0.696, allocations: 8.031 kB / 415.2 MB, free: 12.24 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001636/0.6962, allocations: 28.66 kB / 415.2 MB, free: 12.21 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0007401/0.697, allocations: 290.7 kB / 415.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.833e-05/0.697, allocations: 8.375 kB / 415.5 MB, free: 11.89 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 5.344e-05/0.6971, allocations: 16.12 kB / 415.5 MB, free: 11.87 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.001028/0.6981, allocations: 297.5 kB / 415.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 2.069e-05/0.6982, allocations: 0 / 415.8 MB, free: 11.56 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.55e-05/0.6982, allocations: 8 kB / 415.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.72e-05/0.6983, allocations: 4 kB / 415.8 MB, free: 11.55 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003238/0.6986, allocations: 63.89 kB / 415.9 MB, free: 11.48 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.001172/0.6998, allocations: 398.2 kB / 416.3 MB, free: 11.04 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000578/0.7004, allocations: 168 kB / 416.5 MB, free: 10.85 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002412/0.7006, allocations: 86.55 kB / 416.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.418e-05/0.7007, allocations: 3.984 kB / 416.5 MB, free: 10.75 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002763/0.701, allocations: 79.33 kB / 416.6 MB, free: 10.66 MB / 334.1 MB Notification: Performance of pre-optimization done (n=22): time 4.899e-06/0.701, allocations: 0 / 416.6 MB, free: 10.66 MB / 334.1 MB Notification: Performance of matching and sorting (n=22): time 0.001073/0.7021, allocations: 233.4 kB / 416.8 MB, free: 10.43 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001972/0.7023, allocations: 144.5 kB / 417 MB, free: 10.25 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005874/0.7029, allocations: 281 kB / 417.3 MB, free: 9.965 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.508e-05/0.703, allocations: 29.7 kB / 417.3 MB, free: 9.93 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001512/0.7031, allocations: 124.6 kB / 417.4 MB, free: 9.801 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 7.203e-05/0.7032, allocations: 27.7 kB / 417.4 MB, free: 9.773 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001572/0.7034, allocations: 53.94 kB / 417.5 MB, free: 9.715 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0002337/0.7036, allocations: 334.8 kB / 417.8 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001608/0.7038, allocations: 44.44 kB / 417.9 MB, free: 9.336 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0003449/0.7042, allocations: 170 kB / 418 MB, free: 9.109 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0005056/0.7047, allocations: 195.2 kB / 418.2 MB, free: 8.863 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 8.176e-06/0.7047, allocations: 8 kB / 418.2 MB, free: 8.855 MB / 334.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.000671/0.7054, allocations: 221 kB / 418.4 MB, free: 8.633 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 3.335e-05/0.7055, allocations: 11.34 kB / 418.5 MB, free: 8.625 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.635e-05/0.7055, allocations: 11.98 kB / 418.5 MB, free: 8.613 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 3.318e-05/0.7056, allocations: 4 kB / 418.5 MB, free: 8.609 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001589/0.7057, allocations: 23.92 kB / 418.5 MB, free: 8.586 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 2.026e-05/0.7058, allocations: 8 kB / 418.5 MB, free: 8.578 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0002322/0.706, allocations: 23.78 kB / 418.5 MB, free: 8.555 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 3.261e-05/0.7061, allocations: 12 kB / 418.5 MB, free: 8.543 MB / 334.1 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 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition1,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,and1.y,and1.u2,and1.u1,upSample2.u_super,$CLKPRE.upSample2.b_super,upSample2.b_super,upSample2.y,upSample1.u_super,$CLKPRE.upSample1.b_super,upSample1.b_super,upSample1.y,$CLKPRE.upSample2.b,upSample2.b,upSample2.dummy,upSample2.u,$CLKPRE.upSample1.b,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 (not torn): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0002835/0.7064, allocations: 171.8 kB / 418.7 MB, free: 8.367 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0003694/0.7067, allocations: 129.3 kB / 418.8 MB, free: 8.234 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001232/0.7069, allocations: 29.7 kB / 418.9 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 7.234e-06/0.7069, allocations: 0 / 418.9 MB, free: 8.203 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 1.289e-05/0.7069, allocations: 4 kB / 418.9 MB, free: 8.199 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.677e-05/0.707, allocations: 7.922 kB / 418.9 MB, free: 8.191 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003915/0.7074, allocations: 249.5 kB / 419.1 MB, free: 7.898 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.71e-06/0.7074, allocations: 0.7812 kB / 419.1 MB, free: 7.898 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 7.179e-05/0.7075, allocations: 11.98 kB / 419.1 MB, free: 7.887 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.242e-05/0.7075, allocations: 4 kB / 419.1 MB, free: 7.883 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.556e-05/0.7075, allocations: 7.938 kB / 419.1 MB, free: 7.875 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 9.168e-06/0.7075, allocations: 7.938 kB / 419.1 MB, free: 7.867 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.524e-06/0.7076, allocations: 7.938 kB / 419.2 MB, free: 7.859 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0006021/0.7082, allocations: 221.8 kB / 419.4 MB, free: 7.621 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0002043/0.7084, allocations: 120.7 kB / 419.5 MB, free: 7.484 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.26e-05/0.7085, allocations: 8 kB / 419.5 MB, free: 7.477 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001436/0.7086, allocations: 11.98 kB / 419.5 MB, free: 7.465 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 8.003e-05/0.7087, allocations: 8 kB / 419.5 MB, free: 7.457 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.389e-05/0.7088, allocations: 4 kB / 419.5 MB, free: 7.453 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004059/0.7092, allocations: 204.5 kB / 419.7 MB, free: 7.254 MB / 334.1 MB Notification: Performance of sort global known variables: time 3.21e-07/0.7092, allocations: 0 / 419.7 MB, free: 7.254 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0006687/0.7099, allocations: 55.83 kB / 419.8 MB, free: 7.199 MB / 334.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: 20 ($whenCondition1,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,upSample1.y,upSample1.b_super,upSample1.u_super,upSample2.y,upSample2.b_super,upSample2.u_super,and1.u1,and1.u2,and1.y,sample1.y,upSample1.u,upSample1.dummy,upSample1.b,upSample2.u,upSample2.dummy,upSample2.b) * Number of discrete states: 2 (table1.combiTimeTable.nextTimeEventScaled,table1.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 (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.001936/0.7119, allocations: 415.9 kB / 420.2 MB, free: 6.922 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0005833/0.7125, allocations: 143.7 kB / 420.3 MB, free: 6.781 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 4.258e-06/0.7125, allocations: 0 / 420.3 MB, free: 6.781 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001271/0.7126, allocations: 27.94 kB / 420.3 MB, free: 6.754 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008741/0.7135, allocations: 112.4 kB / 420.5 MB, free: 6.645 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001253/0.7148, allocations: 424.3 kB / 420.9 MB, free: 6.195 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000497/0.7153, allocations: 0.7597 MB / 421.6 MB, free: 5.406 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001073/0.7154, allocations: 23.7 kB / 421.7 MB, free: 5.383 MB / 334.1 MB Notification: Performance of SimCode: time 4.739e-06/0.7155, allocations: 0 / 421.7 MB, free: 5.383 MB / 334.1 MB Notification: Performance of Templates: time 0.01185/0.7273, allocations: 3.329 MB / 425 MB, free: 2.062 MB / 334.1 MB make -j1 -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.makefile (rm -f Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches