Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.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.BooleanSignals.UpSample,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|upSample1.y|upSample2.y|and1.y",fileNamePrefix="Modelica_4.0.0_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_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.001124/0.001124, allocations: 89.39 kB / 16.32 MB, free: 6.449 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.001156/0.001156, allocations: 180.2 kB / 17.21 MB, free: 6.32 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.56/1.56, allocations: 223.3 MB / 241.2 MB, free: 276 kB / 190.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0004471/0.0004476, allocations: 8 kB / 300.8 MB, free: 6.434 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1894/0.1899, allocations: 50.41 MB / 351.3 MB, free: 4.004 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample): time 0.00393/0.1939, allocations: 1.633 MB / 352.9 MB, free: 2.352 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.002832/0.1968, allocations: 1.037 MB / 353.9 MB, free: 1.309 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001829/0.197, allocations: 7.875 kB / 353.9 MB, free: 1.301 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008448/0.1979, allocations: 147.6 kB / 354.1 MB, free: 1.156 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003774/0.1982, allocations: 87.69 kB / 354.2 MB, free: 1.07 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0009591/0.1992, allocations: 214.8 kB / 354.4 MB, free: 0.8633 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003705/0.1996, allocations: 191.4 kB / 354.6 MB, free: 0.6758 MB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001876/0.1998, allocations: 52.2 kB / 354.6 MB, free: 0.625 MB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001645/0.2, allocations: 71.64 kB / 354.7 MB, free: 0.5547 MB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001733/0.2002, allocations: 79.61 kB / 354.8 MB, free: 488 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.34e-05/0.2002, allocations: 8 kB / 354.8 MB, free: 480 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001763/0.2004, allocations: 43.97 kB / 354.8 MB, free: 436 kB / 286.1 MB Notification: Performance of NFScalarize.scalarize: time 9.505e-05/0.2005, allocations: 43.83 kB / 354.8 MB, free: 392 kB / 286.1 MB Notification: Performance of NFVerifyModel.verify: time 8.526e-05/0.2006, allocations: 57.58 kB / 354.9 MB, free: 328 kB / 286.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000335/0.201, allocations: 179.9 kB / 355.1 MB, free: 148 kB / 286.1 MB Notification: Performance of FrontEnd - DAE generated: time 9.387e-06/0.201, allocations: 4 kB / 355.1 MB, free: 144 kB / 286.1 MB Notification: Performance of FrontEnd: time 2.805e-06/0.201, allocations: 0 / 355.1 MB, free: 144 kB / 286.1 MB Notification: Performance of Transformations before backend: time 6.663e-06/0.201, allocations: 0 / 355.1 MB, free: 144 kB / 286.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.001073/0.2021, allocations: 0.5118 MB / 355.6 MB, free: 15.57 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.176e-05/0.2022, allocations: 12.03 kB / 355.6 MB, free: 15.56 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.218e-05/0.2023, allocations: 27.5 kB / 355.6 MB, free: 15.54 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004771/0.2027, allocations: 261.7 kB / 355.9 MB, free: 15.24 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 3.271e-05/0.2028, allocations: 15.94 kB / 355.9 MB, free: 15.23 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.818e-05/0.2028, allocations: 12 kB / 355.9 MB, free: 15.21 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0007978/0.2037, allocations: 301.7 kB / 356.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.192e-05/0.2037, allocations: 0 / 356.2 MB, free: 14.9 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.534e-05/0.2037, allocations: 7.938 kB / 356.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.895e-06/0.2037, allocations: 4 kB / 356.2 MB, free: 14.89 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002271/0.204, allocations: 59.97 kB / 356.3 MB, free: 14.83 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007475/0.2047, allocations: 390.3 kB / 356.7 MB, free: 14.39 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004656/0.2052, allocations: 172 kB / 356.8 MB, free: 14.2 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002174/0.2054, allocations: 82.55 kB / 356.9 MB, free: 14.11 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 4.911e-05/0.2055, allocations: 11.92 kB / 356.9 MB, free: 14.09 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002198/0.2057, allocations: 75.39 kB / 357 MB, free: 14.01 MB / 302.1 MB Notification: Performance of pre-optimization done (n=22): time 2.575e-06/0.2058, allocations: 0 / 357 MB, free: 14.01 MB / 302.1 MB Notification: Performance of matching and sorting (n=22): time 0.0007426/0.2065, allocations: 229.2 kB / 357.2 MB, free: 13.78 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001231/0.2066, allocations: 140.5 kB / 357.4 MB, free: 13.61 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004107/0.2071, allocations: 268.9 kB / 357.6 MB, free: 13.34 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.449e-05/0.2071, allocations: 37.69 kB / 357.7 MB, free: 13.3 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001303/0.2073, allocations: 116.7 kB / 357.8 MB, free: 13.18 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.147e-05/0.2073, allocations: 27.64 kB / 357.8 MB, free: 13.15 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 1.431e-05/0.2073, allocations: 11.94 kB / 357.8 MB, free: 13.14 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001929/0.2076, allocations: 338.8 kB / 358.1 MB, free: 12.8 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001215/0.2077, allocations: 32.45 kB / 358.2 MB, free: 12.77 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002429/0.2079, allocations: 167 kB / 358.3 MB, free: 12.55 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001854/0.2081, allocations: 67.91 kB / 358.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.747e-06/0.2082, allocations: 0 / 358.4 MB, free: 12.48 MB / 302.1 MB Notification: Performance of matching and sorting (n=28) (initialization): time 0.0005251/0.2087, allocations: 221 kB / 358.6 MB, free: 12.26 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.46e-05/0.2087, allocations: 8 kB / 358.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.107e-05/0.2088, allocations: 4 kB / 358.6 MB, free: 12.25 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.398e-05/0.2088, allocations: 7.984 kB / 358.6 MB, free: 12.24 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.00014/0.2089, allocations: 28.45 kB / 358.7 MB, free: 12.21 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.655e-05/0.209, allocations: 11.94 kB / 358.7 MB, free: 12.2 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001788/0.2092, allocations: 15.98 kB / 358.7 MB, free: 12.18 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.574e-05/0.2092, allocations: 12 kB / 358.7 MB, free: 12.17 MB / 302.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 ($whenCondition1,$PRE.table1.combiTimeTable.nextTimeEvent,table1.y,table1.combiTimeTable.nextTimeEvent,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled,and1.y,and1.u2,and1.u1,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.0002206/0.2094, allocations: 168.2 kB / 358.9 MB, free: 12 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 0.0002808/0.2097, allocations: 129.2 kB / 359 MB, free: 11.87 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001018/0.2098, allocations: 25.72 kB / 359 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 8.596e-06/0.2099, allocations: 4 kB / 359 MB, free: 11.84 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 9.498e-06/0.2099, allocations: 4 kB / 359 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 1.699e-05/0.2099, allocations: 3.984 kB / 359 MB, free: 11.83 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003248/0.2102, allocations: 249.4 kB / 359.3 MB, free: 11.54 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 5.079e-06/0.2103, allocations: 3.953 kB / 359.3 MB, free: 11.53 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.162e-05/0.2103, allocations: 19.92 kB / 359.3 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.038e-06/0.2103, allocations: 320 / 359.3 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.102e-05/0.2104, allocations: 4.469 kB / 359.3 MB, free: 11.51 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.46e-06/0.2104, allocations: 4 kB / 359.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.904e-06/0.2104, allocations: 0 / 359.3 MB, free: 11.5 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005107/0.2109, allocations: 236.1 kB / 359.5 MB, free: 11.25 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0001626/0.2111, allocations: 120.8 kB / 359.7 MB, free: 11.12 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.741e-05/0.2112, allocations: 11.98 kB / 359.7 MB, free: 11.11 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001091/0.2113, allocations: 8 kB / 359.7 MB, free: 11.1 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.696e-05/0.2114, allocations: 4 kB / 359.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.143e-05/0.2114, allocations: 7.984 kB / 359.7 MB, free: 11.09 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002914/0.2117, allocations: 204.5 kB / 359.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.4e-07/0.2117, allocations: 0 / 359.9 MB, free: 10.88 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005645/0.2123, allocations: 44 kB / 359.9 MB, free: 10.84 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: 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 (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.001717/0.214, allocations: 437.3 kB / 360.4 MB, free: 10.57 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0004785/0.2145, allocations: 140.4 kB / 360.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 3.256e-06/0.2145, allocations: 0 / 360.5 MB, free: 10.43 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001014/0.2146, allocations: 31.97 kB / 360.5 MB, free: 10.4 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0007211/0.2154, allocations: 107.1 kB / 360.6 MB, free: 10.3 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009731/0.2164, allocations: 432.8 kB / 361.1 MB, free: 9.84 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005097/0.2169, allocations: 0.7521 MB / 361.8 MB, free: 9.062 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001382/0.217, allocations: 30.17 kB / 361.8 MB, free: 9.035 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.25e-05/0.2171, allocations: 27.42 kB / 361.9 MB, free: 9.008 MB / 302.1 MB Notification: Performance of SimCode: time 6.42e-07/0.2172, allocations: 0 / 361.9 MB, free: 9.008 MB / 302.1 MB Notification: Performance of Templates: time 0.009802/0.227, allocations: 2.722 MB / 364.6 MB, free: 6.309 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.makefile (rm -f Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; mkfifo Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe >> ../files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.sim & ./Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample_res.mat","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Clocked/Examples/Elementary/BooleanSignals/UpSample/UpSample.csv","/var/lib/jenkins/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Clocked.Examples.Elementary.BooleanSignals.UpSample.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches