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.000859/0.0008589, allocations: 97.12 kB / 17.35 MB, free: 6.371 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001356/0.001356, allocations: 206.3 kB / 18.29 MB, free: 5.496 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.498/1.498, allocations: 227.7 MB / 246.8 MB, free: 11.41 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.0002181/0.0002182, allocations: 8 kB / 307.7 MB, free: 0.8438 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.1194, allocations: 51.53 MB / 359.2 MB, free: 13.3 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002903/0.1224, allocations: 1.72 MB / 361 MB, free: 11.57 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002181/0.1246, allocations: 1.24 MB / 362.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002305/0.1249, allocations: 4 kB / 362.2 MB, free: 10.32 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000889/0.1258, allocations: 291.3 kB / 362.5 MB, free: 10.04 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0006046/0.1264, allocations: 231 kB / 362.7 MB, free: 9.812 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006251/0.127, allocations: 195.7 kB / 362.9 MB, free: 9.621 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004888/0.1275, allocations: 363.1 kB / 363.3 MB, free: 9.266 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000153/0.1277, allocations: 48.72 kB / 363.3 MB, free: 9.223 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001937/0.1279, allocations: 123.3 kB / 363.4 MB, free: 9.102 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001702/0.1281, allocations: 139.4 kB / 363.6 MB, free: 8.965 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.839e-05/0.1281, allocations: 12 kB / 363.6 MB, free: 8.953 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001944/0.1283, allocations: 59.97 kB / 363.6 MB, free: 8.895 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001083/0.1284, allocations: 75.67 kB / 363.7 MB, free: 8.82 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001286/0.1286, allocations: 148.9 kB / 363.9 MB, free: 8.668 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003752/0.1289, allocations: 331 kB / 364.2 MB, free: 8.344 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.917e-06/0.129, allocations: 4 kB / 364.2 MB, free: 8.34 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.793e-06/0.129, allocations: 0 / 364.2 MB, free: 8.34 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.041e-06/0.129, allocations: 0 / 364.2 MB, free: 8.34 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.0008356/0.1298, allocations: 0.63 MB / 364.8 MB, free: 7.648 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.944e-05/0.1299, allocations: 12.03 kB / 364.8 MB, free: 7.637 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.573e-05/0.1299, allocations: 36.55 kB / 364.9 MB, free: 7.602 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004003/0.1303, allocations: 338.3 kB / 365.2 MB, free: 7.23 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.36e-05/0.1304, allocations: 8.375 kB / 365.2 MB, free: 7.223 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.752e-05/0.1304, allocations: 16.12 kB / 365.2 MB, free: 7.207 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002665/0.1307, allocations: 155.4 kB / 365.4 MB, free: 7.043 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.414e-06/0.1307, allocations: 4 kB / 365.4 MB, free: 7.039 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.75e-05/0.1307, allocations: 4 kB / 365.4 MB, free: 7.035 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.833e-06/0.1307, allocations: 4 kB / 365.4 MB, free: 7.031 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000159/0.1309, allocations: 71.89 kB / 365.4 MB, free: 6.961 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006486/0.1316, allocations: 0.4924 MB / 365.9 MB, free: 6.418 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003008/0.1319, allocations: 122.8 kB / 366.1 MB, free: 6.289 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001087/0.132, allocations: 52.83 kB / 366.1 MB, free: 6.234 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.375e-05/0.132, allocations: 8 kB / 366.1 MB, free: 6.227 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002276/0.1323, allocations: 111.3 kB / 366.2 MB, free: 6.105 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.793e-06/0.1323, allocations: 0 / 366.2 MB, free: 6.105 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004909/0.1328, allocations: 219.8 kB / 366.4 MB, free: 5.887 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.444e-05/0.1328, allocations: 102.8 kB / 366.5 MB, free: 5.762 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004805/0.1333, allocations: 461.6 kB / 367 MB, free: 5.305 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.694e-05/0.1334, allocations: 33.7 kB / 367 MB, free: 5.266 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001298/0.1335, allocations: 179.9 kB / 367.2 MB, free: 5.086 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.961e-05/0.1335, allocations: 35.47 kB / 367.2 MB, free: 5.051 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.66e-05/0.1336, allocations: 25.7 kB / 367.3 MB, free: 5.02 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001316/0.1337, allocations: 346.8 kB / 367.6 MB, free: 4.672 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001031/0.1338, allocations: 43.92 kB / 367.6 MB, free: 4.629 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001413/0.134, allocations: 108.2 kB / 367.8 MB, free: 4.504 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002009/0.1342, allocations: 98.56 kB / 367.8 MB, free: 4.398 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.954e-06/0.1342, allocations: 3.938 kB / 367.9 MB, free: 4.395 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.000307/0.1345, allocations: 179.7 kB / 368 MB, free: 4.215 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.462e-05/0.1345, allocations: 7.938 kB / 368 MB, free: 4.207 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.765e-06/0.1345, allocations: 4 kB / 368 MB, free: 4.203 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.222e-05/0.1346, allocations: 0 / 368 MB, free: 4.203 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001116/0.1347, allocations: 27.98 kB / 368.1 MB, free: 4.176 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.141e-06/0.1347, allocations: 0 / 368.1 MB, free: 4.176 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001035/0.1348, allocations: 19.83 kB / 368.1 MB, free: 4.156 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.318e-05/0.1348, allocations: 8 kB / 368.1 MB, free: 4.148 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.0001646/0.135, allocations: 175.5 kB / 368.3 MB, free: 3.965 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.219e-05/0.135, allocations: 35.56 kB / 368.3 MB, free: 3.93 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.328e-05/0.1351, allocations: 38.95 kB / 368.3 MB, free: 3.883 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.404e-06/0.1351, allocations: 7.875 kB / 368.3 MB, free: 3.875 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.54e-06/0.1351, allocations: 4 kB / 368.3 MB, free: 3.871 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.186e-06/0.1351, allocations: 0 / 368.3 MB, free: 3.871 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002577/0.1354, allocations: 301.4 kB / 368.6 MB, free: 3.527 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.935e-06/0.1354, allocations: 4 kB / 368.6 MB, free: 3.523 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.781e-05/0.1355, allocations: 11.98 kB / 368.7 MB, free: 3.512 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.158e-06/0.1355, allocations: 3.938 kB / 368.7 MB, free: 3.508 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.54e-05/0.1355, allocations: 12 kB / 368.7 MB, free: 3.496 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.422e-06/0.1355, allocations: 0 / 368.7 MB, free: 3.496 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.244e-06/0.1355, allocations: 3.938 kB / 368.7 MB, free: 3.492 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003207/0.1358, allocations: 208.6 kB / 368.9 MB, free: 3.27 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 8.123e-05/0.1359, allocations: 108.7 kB / 369 MB, free: 3.145 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.228e-05/0.136, allocations: 11.94 kB / 369 MB, free: 3.133 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.047e-05/0.1361, allocations: 15.98 kB / 369 MB, free: 3.117 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.593e-05/0.1361, allocations: 11.98 kB / 369 MB, free: 3.105 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.297e-05/0.1362, allocations: 7.984 kB / 369 MB, free: 3.098 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003383/0.1365, allocations: 331.1 kB / 369.4 MB, free: 2.773 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.41e-07/0.1365, allocations: 0 / 369.4 MB, free: 2.773 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002936/0.1368, allocations: 56 kB / 369.4 MB, free: 2.719 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.0009564/0.1378, allocations: 429.4 kB / 369.8 MB, free: 2.434 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002864/0.1381, allocations: 119.9 kB / 369.9 MB, free: 2.316 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.746e-06/0.1381, allocations: 0 / 369.9 MB, free: 2.316 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001242/0.1382, allocations: 59.97 kB / 370 MB, free: 2.258 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004135/0.1386, allocations: 65.3 kB / 370.1 MB, free: 2.199 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007911/0.1394, allocations: 0.5776 MB / 370.6 MB, free: 1.598 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003051/0.1398, allocations: 0.7833 MB / 371.4 MB, free: 0.7891 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001272/0.1399, allocations: 42.27 kB / 371.5 MB, free: 0.7422 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.318e-05/0.14, allocations: 27.42 kB / 371.5 MB, free: 0.7148 MB / 302.1 MB Notification: Performance of SimCode: time 5.21e-07/0.14, allocations: 4 kB / 371.5 MB, free: 0.7109 MB / 302.1 MB Notification: Performance of Templates: time 0.1908/0.3308, allocations: 3.632 MB / 375.1 MB, free: 18.63 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 -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/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_trunk_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches