Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_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 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.Blocks.Examples.LogicalNetwork1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_trunk_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_trunk_Modelica.Blocks.Examples.LogicalNetwork1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0015/0.0015, allocations: 116.9 kB / 18.4 MB, free: 4.621 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001954/0.001954, allocations: 200.6 kB / 19.34 MB, free: 3.68 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.484/1.484, allocations: 227.4 MB / 247.5 MB, free: 10.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001111/0.001111, allocations: 64.3 kB / 308.4 MB, free: 15.9 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1092/0.1103, allocations: 50.53 MB / 358.9 MB, free: 13.34 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003763/0.1141, allocations: 2.029 MB / 360.9 MB, free: 11.3 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002091/0.1163, allocations: 1.274 MB / 362.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001226/0.1164, allocations: 0 / 362.2 MB, free: 10.02 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000846/0.1172, allocations: 302.4 kB / 362.5 MB, free: 9.727 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005425/0.1178, allocations: 259.1 kB / 362.7 MB, free: 9.473 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005497/0.1184, allocations: 234.9 kB / 363 MB, free: 9.246 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004293/0.1188, allocations: 367.1 kB / 363.3 MB, free: 8.887 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001571/0.119, allocations: 64.7 kB / 363.4 MB, free: 8.828 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001813/0.1192, allocations: 143.4 kB / 363.5 MB, free: 8.688 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001927/0.1194, allocations: 155.4 kB / 363.7 MB, free: 8.535 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.569e-05/0.1194, allocations: 16 kB / 363.7 MB, free: 8.52 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001795/0.1196, allocations: 83.95 kB / 363.8 MB, free: 8.438 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001084/0.1197, allocations: 91.67 kB / 363.9 MB, free: 8.348 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001393/0.1199, allocations: 131.2 kB / 364 MB, free: 8.219 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004241/0.1203, allocations: 366.7 kB / 364.4 MB, free: 7.859 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.733e-06/0.1203, allocations: 3.984 kB / 364.4 MB, free: 7.855 MB / 302.1 MB Notification: Performance of FrontEnd: time 2.054e-06/0.1203, allocations: 0 / 364.4 MB, free: 7.855 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.119e-05/0.1203, allocations: 0 / 364.4 MB, free: 7.855 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.001006/0.1213, allocations: 0.6688 MB / 365 MB, free: 7.125 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.607e-05/0.1214, allocations: 8.031 kB / 365 MB, free: 7.117 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.651e-05/0.1215, allocations: 36.47 kB / 365.1 MB, free: 7.082 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004548/0.1219, allocations: 342.3 kB / 365.4 MB, free: 6.707 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.34e-05/0.122, allocations: 8.375 kB / 365.4 MB, free: 6.699 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.221e-05/0.122, allocations: 16.06 kB / 365.4 MB, free: 6.684 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002741/0.1223, allocations: 156 kB / 365.6 MB, free: 6.516 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.684e-06/0.1223, allocations: 0 / 365.6 MB, free: 6.516 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.632e-05/0.1223, allocations: 4 kB / 365.6 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.903e-06/0.1223, allocations: 4 kB / 365.6 MB, free: 6.508 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001739/0.1225, allocations: 67.95 kB / 365.7 MB, free: 6.441 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006603/0.1232, allocations: 0.4886 MB / 366.1 MB, free: 5.902 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002957/0.1235, allocations: 130.8 kB / 366.3 MB, free: 5.766 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001026/0.1236, allocations: 48.78 kB / 366.3 MB, free: 5.715 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.11e-05/0.1236, allocations: 0 / 366.3 MB, free: 5.715 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002182/0.1238, allocations: 115.2 kB / 366.4 MB, free: 5.59 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.593e-06/0.1239, allocations: 4 kB / 366.4 MB, free: 5.586 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004613/0.1243, allocations: 213.1 kB / 366.6 MB, free: 5.371 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.592e-05/0.1244, allocations: 114.8 kB / 366.8 MB, free: 5.234 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004678/0.1249, allocations: 449.7 kB / 367.2 MB, free: 4.785 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.235e-05/0.1249, allocations: 29.7 kB / 367.2 MB, free: 4.75 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001249/0.125, allocations: 187.8 kB / 367.4 MB, free: 4.562 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.705e-05/0.1251, allocations: 35.48 kB / 367.4 MB, free: 4.527 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.631e-05/0.1251, allocations: 49.7 kB / 367.5 MB, free: 4.473 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001321/0.1253, allocations: 342.8 kB / 367.8 MB, free: 4.129 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001053/0.1254, allocations: 43.97 kB / 367.9 MB, free: 4.086 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001516/0.1256, allocations: 100.4 kB / 368 MB, free: 3.969 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002047/0.1258, allocations: 113.2 kB / 368.1 MB, free: 3.852 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.194e-06/0.1258, allocations: 0 / 368.1 MB, free: 3.852 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003025/0.1261, allocations: 169.2 kB / 368.2 MB, free: 3.68 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.571e-05/0.1261, allocations: 7.938 kB / 368.3 MB, free: 3.672 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 8.186e-06/0.1261, allocations: 7.984 kB / 368.3 MB, free: 3.664 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.256e-05/0.1261, allocations: 0 / 368.3 MB, free: 3.664 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001117/0.1263, allocations: 20 kB / 368.3 MB, free: 3.645 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.737e-06/0.1263, allocations: 12.05 kB / 368.3 MB, free: 3.633 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.988e-05/0.1264, allocations: 23.78 kB / 368.3 MB, free: 3.609 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.28e-05/0.1264, allocations: 4 kB / 368.3 MB, free: 3.605 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.0001776/0.1266, allocations: 171.5 kB / 368.5 MB, free: 3.426 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.645e-05/0.1267, allocations: 35.56 kB / 368.5 MB, free: 3.391 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.784e-05/0.1267, allocations: 34.97 kB / 368.6 MB, free: 3.348 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.238e-06/0.1268, allocations: 4 kB / 368.6 MB, free: 3.344 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.29e-06/0.1268, allocations: 0 / 368.6 MB, free: 3.344 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.717e-06/0.1268, allocations: 4 kB / 368.6 MB, free: 3.34 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003721/0.1272, allocations: 309.3 kB / 368.9 MB, free: 2.988 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.206e-06/0.1272, allocations: 4 kB / 368.9 MB, free: 2.984 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.782e-05/0.1272, allocations: 11.88 kB / 368.9 MB, free: 2.973 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.098e-06/0.1272, allocations: 3.938 kB / 368.9 MB, free: 2.969 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.815e-05/0.1272, allocations: 11.98 kB / 368.9 MB, free: 2.957 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.442e-06/0.1272, allocations: 0 / 368.9 MB, free: 2.957 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 7.62e-07/0.1273, allocations: 0 / 368.9 MB, free: 2.957 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003448/0.1276, allocations: 200.6 kB / 369.1 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.394e-05/0.1277, allocations: 104.7 kB / 369.2 MB, free: 2.621 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.508e-05/0.1277, allocations: 11.94 kB / 369.2 MB, free: 2.609 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.18e-05/0.1278, allocations: 7.984 kB / 369.2 MB, free: 2.602 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.922e-05/0.1279, allocations: 15.98 kB / 369.2 MB, free: 2.586 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.912e-05/0.1279, allocations: 4 kB / 369.2 MB, free: 2.582 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003537/0.1283, allocations: 331.1 kB / 369.6 MB, free: 2.262 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.924e-06/0.1283, allocations: 0 / 369.6 MB, free: 2.262 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002872/0.1286, allocations: 59.92 kB / 369.6 MB, free: 2.203 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.001001/0.1296, allocations: 428.6 kB / 370 MB, free: 1.922 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003185/0.1299, allocations: 115.9 kB / 370.1 MB, free: 1.809 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.154e-06/0.1299, allocations: 0 / 370.1 MB, free: 1.809 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001309/0.1301, allocations: 63.91 kB / 370.2 MB, free: 1.746 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.00043/0.1305, allocations: 84.09 kB / 370.3 MB, free: 1.672 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008415/0.1314, allocations: 0.5002 MB / 370.8 MB, free: 1.148 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003841/0.1318, allocations: 0.7792 MB / 371.6 MB, free: 352 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001069/0.1319, allocations: 42.27 kB / 371.6 MB, free: 308 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.498e-05/0.132, allocations: 31.42 kB / 371.6 MB, free: 276 kB / 302.1 MB Notification: Performance of SimCode: time 2.4e-07/0.132, allocations: 0 / 371.6 MB, free: 276 kB / 302.1 MB Notification: Performance of Templates: time 0.172/0.304, allocations: 3.878 MB / 375.5 MB, free: 19.51 MB / 302.1 MB make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.makefile (rm -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.sim & ./Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1 -abortSlowSimulation -alarm=480 -s cvode -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches