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.001573/0.001573, allocations: 99.67 kB / 16.5 MB, free: 6.641 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.001547/0.001547, allocations: 195.4 kB / 17.42 MB, free: 6.066 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.369/1.369, allocations: 222.9 MB / 241.1 MB, free: 13.61 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0009615/0.0009615, allocations: 52.08 kB / 299.9 MB, free: 6.07 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09457/0.09554, allocations: 49.45 MB / 349.4 MB, free: 4.621 MB / 286.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003616/0.0992, allocations: 2.055 MB / 351.4 MB, free: 2.539 MB / 286.1 MB Notification: Performance of NFInst.instExpressions: time 0.001915/0.1011, allocations: 1.119 MB / 352.6 MB, free: 1.418 MB / 286.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001185/0.1013, allocations: 0 / 352.6 MB, free: 1.418 MB / 286.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008143/0.1021, allocations: 289.3 kB / 352.8 MB, free: 1.137 MB / 286.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004048/0.1025, allocations: 191.5 kB / 353 MB, free: 0.9492 MB / 286.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006272/0.1032, allocations: 265.2 kB / 353.3 MB, free: 0.6953 MB / 286.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003406/0.1035, allocations: 339.1 kB / 353.6 MB, free: 372 kB / 286.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001408/0.1037, allocations: 56.34 kB / 353.7 MB, free: 312 kB / 286.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001562/0.1038, allocations: 131.4 kB / 353.8 MB, free: 180 kB / 286.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001671/0.104, allocations: 139.4 kB / 353.9 MB, free: 40 kB / 286.1 MB Notification: Performance of NFPackage.collectConstants: time 3.321e-05/0.104, allocations: 8 kB / 353.9 MB, free: 32 kB / 286.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001858/0.1042, allocations: 63.89 kB / 354 MB, free: 15.97 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001097/0.1044, allocations: 79.73 kB / 354.1 MB, free: 15.89 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001397/0.1045, allocations: 123.2 kB / 354.2 MB, free: 15.77 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003841/0.1049, allocations: 339.1 kB / 354.5 MB, free: 15.44 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.088e-06/0.1049, allocations: 0 / 354.5 MB, free: 15.44 MB / 302.1 MB Notification: Performance of FrontEnd: time 7.61e-07/0.1049, allocations: 0 / 354.5 MB, free: 15.44 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.53e-06/0.1049, allocations: 0 / 354.5 MB, free: 15.44 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.0009156/0.1058, allocations: 0.6533 MB / 355.2 MB, free: 14.72 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.686e-05/0.1059, allocations: 12.03 kB / 355.2 MB, free: 14.71 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.787e-05/0.106, allocations: 32.55 kB / 355.2 MB, free: 14.68 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004043/0.1064, allocations: 339.9 kB / 355.6 MB, free: 14.31 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.034e-05/0.1064, allocations: 15.88 kB / 355.6 MB, free: 14.3 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.276e-05/0.1064, allocations: 8 kB / 355.6 MB, free: 14.29 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002949/0.1067, allocations: 152 kB / 355.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.484e-06/0.1068, allocations: 0 / 355.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.713e-05/0.1068, allocations: 4 kB / 355.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.392e-06/0.1068, allocations: 4 kB / 355.7 MB, free: 14.12 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001748/0.107, allocations: 71.89 kB / 355.8 MB, free: 14.05 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006825/0.1077, allocations: 492.3 kB / 356.3 MB, free: 13.52 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003071/0.108, allocations: 126.8 kB / 356.4 MB, free: 13.38 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001096/0.1081, allocations: 48.84 kB / 356.5 MB, free: 13.33 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.903e-05/0.1081, allocations: 15.97 kB / 356.5 MB, free: 13.32 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002154/0.1084, allocations: 115.2 kB / 356.6 MB, free: 13.19 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.513e-06/0.1084, allocations: 0 / 356.6 MB, free: 13.19 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.000484/0.1089, allocations: 213.2 kB / 356.8 MB, free: 12.98 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.685e-05/0.1089, allocations: 106.8 kB / 356.9 MB, free: 12.85 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004757/0.1094, allocations: 432.5 kB / 357.3 MB, free: 12.41 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 3.751e-05/0.1095, allocations: 33.64 kB / 357.4 MB, free: 12.38 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001327/0.1096, allocations: 167.9 kB / 357.5 MB, free: 12.21 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.758e-05/0.1097, allocations: 31.55 kB / 357.6 MB, free: 12.18 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.214e-05/0.1097, allocations: 49.64 kB / 357.6 MB, free: 12.12 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001188/0.1099, allocations: 342.8 kB / 357.9 MB, free: 11.78 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001067/0.11, allocations: 43.98 kB / 358 MB, free: 11.73 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001433/0.1101, allocations: 106 kB / 358.1 MB, free: 11.61 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001974/0.1103, allocations: 105.8 kB / 358.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.545e-06/0.1103, allocations: 4 kB / 358.2 MB, free: 11.5 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003461/0.1107, allocations: 181.2 kB / 358.4 MB, free: 11.31 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.924e-05/0.1107, allocations: 4 kB / 358.4 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.831e-06/0.1107, allocations: 0 / 358.4 MB, free: 11.31 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.631e-05/0.1108, allocations: 4 kB / 358.4 MB, free: 11.3 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.000118/0.1109, allocations: 19.98 kB / 358.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.723e-06/0.1109, allocations: 0 / 358.4 MB, free: 11.29 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001052/0.111, allocations: 23.83 kB / 358.4 MB, free: 11.26 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.16e-05/0.111, allocations: 4 kB / 358.4 MB, free: 11.26 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.000195/0.1112, allocations: 175.5 kB / 358.6 MB, free: 11.08 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.889e-05/0.1113, allocations: 31.56 kB / 358.6 MB, free: 11.05 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.187e-05/0.1114, allocations: 34.94 kB / 358.7 MB, free: 11.01 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.897e-06/0.1114, allocations: 7.984 kB / 358.7 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.1114, allocations: 0 / 358.7 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.515e-06/0.1114, allocations: 0 / 358.7 MB, free: 11 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002603/0.1117, allocations: 301.4 kB / 359 MB, free: 10.66 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.615e-06/0.1117, allocations: 7.875 kB / 359 MB, free: 10.65 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.63e-05/0.1117, allocations: 8 kB / 359 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.673e-06/0.1117, allocations: 0 / 359 MB, free: 10.64 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.591e-05/0.1117, allocations: 12 kB / 359 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.597e-06/0.1117, allocations: 3.938 kB / 359 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.31e-07/0.1117, allocations: 0 / 359 MB, free: 10.63 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003309/0.1121, allocations: 192.8 kB / 359.2 MB, free: 10.42 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.979e-05/0.1122, allocations: 120.6 kB / 359.3 MB, free: 10.29 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.231e-05/0.1122, allocations: 4 kB / 359.3 MB, free: 10.28 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.463e-05/0.1123, allocations: 11.98 kB / 359.3 MB, free: 10.27 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.237e-05/0.1124, allocations: 15.98 kB / 359.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.973e-05/0.1124, allocations: 4 kB / 359.3 MB, free: 10.25 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003118/0.1127, allocations: 323 kB / 359.7 MB, free: 9.938 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.51e-07/0.1127, allocations: 0 / 359.7 MB, free: 9.938 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002796/0.113, allocations: 44 kB / 359.7 MB, free: 9.895 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.0009833/0.114, allocations: 430.1 kB / 360.1 MB, free: 9.629 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003483/0.1144, allocations: 127.8 kB / 360.2 MB, free: 9.504 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.404e-06/0.1144, allocations: 0 / 360.2 MB, free: 9.504 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001312/0.1145, allocations: 59.97 kB / 360.3 MB, free: 9.445 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004334/0.115, allocations: 66.75 kB / 360.4 MB, free: 9.379 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008417/0.1158, allocations: 0.564 MB / 360.9 MB, free: 8.789 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003152/0.1161, allocations: 0.7716 MB / 361.7 MB, free: 7.992 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000119/0.1163, allocations: 38.27 kB / 361.7 MB, free: 7.957 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.006e-05/0.1163, allocations: 27.44 kB / 361.8 MB, free: 7.93 MB / 302.1 MB Notification: Performance of SimCode: time 3.11e-07/0.1164, allocations: 0 / 361.8 MB, free: 7.93 MB / 302.1 MB Notification: Performance of Templates: time 0.007563/0.1239, allocations: 3.638 MB / 365.4 MB, free: 4.328 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins/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