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) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.002022/0.002022, allocations: 82.25 kB / 21.25 MB, free: 0.5469 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.002822/0.002822, allocations: 159.3 kB / 24.5 MB, free: 3.719 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.583/1.583, allocations: 177.1 MB / 204.7 MB, free: 8.941 MB / 190.1 MB " [Timeout remaining time 178] 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=5010,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=5010,variableFilter="time|Pre1.u|table1.y|table2.y",fileNamePrefix="Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1") [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001896/0.001896, allocations: 62.48 kB / 325.5 MB, free: 188 kB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1191/0.121, allocations: 53.38 MB / 378.9 MB, free: 15.48 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003707/0.1247, allocations: 1.987 MB / 380.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002302/0.127, allocations: 1.22 MB / 382.1 MB, free: 12.26 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001319/0.1271, allocations: 7.938 kB / 382.1 MB, free: 12.25 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.000861/0.128, allocations: 311.2 kB / 382.4 MB, free: 11.95 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005629/0.1285, allocations: 255.1 kB / 382.7 MB, free: 11.7 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005527/0.1291, allocations: 242.6 kB / 382.9 MB, free: 11.46 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0004148/0.1295, allocations: 359 kB / 383.2 MB, free: 11.11 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001224/0.1296, allocations: 44.84 kB / 383.3 MB, free: 11.06 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001851/0.1298, allocations: 143.5 kB / 383.4 MB, free: 10.92 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002074/0.13, allocations: 163.3 kB / 383.6 MB, free: 10.76 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 3.523e-05/0.13, allocations: 16 kB / 383.6 MB, free: 10.75 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001961/0.1302, allocations: 95.91 kB / 383.7 MB, free: 10.65 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001092/0.1304, allocations: 83.69 kB / 383.8 MB, free: 10.57 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001172/0.1305, allocations: 107.4 kB / 383.9 MB, free: 10.46 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004695/0.1309, allocations: 366.4 kB / 384.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.756e-06/0.1309, allocations: 0 / 384.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of FrontEnd: time 9.22e-07/0.1309, allocations: 0 / 384.2 MB, free: 10.11 MB / 350.1 MB Notification: Performance of Transformations before backend: time 4.469e-06/0.1309, allocations: 0 / 384.2 MB, free: 10.11 MB / 350.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.0009595/0.1319, allocations: 0.601 MB / 384.8 MB, free: 9.461 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.132, allocations: 15.98 kB / 384.9 MB, free: 9.445 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.793e-05/0.132, allocations: 40.64 kB / 384.9 MB, free: 9.406 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004152/0.1324, allocations: 272.8 kB / 385.2 MB, free: 9.113 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.115e-05/0.1325, allocations: 16.38 kB / 385.2 MB, free: 9.098 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.491e-05/0.1325, allocations: 16.31 kB / 385.2 MB, free: 9.082 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002522/0.1327, allocations: 123.8 kB / 385.3 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.1328, allocations: 0 / 385.3 MB, free: 8.957 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.024e-05/0.1328, allocations: 11.98 kB / 385.3 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.168e-06/0.1328, allocations: 0 / 385.3 MB, free: 8.945 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001734/0.1329, allocations: 75.95 kB / 385.4 MB, free: 8.871 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006274/0.1336, allocations: 404.1 kB / 385.8 MB, free: 8.445 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003211/0.1339, allocations: 138.6 kB / 385.9 MB, free: 8.301 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001126/0.134, allocations: 52.83 kB / 386 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.49e-05/0.134, allocations: 0 / 386 MB, free: 8.246 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002271/0.1343, allocations: 115.3 kB / 386.1 MB, free: 8.121 MB / 350.1 MB Notification: Performance of pre-optimization done (n=15): time 1.282e-06/0.1343, allocations: 0 / 386.1 MB, free: 8.121 MB / 350.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005138/0.1348, allocations: 232.1 kB / 386.3 MB, free: 7.891 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.852e-05/0.1348, allocations: 59.33 kB / 386.4 MB, free: 7.82 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0006112/0.1354, allocations: 461.6 kB / 386.8 MB, free: 7.359 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.35e-05/0.1355, allocations: 33.7 kB / 386.9 MB, free: 7.32 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001479/0.1356, allocations: 164.1 kB / 387 MB, free: 7.156 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.987e-05/0.1357, allocations: 47.67 kB / 387.1 MB, free: 7.109 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.669e-05/0.1357, allocations: 41.7 kB / 387.1 MB, free: 7.062 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001679/0.1359, allocations: 346.8 kB / 387.5 MB, free: 6.715 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001135/0.136, allocations: 43.98 kB / 387.5 MB, free: 6.672 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001811/0.1362, allocations: 146.9 kB / 387.6 MB, free: 6.504 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002184/0.1364, allocations: 110.5 kB / 387.8 MB, free: 6.387 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 4.238e-06/0.1364, allocations: 4 kB / 387.8 MB, free: 6.383 MB / 350.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003476/0.1368, allocations: 192 kB / 387.9 MB, free: 6.191 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.725e-05/0.1368, allocations: 11.94 kB / 388 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.709e-06/0.1368, allocations: 0 / 388 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.558e-05/0.1368, allocations: 0 / 388 MB, free: 6.18 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001257/0.1369, allocations: 27.92 kB / 388 MB, free: 6.152 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.664e-06/0.1369, allocations: 3.938 kB / 388 MB, free: 6.148 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001038/0.137, allocations: 23.94 kB / 388 MB, free: 6.125 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.316e-05/0.137, allocations: 8 kB / 388 MB, free: 6.117 MB / 350.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.0002233/0.1373, allocations: 163.8 kB / 388.2 MB, free: 5.949 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.781e-05/0.1373, allocations: 35.8 kB / 388.2 MB, free: 5.914 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0004066/0.1377, allocations: 203.3 kB / 388.4 MB, free: 5.715 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 6.803e-06/0.1377, allocations: 4 kB / 388.4 MB, free: 5.711 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.051e-06/0.1377, allocations: 3.938 kB / 388.4 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.858e-06/0.1377, allocations: 0 / 388.4 MB, free: 5.707 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002446/0.138, allocations: 225.2 kB / 388.6 MB, free: 5.457 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.103e-06/0.138, allocations: 4 kB / 388.6 MB, free: 5.453 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.174e-05/0.138, allocations: 11.98 kB / 388.7 MB, free: 5.441 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.057e-06/0.138, allocations: 4 kB / 388.7 MB, free: 5.438 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.609e-05/0.1381, allocations: 4 kB / 388.7 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.342e-06/0.1381, allocations: 0 / 388.7 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.91e-07/0.1381, allocations: 0 / 388.7 MB, free: 5.434 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004155/0.1385, allocations: 228.6 kB / 388.9 MB, free: 5.191 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.562e-05/0.1386, allocations: 35.73 kB / 388.9 MB, free: 5.156 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 5.441e-05/0.1386, allocations: 4 kB / 388.9 MB, free: 5.152 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.712e-05/0.1387, allocations: 11.98 kB / 388.9 MB, free: 5.141 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.547e-05/0.1388, allocations: 23.86 kB / 389 MB, free: 5.117 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.278e-05/0.1388, allocations: 11.98 kB / 389 MB, free: 5.105 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000363/0.1392, allocations: 335.1 kB / 389.3 MB, free: 4.781 MB / 350.1 MB Notification: Performance of sort global known variables: time 8.1e-08/0.1392, allocations: 0 / 389.3 MB, free: 4.781 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002848/0.1395, allocations: 51.94 kB / 389.3 MB, free: 4.73 MB / 350.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,table2.combiTimeTable.nextTimeEvent,table1.combiTimeTable.nextTimeEvent,table2.combiTimeTable.nextTimeEventScaled,table1.combiTimeTable.nextTimeEventScaled) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (17): * Single equations (assignments): 13 * 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.001592/0.1411, allocations: 435.4 kB / 389.8 MB, free: 4.441 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0003272/0.1414, allocations: 123.9 kB / 389.9 MB, free: 4.32 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.1414, allocations: 0 / 389.9 MB, free: 4.32 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001392/0.1415, allocations: 59.97 kB / 390 MB, free: 4.262 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004235/0.1419, allocations: 86.12 kB / 390 MB, free: 4.188 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008798/0.1428, allocations: 0.5284 MB / 390.6 MB, free: 3.633 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001745/0.143, allocations: 174.2 kB / 390.7 MB, free: 3.441 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.000108/0.1431, allocations: 38.27 kB / 390.8 MB, free: 3.406 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.144e-05/0.1432, allocations: 32.48 kB / 390.8 MB, free: 3.375 MB / 350.1 MB Notification: Performance of SimCode: time 6.51e-07/0.1432, allocations: 4 kB / 390.8 MB, free: 3.371 MB / 350.1 MB Notification: Performance of Templates: time 0.008969/0.1521, allocations: 4.025 MB / 394.8 MB, free: 15.38 MB / 366.1 MB " [Timeout remaining time 660] make -j1 -f Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.makefile [Timeout 660] (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 ida -emit_protected -lv LOG_STATS > Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1) [Timeout 480] diffSimulationResults("Modelica_trunk_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_trunk_Modelica.Blocks.Examples.LogicalNetwork1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.715158388949931]