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.001408/0.001408, allocations: 115.9 kB / 18.41 MB, free: 4.559 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001662/0.001662, allocations: 203.5 kB / 19.36 MB, free: 3.617 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.408/1.408, allocations: 227.4 MB / 247.5 MB, free: 10.38 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001348/0.001348, allocations: 64.31 kB / 308.4 MB, free: 15.93 MB / 254.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1067/0.1081, allocations: 50.54 MB / 358.9 MB, free: 13.38 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003439/0.1116, allocations: 2.024 MB / 360.9 MB, free: 11.34 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001956/0.1136, allocations: 1.275 MB / 362.2 MB, free: 10.06 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.00011/0.1137, allocations: 7.938 kB / 362.2 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008288/0.1145, allocations: 303.1 kB / 362.5 MB, free: 9.754 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005121/0.115, allocations: 247.2 kB / 362.7 MB, free: 9.512 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005323/0.1156, allocations: 234.6 kB / 363 MB, free: 9.285 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003876/0.116, allocations: 367.1 kB / 363.3 MB, free: 8.926 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001682/0.1162, allocations: 72.69 kB / 363.4 MB, free: 8.859 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001706/0.1163, allocations: 139.5 kB / 363.5 MB, free: 8.723 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000179/0.1165, allocations: 151.4 kB / 363.7 MB, free: 8.574 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.741e-05/0.1166, allocations: 20 kB / 363.7 MB, free: 8.555 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001705/0.1167, allocations: 91.88 kB / 363.8 MB, free: 8.465 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001297/0.1169, allocations: 79.75 kB / 363.9 MB, free: 8.387 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001251/0.117, allocations: 135.1 kB / 364 MB, free: 8.254 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004605/0.1175, allocations: 362.7 kB / 364.4 MB, free: 7.898 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.849e-06/0.1175, allocations: 0 / 364.4 MB, free: 7.898 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.914e-06/0.1175, allocations: 0 / 364.4 MB, free: 7.898 MB / 302.1 MB Notification: Performance of Transformations before backend: time 6.963e-06/0.1175, allocations: 0 / 364.4 MB, free: 7.898 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.001005/0.1185, allocations: 0.6727 MB / 365 MB, free: 7.164 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.804e-05/0.1186, allocations: 8.031 kB / 365 MB, free: 7.156 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.099e-05/0.1187, allocations: 40.41 kB / 365.1 MB, free: 7.117 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004755/0.1191, allocations: 342.3 kB / 365.4 MB, free: 6.742 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.108e-05/0.1192, allocations: 8.375 kB / 365.4 MB, free: 6.734 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.486e-05/0.1192, allocations: 16.12 kB / 365.4 MB, free: 6.719 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003097/0.1195, allocations: 148 kB / 365.6 MB, free: 6.559 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.568e-06/0.1195, allocations: 0 / 365.6 MB, free: 6.559 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.04e-05/0.1196, allocations: 8 kB / 365.6 MB, free: 6.551 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.789e-06/0.1196, allocations: 3.938 kB / 365.6 MB, free: 6.547 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001655/0.1197, allocations: 71.89 kB / 365.7 MB, free: 6.477 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007961/0.1206, allocations: 0.4925 MB / 366.2 MB, free: 5.934 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003086/0.1209, allocations: 122.8 kB / 366.3 MB, free: 5.805 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001087/0.121, allocations: 52.83 kB / 366.3 MB, free: 5.75 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.602e-05/0.121, allocations: 0 / 366.3 MB, free: 5.75 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002281/0.1213, allocations: 123.2 kB / 366.4 MB, free: 5.617 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.503e-06/0.1213, allocations: 0 / 366.4 MB, free: 5.617 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004808/0.1218, allocations: 217.1 kB / 366.7 MB, free: 5.398 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.942e-05/0.1218, allocations: 102.8 kB / 366.8 MB, free: 5.273 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004949/0.1223, allocations: 453.7 kB / 367.2 MB, free: 4.82 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.673e-05/0.1224, allocations: 29.7 kB / 367.2 MB, free: 4.785 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001763/0.1225, allocations: 175.8 kB / 367.4 MB, free: 4.609 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.239e-05/0.1226, allocations: 43.53 kB / 367.4 MB, free: 4.566 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.364e-05/0.1227, allocations: 45.7 kB / 367.5 MB, free: 4.516 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0002497/0.1229, allocations: 342.8 kB / 367.8 MB, free: 4.172 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001013/0.123, allocations: 43.92 kB / 367.9 MB, free: 4.129 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002062/0.1232, allocations: 104.4 kB / 368 MB, free: 4.008 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002123/0.1235, allocations: 105.8 kB / 368.1 MB, free: 3.898 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.304e-06/0.1235, allocations: 3.938 kB / 368.1 MB, free: 3.895 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003575/0.1238, allocations: 173.2 kB / 368.2 MB, free: 3.719 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.985e-05/0.1239, allocations: 11.94 kB / 368.3 MB, free: 3.707 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.103e-06/0.1239, allocations: 3.984 kB / 368.3 MB, free: 3.703 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.629e-05/0.1239, allocations: 4.062 kB / 368.3 MB, free: 3.699 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001191/0.124, allocations: 23.98 kB / 368.3 MB, free: 3.676 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.963e-06/0.124, allocations: 0 / 368.3 MB, free: 3.676 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001041/0.1242, allocations: 23.83 kB / 368.3 MB, free: 3.652 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.299e-05/0.1242, allocations: 4 kB / 368.3 MB, free: 3.648 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.000177/0.1244, allocations: 179.5 kB / 368.5 MB, free: 3.461 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.998e-05/0.1244, allocations: 35.55 kB / 368.5 MB, free: 3.426 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 8.352e-05/0.1245, allocations: 42.97 kB / 368.6 MB, free: 3.375 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.254e-06/0.1245, allocations: 0 / 368.6 MB, free: 3.375 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.189e-06/0.1245, allocations: 0 / 368.6 MB, free: 3.375 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.663e-06/0.1245, allocations: 3.938 kB / 368.6 MB, free: 3.371 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003024/0.1248, allocations: 313.3 kB / 368.9 MB, free: 3.016 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.252e-06/0.1248, allocations: 0 / 368.9 MB, free: 3.016 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.723e-05/0.1249, allocations: 4 kB / 368.9 MB, free: 3.012 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.607e-06/0.1249, allocations: 7.938 kB / 368.9 MB, free: 3.004 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.553e-05/0.1249, allocations: 4 kB / 368.9 MB, free: 3 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.633e-06/0.1249, allocations: 0 / 368.9 MB, free: 3 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.967e-06/0.1249, allocations: 7.984 kB / 368.9 MB, free: 2.992 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003373/0.1253, allocations: 204.6 kB / 369.1 MB, free: 2.773 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 9.333e-05/0.1254, allocations: 108.7 kB / 369.2 MB, free: 2.648 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.14e-05/0.1254, allocations: 7.938 kB / 369.2 MB, free: 2.641 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.178e-05/0.1255, allocations: 7.984 kB / 369.2 MB, free: 2.633 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.109e-05/0.1256, allocations: 15.98 kB / 369.2 MB, free: 2.617 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.816e-05/0.1256, allocations: 4 kB / 369.2 MB, free: 2.613 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003482/0.126, allocations: 339.1 kB / 369.6 MB, free: 2.285 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.126, allocations: 0 / 369.6 MB, free: 2.285 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002813/0.1263, allocations: 51.98 kB / 369.6 MB, free: 2.234 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.0009794/0.1273, allocations: 423.7 kB / 370 MB, free: 1.957 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003077/0.1276, allocations: 119.9 kB / 370.2 MB, free: 1.84 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.1276, allocations: 0 / 370.2 MB, free: 1.84 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001276/0.1277, allocations: 60.11 kB / 370.2 MB, free: 1.781 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003954/0.1281, allocations: 75.98 kB / 370.3 MB, free: 1.715 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0007795/0.1289, allocations: 0.504 MB / 370.8 MB, free: 1.188 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003687/0.1293, allocations: 0.7753 MB / 371.6 MB, free: 396 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001077/0.1294, allocations: 46.25 kB / 371.6 MB, free: 348 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.534e-05/0.1295, allocations: 35.38 kB / 371.6 MB, free: 312 kB / 302.1 MB Notification: Performance of SimCode: time 2.3e-07/0.1295, allocations: 0 / 371.6 MB, free: 312 kB / 302.1 MB Notification: Performance of Templates: time 0.1607/0.2902, allocations: 3.883 MB / 375.5 MB, free: 19.48 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 gbode -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