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.001329/0.001329, allocations: 116.8 kB / 18.5 MB, free: 4.52 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.001339/0.001339, allocations: 212.9 kB / 21.46 MB, free: 1.566 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.559/1.559, allocations: 230.2 MB / 254.5 MB, free: 15.38 MB / 206.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.001967/0.001967, allocations: 67.88 kB / 373.8 MB, free: 9.914 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1296/0.1316, allocations: 53.32 MB / 427.1 MB, free: 4.496 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004074/0.1356, allocations: 2.039 MB / 429.2 MB, free: 2.445 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002395/0.138, allocations: 1.286 MB / 430.5 MB, free: 1.152 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001238/0.1381, allocations: 3.938 kB / 430.5 MB, free: 1.148 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0009356/0.1391, allocations: 311.1 kB / 430.8 MB, free: 0.8438 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005956/0.1397, allocations: 258.5 kB / 431 MB, free: 0.5938 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000562/0.1402, allocations: 227.4 kB / 431.3 MB, free: 380 kB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.000395/0.1406, allocations: 355.1 kB / 431.6 MB, free: 24 kB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001467/0.1408, allocations: 40.81 kB / 431.6 MB, free: 15.98 MB / 366.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001903/0.141, allocations: 151.3 kB / 431.8 MB, free: 15.83 MB / 366.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001985/0.1412, allocations: 155.4 kB / 431.9 MB, free: 15.68 MB / 366.1 MB Notification: Performance of NFPackage.collectConstants: time 3.318e-05/0.1412, allocations: 20 kB / 432 MB, free: 15.66 MB / 366.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001678/0.1414, allocations: 95.88 kB / 432.1 MB, free: 15.57 MB / 366.1 MB Notification: Performance of NFScalarize.scalarize: time 9.957e-05/0.1415, allocations: 79.75 kB / 432.1 MB, free: 15.49 MB / 366.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001291/0.1416, allocations: 139.1 kB / 432.3 MB, free: 15.35 MB / 366.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004394/0.142, allocations: 362.4 kB / 432.6 MB, free: 15 MB / 366.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.3e-06/0.142, allocations: 3.984 kB / 432.6 MB, free: 14.99 MB / 366.1 MB Notification: Performance of FrontEnd: time 7.21e-07/0.142, allocations: 0 / 432.6 MB, free: 14.99 MB / 366.1 MB Notification: Performance of Transformations before backend: time 5.471e-06/0.142, allocations: 0 / 432.6 MB, free: 14.99 MB / 366.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.00094/0.143, allocations: 0.6803 MB / 433.3 MB, free: 14.25 MB / 366.1 MB Notification: Performance of prepare preOptimizeDAE: time 2.609e-05/0.143, allocations: 12.03 kB / 433.3 MB, free: 14.24 MB / 366.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 6.903e-05/0.1431, allocations: 36.7 kB / 433.4 MB, free: 14.2 MB / 366.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004394/0.1435, allocations: 346.6 kB / 433.7 MB, free: 13.83 MB / 366.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.694e-05/0.1435, allocations: 12.31 kB / 433.7 MB, free: 13.82 MB / 366.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.23e-05/0.1436, allocations: 12.38 kB / 433.7 MB, free: 13.8 MB / 366.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002809/0.1438, allocations: 148.4 kB / 433.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.374e-06/0.1439, allocations: 0 / 433.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.416e-05/0.1439, allocations: 8 kB / 433.9 MB, free: 13.64 MB / 366.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.549e-06/0.1439, allocations: 4 kB / 433.9 MB, free: 13.63 MB / 366.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001639/0.144, allocations: 71.89 kB / 433.9 MB, free: 13.56 MB / 366.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007773/0.1448, allocations: 0.4925 MB / 434.4 MB, free: 13.02 MB / 366.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003323/0.1451, allocations: 122.8 kB / 434.6 MB, free: 12.89 MB / 366.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001081/0.1453, allocations: 44.84 kB / 434.6 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.915e-05/0.1453, allocations: 0 / 434.6 MB, free: 12.84 MB / 366.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000248/0.1455, allocations: 115.3 kB / 434.7 MB, free: 12.72 MB / 366.1 MB Notification: Performance of pre-optimization done (n=15): time 1.573e-06/0.1455, allocations: 0 / 434.7 MB, free: 12.72 MB / 366.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005407/0.1461, allocations: 227 kB / 434.9 MB, free: 12.49 MB / 366.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.468e-05/0.1462, allocations: 102.8 kB / 435 MB, free: 12.37 MB / 366.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005447/0.1467, allocations: 457.6 kB / 435.5 MB, free: 11.91 MB / 366.1 MB Notification: Performance of collectPreVariables (initialization): time 2.773e-05/0.1467, allocations: 29.7 kB / 435.5 MB, free: 11.88 MB / 366.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001556/0.1469, allocations: 172 kB / 435.7 MB, free: 11.7 MB / 366.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.007e-05/0.1469, allocations: 47.61 kB / 435.7 MB, free: 11.66 MB / 366.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 7.941e-05/0.147, allocations: 41.7 kB / 435.8 MB, free: 11.61 MB / 366.1 MB Notification: Performance of setup shared object (initialization): time 0.0001881/0.1472, allocations: 346.8 kB / 436.1 MB, free: 11.26 MB / 366.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001132/0.1473, allocations: 43.97 kB / 436.1 MB, free: 11.22 MB / 366.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001669/0.1475, allocations: 97.98 kB / 436.2 MB, free: 11.1 MB / 366.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002167/0.1477, allocations: 112 kB / 436.3 MB, free: 10.98 MB / 366.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.294e-06/0.1477, allocations: 0 / 436.3 MB, free: 10.98 MB / 366.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003393/0.148, allocations: 177.3 kB / 436.5 MB, free: 10.8 MB / 366.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.941e-05/0.1481, allocations: 8 kB / 436.5 MB, free: 10.8 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.212e-06/0.1481, allocations: 4.031 kB / 436.5 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 2.151e-05/0.1481, allocations: 7.922 kB / 436.5 MB, free: 10.79 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001147/0.1482, allocations: 24 kB / 436.6 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.586e-06/0.1482, allocations: 3.984 kB / 436.6 MB, free: 10.76 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001039/0.1483, allocations: 19.95 kB / 436.6 MB, free: 10.74 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.493e-05/0.1483, allocations: 8 kB / 436.6 MB, free: 10.73 MB / 366.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.0001979/0.1485, allocations: 175.5 kB / 436.8 MB, free: 10.55 MB / 366.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.819e-05/0.1486, allocations: 27.81 kB / 436.8 MB, free: 10.52 MB / 366.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.073e-05/0.1487, allocations: 38.97 kB / 436.8 MB, free: 10.49 MB / 366.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.727e-06/0.1487, allocations: 3.938 kB / 436.8 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.553e-06/0.1487, allocations: 0 / 436.8 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.539e-06/0.1487, allocations: 0 / 436.8 MB, free: 10.48 MB / 366.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003407/0.149, allocations: 313.4 kB / 437.1 MB, free: 10.13 MB / 366.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.192e-06/0.149, allocations: 3.938 kB / 437.1 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.621e-05/0.1491, allocations: 4 kB / 437.1 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.733e-06/0.1491, allocations: 4 kB / 437.2 MB, free: 10.12 MB / 366.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.727e-05/0.1491, allocations: 7.984 kB / 437.2 MB, free: 10.11 MB / 366.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.637e-06/0.1491, allocations: 7.875 kB / 437.2 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 9.01e-07/0.1491, allocations: 0 / 437.2 MB, free: 10.1 MB / 366.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003692/0.1495, allocations: 202.5 kB / 437.4 MB, free: 9.887 MB / 366.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.069e-05/0.1495, allocations: 108.9 kB / 437.5 MB, free: 9.762 MB / 366.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.286e-05/0.1496, allocations: 4 kB / 437.5 MB, free: 9.758 MB / 366.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.545e-05/0.1497, allocations: 11.92 kB / 437.5 MB, free: 9.746 MB / 366.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.794e-05/0.1497, allocations: 15.98 kB / 437.5 MB, free: 9.73 MB / 366.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.88e-05/0.1498, allocations: 8 kB / 437.5 MB, free: 9.723 MB / 366.1 MB Notification: Performance of sorting global known variables: time 0.0003823/0.1501, allocations: 331.1 kB / 437.8 MB, free: 9.402 MB / 366.1 MB Notification: Performance of sort global known variables: time 1e-07/0.1501, allocations: 3.938 kB / 437.8 MB, free: 9.398 MB / 366.1 MB Notification: Performance of remove unused functions: time 0.000291/0.1504, allocations: 59.81 kB / 437.9 MB, free: 9.34 MB / 366.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.001613/0.152, allocations: 428.9 kB / 438.3 MB, free: 9.055 MB / 366.1 MB Notification: Performance of simCode: created initialization part: time 0.0002942/0.1523, allocations: 111.8 kB / 438.4 MB, free: 8.945 MB / 366.1 MB Notification: Performance of simCode: created event and clocks part: time 1.302e-06/0.1523, allocations: 0 / 438.4 MB, free: 8.945 MB / 366.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001236/0.1525, allocations: 55.97 kB / 438.5 MB, free: 8.891 MB / 366.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004082/0.1529, allocations: 77.03 kB / 438.6 MB, free: 8.82 MB / 366.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008312/0.1537, allocations: 0.506 MB / 439.1 MB, free: 8.285 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004095/0.1541, allocations: 0.7753 MB / 439.8 MB, free: 7.484 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001124/0.1542, allocations: 50.25 kB / 439.9 MB, free: 7.438 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.083e-05/0.1543, allocations: 35.42 kB / 439.9 MB, free: 7.402 MB / 366.1 MB Notification: Performance of SimCode: time 3.1e-07/0.1543, allocations: 0 / 439.9 MB, free: 7.402 MB / 366.1 MB Notification: Performance of Templates: time 0.008309/0.1626, allocations: 3.919 MB / 443.8 MB, free: 3.496 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 -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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.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) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 4.9827547101303935]