Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.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.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1") translateModel(Modelica.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.0008712/0.0008713, allocations: 93.08 kB / 17.31 MB, free: 5.664 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.0009381/0.0009381, allocations: 176.8 kB / 18.21 MB, free: 5.242 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.231/1.231, allocations: 223.3 MB / 242.3 MB, free: 14.45 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002255/0.0002256, allocations: 8 kB / 302.1 MB, free: 5.895 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07106/0.0713, allocations: 50.41 MB / 352.5 MB, free: 3.469 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.001917/0.07323, allocations: 1.696 MB / 354.2 MB, free: 1.75 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001604/0.07485, allocations: 1.091 MB / 355.3 MB, free: 0.6562 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.683e-05/0.07496, allocations: 3.938 kB / 355.3 MB, free: 0.6523 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006734/0.07564, allocations: 286.8 kB / 355.6 MB, free: 384 kB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003613/0.07601, allocations: 195.4 kB / 355.7 MB, free: 188 kB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006088/0.07663, allocations: 263.1 kB / 356 MB, free: 15.93 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003288/0.07697, allocations: 339 kB / 356.3 MB, free: 15.6 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001225/0.0771, allocations: 52.33 kB / 356.4 MB, free: 15.54 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001526/0.07726, allocations: 123.4 kB / 356.5 MB, free: 15.42 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001565/0.07742, allocations: 135.4 kB / 356.6 MB, free: 15.29 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.498e-05/0.07746, allocations: 11.94 kB / 356.7 MB, free: 15.28 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000129/0.07759, allocations: 55.97 kB / 356.7 MB, free: 15.22 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.135e-05/0.07769, allocations: 79.67 kB / 356.8 MB, free: 15.14 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001106/0.07781, allocations: 136.9 kB / 356.9 MB, free: 15 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002656/0.07808, allocations: 259.7 kB / 357.2 MB, free: 14.75 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.783e-06/0.07809, allocations: 0 / 357.2 MB, free: 14.75 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.31e-07/0.07809, allocations: 0 / 357.2 MB, free: 14.75 MB / 302.1 MB Notification: Performance of Transformations before backend: time 3.667e-06/0.0781, allocations: 0 / 357.2 MB, free: 14.75 MB / 302.1 MB Notification: Model statistics after passing the front-end and creating the data structures used by the back-end: * Number of equations: 24 * Number of variables: 24 Notification: Performance of Generate backend data structure: time 0.0007317/0.07884, allocations: 0.6194 MB / 357.8 MB, free: 14.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.946e-05/0.07888, allocations: 8.031 kB / 357.8 MB, free: 14.06 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.503e-05/0.07895, allocations: 36.55 kB / 357.8 MB, free: 14.03 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003507/0.0793, allocations: 328 kB / 358.2 MB, free: 13.67 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.017e-05/0.07933, allocations: 11.94 kB / 358.2 MB, free: 13.66 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.052e-05/0.07936, allocations: 8 kB / 358.2 MB, free: 13.65 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002646/0.07963, allocations: 154.8 kB / 358.3 MB, free: 13.49 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.813e-06/0.07965, allocations: 4 kB / 358.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.716e-05/0.07967, allocations: 4 kB / 358.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.451e-06/0.07968, allocations: 4 kB / 358.3 MB, free: 13.48 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001569/0.07984, allocations: 67.95 kB / 358.4 MB, free: 13.41 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.000602/0.08045, allocations: 0.4886 MB / 358.9 MB, free: 12.87 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002945/0.08076, allocations: 134.6 kB / 359 MB, free: 12.73 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001065/0.08087, allocations: 51.59 kB / 359.1 MB, free: 12.68 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.131e-05/0.08091, allocations: 11.98 kB / 359.1 MB, free: 12.67 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002046/0.08112, allocations: 111.2 kB / 359.2 MB, free: 12.55 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.643e-06/0.08113, allocations: 0 / 359.2 MB, free: 12.55 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004439/0.08158, allocations: 213.2 kB / 359.4 MB, free: 12.33 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.767e-05/0.08163, allocations: 106.8 kB / 359.5 MB, free: 12.2 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004324/0.08207, allocations: 432.4 kB / 359.9 MB, free: 11.77 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.118e-05/0.0821, allocations: 33.7 kB / 360 MB, free: 11.73 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001031/0.08221, allocations: 160 kB / 360.1 MB, free: 11.57 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.827e-05/0.08226, allocations: 43.45 kB / 360.2 MB, free: 11.53 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.549e-05/0.0823, allocations: 25.7 kB / 360.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001039/0.08241, allocations: 342.8 kB / 360.5 MB, free: 11.15 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001053/0.08252, allocations: 43.97 kB / 360.6 MB, free: 11.11 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001371/0.08266, allocations: 108.4 kB / 360.7 MB, free: 10.98 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001967/0.08287, allocations: 109.4 kB / 360.8 MB, free: 10.87 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.844e-06/0.08288, allocations: 0 / 360.8 MB, free: 10.87 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003004/0.08318, allocations: 177.2 kB / 360.9 MB, free: 10.69 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.126e-05/0.08321, allocations: 8.062 kB / 361 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 3.857e-06/0.08322, allocations: 4 kB / 361 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 9.437e-06/0.08323, allocations: 3.938 kB / 361 MB, free: 10.68 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001091/0.08335, allocations: 31.92 kB / 361 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.863e-06/0.08336, allocations: 3.984 kB / 361 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001004/0.08347, allocations: 15.84 kB / 361 MB, free: 10.62 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.41e-05/0.08349, allocations: 8 kB / 361 MB, free: 10.62 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.table1.combiTimeTable.nextTimeEvent,$whenCondition2,$PRE.table2.combiTimeTable.nextTimeEvent,$whenCondition1,Pre1.y,Pre1.u,$PRE.Pre1.u,And1.y,Not1.y,table1.combiTimeTable.nextTimeEventScaled,$PRE.table1.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEvent,table1.y,table2.combiTimeTable.nextTimeEventScaled,$PRE.table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (20): * Single equations (assignments): 20 * 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.0001405/0.08364, allocations: 171.6 kB / 361.2 MB, free: 10.44 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.828e-05/0.08368, allocations: 31.56 kB / 361.2 MB, free: 10.41 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.316e-05/0.08375, allocations: 38.94 kB / 361.3 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.994e-06/0.08376, allocations: 0 / 361.3 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.64e-06/0.08377, allocations: 0 / 361.3 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.526e-06/0.08378, allocations: 3.938 kB / 361.3 MB, free: 10.37 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002375/0.08402, allocations: 297.4 kB / 361.6 MB, free: 10.03 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.428e-06/0.08403, allocations: 7.938 kB / 361.6 MB, free: 10.02 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.934e-05/0.08408, allocations: 11.98 kB / 361.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.396e-06/0.08409, allocations: 0 / 361.6 MB, free: 10.01 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.174e-05/0.0841, allocations: 7.938 kB / 361.6 MB, free: 10 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.423e-06/0.08411, allocations: 4 kB / 361.6 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.21e-07/0.08412, allocations: 0 / 361.6 MB, free: 9.996 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003114/0.08443, allocations: 199.8 kB / 361.8 MB, free: 9.785 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.194e-05/0.08451, allocations: 116.6 kB / 361.9 MB, free: 9.652 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.1e-05/0.08456, allocations: 8 kB / 361.9 MB, free: 9.645 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.741e-05/0.08465, allocations: 11.92 kB / 361.9 MB, free: 9.633 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.682e-05/0.08471, allocations: 19.98 kB / 361.9 MB, free: 9.613 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.501e-05/0.08473, allocations: 4 kB / 361.9 MB, free: 9.609 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003065/0.08504, allocations: 315 kB / 362.2 MB, free: 9.305 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.08505, allocations: 0 / 362.2 MB, free: 9.305 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.000273/0.08533, allocations: 56 kB / 362.3 MB, free: 9.25 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 11 ($whenCondition2,$whenCondition1,table2.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.y,table1.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEventScaled,Not1.y,And1.y,Pre1.u,Pre1.y) * Number of discrete states: 5 (Pre1.u,table1.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEventScaled,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (15): * Single equations (assignments): 11 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 4 * 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.0008881/0.08623, allocations: 423.7 kB / 362.7 MB, free: 8.988 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002716/0.08651, allocations: 123.8 kB / 362.8 MB, free: 8.867 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.124e-06/0.08652, allocations: 0 / 362.8 MB, free: 8.867 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001222/0.08665, allocations: 62.88 kB / 362.9 MB, free: 8.809 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004071/0.08707, allocations: 73.25 kB / 363 MB, free: 8.734 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007218/0.0878, allocations: 0.5872 MB / 363.6 MB, free: 8.113 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002769/0.08809, allocations: 0.7755 MB / 364.3 MB, free: 7.312 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.588e-05/0.08816, allocations: 31.42 kB / 364.4 MB, free: 7.281 MB / 302.1 MB Notification: Performance of SimCode: time 3.1e-07/0.08817, allocations: 0 / 364.4 MB, free: 7.281 MB / 302.1 MB Notification: Performance of Templates: time 0.005932/0.0941, allocations: 4.115 MB / 368.5 MB, free: 3.188 MB / 302.1 MB make -j1 -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.0.0_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches