Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.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 4.1.0-beta.om/package.mo", uses=false) Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/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.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_4.1.0-beta.om_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.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001328/0.001328, allocations: 105.8 kB / 18.3 MB, free: 4.887 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001418/0.001419, allocations: 207.8 kB / 19.25 MB, free: 3.941 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0-beta.om/package.mo): time 1.559/1.559, allocations: 227.7 MB / 247.7 MB, free: 10.38 MB / 206.1 MB Warning: Requested package Modelica of version trunk, but this package was already loaded with version 4.1.0. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package Complex of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Warning: Requested package ModelicaServices of version 4.1.0, but this package was already loaded with version trunk. OpenModelica cannot reason about compatibility between the two packages since they are not semantic versions. Notification: Performance of FrontEnd - loaded program: time 0.003211/0.003211, allocations: 65.19 kB / 307.9 MB, free: 0.5312 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.0982/0.1014, allocations: 50.54 MB / 358.4 MB, free: 13.97 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003613/0.1051, allocations: 2.027 MB / 360.4 MB, free: 11.93 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002244/0.1074, allocations: 1.271 MB / 361.7 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001125/0.1075, allocations: 4 kB / 361.7 MB, free: 10.65 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008259/0.1083, allocations: 306.4 kB / 362 MB, free: 10.35 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005504/0.1089, allocations: 251.1 kB / 362.3 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005618/0.1095, allocations: 231.5 kB / 362.5 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004156/0.1099, allocations: 355.2 kB / 362.8 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001558/0.1101, allocations: 72.67 kB / 362.9 MB, free: 9.465 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001935/0.1103, allocations: 143.4 kB / 363.1 MB, free: 9.324 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000191/0.1105, allocations: 155.3 kB / 363.2 MB, free: 9.172 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 4.224e-05/0.1105, allocations: 20 kB / 363.2 MB, free: 9.152 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001834/0.1107, allocations: 79.95 kB / 363.3 MB, free: 9.074 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001149/0.1108, allocations: 87.67 kB / 363.4 MB, free: 8.988 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001494/0.111, allocations: 131.2 kB / 363.5 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004335/0.1114, allocations: 351.1 kB / 363.9 MB, free: 8.516 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.496e-06/0.1114, allocations: 3.938 kB / 363.9 MB, free: 8.512 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.082e-06/0.1115, allocations: 0 / 363.9 MB, free: 8.512 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.326e-06/0.1115, allocations: 0 / 363.9 MB, free: 8.512 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.001052/0.1125, allocations: 0.6766 MB / 364.5 MB, free: 7.773 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.267e-05/0.1126, allocations: 8.031 kB / 364.5 MB, free: 7.766 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.563e-05/0.1127, allocations: 36.47 kB / 364.6 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000445/0.1131, allocations: 334.3 kB / 364.9 MB, free: 7.363 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.621e-05/0.1131, allocations: 12.31 kB / 364.9 MB, free: 7.352 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.153e-05/0.1132, allocations: 20.11 kB / 364.9 MB, free: 7.332 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002937/0.1135, allocations: 147.3 kB / 365.1 MB, free: 7.176 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.917e-06/0.1135, allocations: 0 / 365.1 MB, free: 7.176 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.989e-05/0.1135, allocations: 7.984 kB / 365.1 MB, free: 7.168 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.483e-06/0.1135, allocations: 4 kB / 365.1 MB, free: 7.164 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001707/0.1137, allocations: 67.91 kB / 365.2 MB, free: 7.098 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007469/0.1145, allocations: 0.4925 MB / 365.7 MB, free: 6.555 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003312/0.1148, allocations: 138.1 kB / 365.8 MB, free: 6.414 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001186/0.1149, allocations: 52.84 kB / 365.8 MB, free: 6.359 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.632e-05/0.115, allocations: 7.984 kB / 365.8 MB, free: 6.352 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002304/0.1152, allocations: 111.2 kB / 366 MB, free: 6.23 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.463e-06/0.1152, allocations: 0 / 366 MB, free: 6.23 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005237/0.1158, allocations: 220.4 kB / 366.2 MB, free: 6.012 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.774e-05/0.1158, allocations: 106.8 kB / 366.3 MB, free: 5.883 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005622/0.1164, allocations: 457.7 kB / 366.7 MB, free: 5.426 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.636e-05/0.1165, allocations: 29.7 kB / 366.8 MB, free: 5.391 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001446/0.1166, allocations: 179.8 kB / 366.9 MB, free: 5.211 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.283e-05/0.1167, allocations: 39.55 kB / 367 MB, free: 5.172 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.013e-05/0.1167, allocations: 41.7 kB / 367 MB, free: 5.125 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001664/0.1169, allocations: 342.8 kB / 367.3 MB, free: 4.781 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001149/0.117, allocations: 47.92 kB / 367.4 MB, free: 4.734 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001631/0.1172, allocations: 97.98 kB / 367.5 MB, free: 4.617 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002083/0.1174, allocations: 102.5 kB / 367.6 MB, free: 4.508 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.1174, allocations: 0 / 367.6 MB, free: 4.508 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003458/0.1178, allocations: 181.2 kB / 367.8 MB, free: 4.324 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.757e-05/0.1178, allocations: 11.94 kB / 367.8 MB, free: 4.312 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.769e-06/0.1178, allocations: 3.938 kB / 367.8 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.29e-05/0.1178, allocations: 0 / 367.8 MB, free: 4.309 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001198/0.118, allocations: 31.98 kB / 367.8 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.531e-06/0.118, allocations: 0 / 367.8 MB, free: 4.277 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001014/0.1181, allocations: 15.84 kB / 367.8 MB, free: 4.262 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.075e-05/0.1181, allocations: 8 kB / 367.8 MB, free: 4.254 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.0001928/0.1183, allocations: 175.6 kB / 368 MB, free: 4.07 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.122e-05/0.1184, allocations: 35.5 kB / 368 MB, free: 4.035 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.892e-05/0.1185, allocations: 38.97 kB / 368.1 MB, free: 3.988 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.354e-06/0.1185, allocations: 0 / 368.1 MB, free: 3.988 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.813e-06/0.1185, allocations: 3.984 kB / 368.1 MB, free: 3.984 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.507e-06/0.1185, allocations: 0 / 368.1 MB, free: 3.984 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000309/0.1188, allocations: 309.3 kB / 368.4 MB, free: 3.633 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.302e-06/0.1188, allocations: 0 / 368.4 MB, free: 3.633 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.924e-05/0.1189, allocations: 11.98 kB / 368.4 MB, free: 3.621 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.692e-06/0.1189, allocations: 3.938 kB / 368.4 MB, free: 3.617 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.358e-05/0.1189, allocations: 8 kB / 368.4 MB, free: 3.609 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.513e-06/0.1189, allocations: 0 / 368.4 MB, free: 3.609 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.575e-06/0.1189, allocations: 4 kB / 368.4 MB, free: 3.605 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003673/0.1193, allocations: 207.4 kB / 368.6 MB, free: 3.387 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.039e-05/0.1194, allocations: 100.7 kB / 368.7 MB, free: 3.27 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.733e-05/0.1194, allocations: 11.92 kB / 368.7 MB, free: 3.258 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.474e-05/0.1195, allocations: 8 kB / 368.7 MB, free: 3.25 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.062e-05/0.1196, allocations: 15.98 kB / 368.7 MB, free: 3.234 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.035e-05/0.1196, allocations: 11.98 kB / 368.8 MB, free: 3.223 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000385/0.12, allocations: 331.1 kB / 369.1 MB, free: 2.902 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.2e-07/0.12, allocations: 0 / 369.1 MB, free: 2.902 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003039/0.1203, allocations: 48 kB / 369.1 MB, free: 2.855 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.0015/0.1218, allocations: 429.8 kB / 369.5 MB, free: 2.586 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003286/0.1222, allocations: 123.9 kB / 369.7 MB, free: 2.465 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.1222, allocations: 0 / 369.7 MB, free: 2.465 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001449/0.1223, allocations: 63.91 kB / 369.7 MB, free: 2.402 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004472/0.1228, allocations: 88.61 kB / 369.8 MB, free: 2.32 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009081/0.1237, allocations: 0.541 MB / 370.4 MB, free: 1.75 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004484/0.1242, allocations: 0.7831 MB / 371.1 MB, free: 0.9414 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.046e-05/0.1243, allocations: 27.44 kB / 371.2 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of SimCode: time 3.3e-07/0.1243, allocations: 0 / 371.2 MB, free: 0.9141 MB / 302.1 MB Notification: Performance of Templates: time 0.1493/0.2736, allocations: 4.28 MB / 375.4 MB, free: 18.74 MB / 302.1 MB make -j1 -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Blocks/Examples/LogicalNetwork1/LogicalNetwork1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_4.1.0-beta.om_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches