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.00106/0.00106, allocations: 106.9 kB / 17.33 MB, free: 5.996 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001169/0.001169, allocations: 205.8 kB / 18.27 MB, free: 5.074 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.348/1.348, allocations: 227.4 MB / 246.4 MB, free: 10.86 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001224/0.001224, allocations: 59.75 kB / 306.4 MB, free: 0.9727 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1064/0.1077, allocations: 50.54 MB / 357 MB, free: 14.44 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.004287/0.112, allocations: 2.09 MB / 359.1 MB, free: 12.33 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002135/0.1142, allocations: 1.255 MB / 360.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000203/0.1144, allocations: 0 / 360.3 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.00102/0.1155, allocations: 287.4 kB / 360.6 MB, free: 10.79 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0008886/0.1164, allocations: 243 kB / 360.8 MB, free: 10.55 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0007899/0.1172, allocations: 199.7 kB / 361 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0007042/0.1179, allocations: 359.2 kB / 361.4 MB, free: 10.01 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0002212/0.1181, allocations: 60.7 kB / 361.4 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003477/0.1185, allocations: 155.3 kB / 361.6 MB, free: 9.801 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0003109/0.1188, allocations: 155.4 kB / 361.7 MB, free: 9.648 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 5.692e-05/0.1189, allocations: 16 kB / 361.7 MB, free: 9.633 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002604/0.1192, allocations: 83.89 kB / 361.8 MB, free: 9.551 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001484/0.1193, allocations: 83.73 kB / 361.9 MB, free: 9.469 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.000194/0.1195, allocations: 131.2 kB / 362 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005827/0.1201, allocations: 359.1 kB / 362.4 MB, free: 8.988 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.18e-06/0.1201, allocations: 4 kB / 362.4 MB, free: 8.984 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.783e-06/0.1201, allocations: 0 / 362.4 MB, free: 8.984 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.454e-05/0.1202, allocations: 0 / 362.4 MB, free: 8.984 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.001258/0.1214, allocations: 0.6688 MB / 363.1 MB, free: 8.254 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.589e-05/0.1215, allocations: 12.03 kB / 363.1 MB, free: 8.242 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.000109/0.1216, allocations: 36.47 kB / 363.1 MB, free: 8.207 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004864/0.1221, allocations: 338.3 kB / 363.4 MB, free: 7.836 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.004e-05/0.1221, allocations: 12.31 kB / 363.5 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.689e-05/0.1222, allocations: 20.12 kB / 363.5 MB, free: 7.805 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003172/0.1225, allocations: 155.3 kB / 363.6 MB, free: 7.641 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.507e-06/0.1225, allocations: 3.938 kB / 363.6 MB, free: 7.637 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.813e-05/0.1225, allocations: 0 / 363.6 MB, free: 7.637 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.216e-06/0.1225, allocations: 4 kB / 363.6 MB, free: 7.633 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001869/0.1227, allocations: 71.91 kB / 363.7 MB, free: 7.562 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008148/0.1236, allocations: 0.4886 MB / 364.2 MB, free: 7.023 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003713/0.124, allocations: 134.8 kB / 364.3 MB, free: 6.883 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001156/0.1241, allocations: 56.83 kB / 364.4 MB, free: 6.824 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.773e-05/0.1241, allocations: 0 / 364.4 MB, free: 6.824 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002538/0.1244, allocations: 119.2 kB / 364.5 MB, free: 6.695 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.793e-06/0.1244, allocations: 0 / 364.5 MB, free: 6.695 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005218/0.1249, allocations: 219.4 kB / 364.7 MB, free: 6.477 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.452e-05/0.125, allocations: 106.8 kB / 364.8 MB, free: 6.348 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005039/0.1255, allocations: 453.7 kB / 365.3 MB, free: 5.898 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.62e-05/0.1255, allocations: 29.7 kB / 365.3 MB, free: 5.863 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001315/0.1257, allocations: 179.8 kB / 365.5 MB, free: 5.684 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.204e-05/0.1257, allocations: 35.55 kB / 365.5 MB, free: 5.648 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.8e-05/0.1258, allocations: 45.64 kB / 365.5 MB, free: 5.598 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001458/0.126, allocations: 350.8 kB / 365.9 MB, free: 5.246 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000105/0.1261, allocations: 39.98 kB / 365.9 MB, free: 5.207 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001473/0.1262, allocations: 102 kB / 366 MB, free: 5.086 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000207/0.1264, allocations: 102.5 kB / 366.1 MB, free: 4.977 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.244e-06/0.1264, allocations: 4 kB / 366.1 MB, free: 4.973 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003369/0.1268, allocations: 175.8 kB / 366.3 MB, free: 4.797 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.71e-05/0.1268, allocations: 7.938 kB / 366.3 MB, free: 4.789 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.633e-06/0.1268, allocations: 4 kB / 366.3 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.375e-05/0.1268, allocations: 0 / 366.3 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001256/0.127, allocations: 23.98 kB / 366.3 MB, free: 4.762 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.812e-06/0.127, allocations: 4 kB / 366.3 MB, free: 4.758 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001162/0.1271, allocations: 19.83 kB / 366.4 MB, free: 4.738 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.448e-05/0.1271, allocations: 12.06 kB / 366.4 MB, free: 4.727 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.000175/0.1273, allocations: 167.5 kB / 366.5 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.469e-05/0.1274, allocations: 43.48 kB / 366.6 MB, free: 4.508 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.646e-05/0.1275, allocations: 34.97 kB / 366.6 MB, free: 4.465 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.398e-06/0.1275, allocations: 4 kB / 366.6 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.38e-06/0.1275, allocations: 0 / 366.6 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.188e-06/0.1275, allocations: 0 / 366.6 MB, free: 4.461 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0003154/0.1278, allocations: 305.3 kB / 366.9 MB, free: 4.113 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 6.622e-06/0.1278, allocations: 11.98 kB / 366.9 MB, free: 4.102 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.877e-05/0.1279, allocations: 8 kB / 366.9 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.887e-06/0.1279, allocations: 3.938 kB / 366.9 MB, free: 4.09 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.336e-05/0.1279, allocations: 11.94 kB / 366.9 MB, free: 4.078 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.287e-06/0.1279, allocations: 3.938 kB / 366.9 MB, free: 4.074 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.011e-06/0.1279, allocations: 0 / 366.9 MB, free: 4.074 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003422/0.1283, allocations: 200.6 kB / 367.1 MB, free: 3.859 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.012e-05/0.1283, allocations: 104.7 kB / 367.2 MB, free: 3.738 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.558e-05/0.1284, allocations: 15.94 kB / 367.3 MB, free: 3.723 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.517e-05/0.1285, allocations: 11.98 kB / 367.3 MB, free: 3.711 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.467e-05/0.1286, allocations: 16.02 kB / 367.3 MB, free: 3.695 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.956e-05/0.1286, allocations: 8 kB / 367.3 MB, free: 3.688 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003464/0.1289, allocations: 331.1 kB / 367.6 MB, free: 3.363 MB / 302.1 MB Notification: Performance of sort global known variables: time 2.91e-07/0.1289, allocations: 0 / 367.6 MB, free: 3.363 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002947/0.1292, allocations: 44 kB / 367.7 MB, free: 3.32 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.0009847/0.1302, allocations: 439.7 kB / 368.1 MB, free: 3.023 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003484/0.1306, allocations: 126.8 kB / 368.2 MB, free: 2.902 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.084e-06/0.1306, allocations: 0 / 368.2 MB, free: 2.902 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001307/0.1307, allocations: 59.92 kB / 368.3 MB, free: 2.844 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004414/0.1312, allocations: 75.22 kB / 368.3 MB, free: 2.777 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0008729/0.1321, allocations: 0.5706 MB / 368.9 MB, free: 2.184 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003337/0.1324, allocations: 0.7831 MB / 369.7 MB, free: 1.375 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001346/0.1326, allocations: 46.25 kB / 369.7 MB, free: 1.328 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.571e-05/0.1326, allocations: 31.44 kB / 369.8 MB, free: 1.297 MB / 302.1 MB Notification: Performance of SimCode: time 2.21e-07/0.1327, allocations: 0 / 369.8 MB, free: 1.297 MB / 302.1 MB Notification: Performance of Templates: time 0.1983/0.331, allocations: 3.796 MB / 373.6 MB, free: 19.62 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