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: "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.LogicalNetwork1,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001063/0.001063, allocations: 115.9 kB / 17.33 MB, free: 5.984 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001222/0.001222, allocations: 205.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.351/1.351, allocations: 227.4 MB / 246.4 MB, free: 10.83 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001193/0.001193, allocations: 67.58 kB / 306.5 MB, free: 0.875 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1007/0.1019, allocations: 50.53 MB / 357.1 MB, free: 14.35 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.005353/0.1073, allocations: 2.093 MB / 359.2 MB, free: 12.24 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.003419/0.1107, allocations: 1.247 MB / 360.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002993/0.1111, allocations: 8 kB / 360.4 MB, free: 10.98 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.001227/0.1123, allocations: 287.3 kB / 360.7 MB, free: 10.7 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0009028/0.1132, allocations: 239.4 kB / 360.9 MB, free: 10.46 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0008364/0.1141, allocations: 199.4 kB / 361.1 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0009365/0.115, allocations: 363.1 kB / 361.5 MB, free: 9.914 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0003101/0.1154, allocations: 64.7 kB / 361.6 MB, free: 9.855 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0003785/0.1158, allocations: 147.3 kB / 361.7 MB, free: 9.711 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0005788/0.1163, allocations: 159.3 kB / 361.9 MB, free: 9.555 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 6.156e-05/0.1164, allocations: 20 kB / 361.9 MB, free: 9.535 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0002624/0.1167, allocations: 83.91 kB / 362 MB, free: 9.453 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0003626/0.1171, allocations: 83.73 kB / 362 MB, free: 9.371 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0002286/0.1173, allocations: 131.2 kB / 362.2 MB, free: 9.242 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0008695/0.1182, allocations: 355.1 kB / 362.5 MB, free: 8.895 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.302e-06/0.1182, allocations: 4 kB / 362.5 MB, free: 8.891 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.943e-06/0.1182, allocations: 0 / 362.5 MB, free: 8.891 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.831e-05/0.1183, allocations: 0 / 362.5 MB, free: 8.891 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.001844/0.1201, allocations: 0.6688 MB / 363.2 MB, free: 8.16 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.845e-05/0.1202, allocations: 12.03 kB / 363.2 MB, free: 8.148 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 6.017e-05/0.1202, allocations: 46.73 kB / 363.2 MB, free: 8.094 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 0.0001433/0.1204, allocations: 36.47 kB / 363.3 MB, free: 8.059 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000694/0.1211, allocations: 342.2 kB / 363.6 MB, free: 7.684 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.88e-05/0.1211, allocations: 16.36 kB / 363.6 MB, free: 7.668 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.902e-05/0.1212, allocations: 15.94 kB / 363.6 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004219/0.1216, allocations: 148 kB / 363.8 MB, free: 7.492 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.109e-05/0.1216, allocations: 0 / 363.8 MB, free: 7.492 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.245e-05/0.1217, allocations: 8 kB / 363.8 MB, free: 7.484 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.123e-06/0.1217, allocations: 0 / 363.8 MB, free: 7.484 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002239/0.1219, allocations: 67.97 kB / 363.9 MB, free: 7.418 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009628/0.1229, allocations: 0.4886 MB / 364.3 MB, free: 6.879 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0004156/0.1234, allocations: 134.7 kB / 364.5 MB, free: 6.738 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001673/0.1235, allocations: 52.77 kB / 364.5 MB, free: 6.684 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 3.235e-05/0.1236, allocations: 4 kB / 364.5 MB, free: 6.68 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005195/0.1241, allocations: 119.2 kB / 364.7 MB, free: 6.551 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 2.154e-06/0.1241, allocations: 0 / 364.7 MB, free: 6.551 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0006638/0.1248, allocations: 215.6 kB / 364.9 MB, free: 6.336 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.107e-05/0.1249, allocations: 114.7 kB / 365 MB, free: 6.199 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0009696/0.1259, allocations: 453.7 kB / 365.4 MB, free: 5.75 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 4.519e-05/0.1259, allocations: 29.7 kB / 365.4 MB, free: 5.715 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001578/0.1261, allocations: 171.8 kB / 365.6 MB, free: 5.543 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.866e-05/0.1262, allocations: 43.55 kB / 365.7 MB, free: 5.5 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 9.502e-05/0.1263, allocations: 41.7 kB / 365.7 MB, free: 5.453 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001843/0.1265, allocations: 346.8 kB / 366 MB, free: 5.105 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001409/0.1266, allocations: 39.98 kB / 366.1 MB, free: 5.066 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002097/0.1268, allocations: 104.5 kB / 366.2 MB, free: 4.945 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002735/0.1271, allocations: 106.5 kB / 366.3 MB, free: 4.832 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.607e-06/0.1271, allocations: 4 kB / 366.3 MB, free: 4.828 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0005404/0.1277, allocations: 176 kB / 366.5 MB, free: 4.652 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.398e-05/0.1277, allocations: 7.938 kB / 366.5 MB, free: 4.645 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 7.263e-06/0.1277, allocations: 0 / 366.5 MB, free: 4.645 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.925e-05/0.1278, allocations: 8.062 kB / 366.5 MB, free: 4.637 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001683/0.1279, allocations: 23.98 kB / 366.5 MB, free: 4.613 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.353e-05/0.128, allocations: 4 kB / 366.5 MB, free: 4.609 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001542/0.1281, allocations: 11.89 kB / 366.5 MB, free: 4.598 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 2.586e-05/0.1282, allocations: 15.94 kB / 366.5 MB, free: 4.582 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.000325/0.1285, allocations: 167.5 kB / 366.7 MB, free: 4.406 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.877e-05/0.1286, allocations: 35.56 kB / 366.7 MB, free: 4.371 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001304/0.1287, allocations: 42.95 kB / 366.8 MB, free: 4.32 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.1287, allocations: 4 kB / 366.8 MB, free: 4.316 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.833e-06/0.1287, allocations: 0 / 366.8 MB, free: 4.316 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.328e-06/0.1288, allocations: 0 / 366.8 MB, free: 4.316 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0004395/0.1292, allocations: 309.3 kB / 367.1 MB, free: 3.965 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.238e-06/0.1292, allocations: 0 / 367.1 MB, free: 3.965 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 6.893e-05/0.1293, allocations: 15.92 kB / 367.1 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.312e-06/0.1293, allocations: 3.938 kB / 367.1 MB, free: 3.945 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.095e-05/0.1293, allocations: 8 kB / 367.1 MB, free: 3.938 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.975e-06/0.1294, allocations: 0 / 367.1 MB, free: 3.938 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.673e-06/0.1294, allocations: 0 / 367.1 MB, free: 3.938 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0004853/0.1299, allocations: 204.7 kB / 367.3 MB, free: 3.719 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.000274/0.1301, allocations: 112.7 kB / 367.4 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.061e-05/0.1302, allocations: 11.92 kB / 367.4 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001297/0.1304, allocations: 8 kB / 367.4 MB, free: 3.57 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.982e-05/0.1304, allocations: 15.98 kB / 367.4 MB, free: 3.555 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 3.262e-05/0.1305, allocations: 7.984 kB / 367.5 MB, free: 3.547 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0005798/0.1311, allocations: 335.1 kB / 367.8 MB, free: 3.219 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.9e-07/0.1311, allocations: 0 / 367.8 MB, free: 3.219 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0005225/0.1316, allocations: 51.94 kB / 367.8 MB, free: 3.168 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.002025/0.1336, allocations: 1.063 MB / 368.9 MB, free: 2.219 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003388/0.134, allocations: 127.8 kB / 369 MB, free: 2.094 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 5.38e-06/0.134, allocations: 4 kB / 369 MB, free: 2.09 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001277/0.1342, allocations: 55.08 kB / 369.1 MB, free: 2.039 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004466/0.1346, allocations: 83.72 kB / 369.2 MB, free: 1.969 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1566/0.2912, allocations: 2.944 MB / 372.1 MB, free: 19.36 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002598/0.2915, allocations: 0.7772 MB / 372.9 MB, free: 18.66 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001932/0.2917, allocations: 43 kB / 372.9 MB, free: 18.66 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001372/0.2918, allocations: 97.84 kB / 373 MB, free: 18.65 MB / 302.1 MB Notification: Performance of SimCode: time 2.254e-06/0.2918, allocations: 0.7812 kB / 373 MB, free: 18.65 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02162/0.3135, allocations: 7.038 MB / 380.1 MB, free: 17.73 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0002005/0.3137, allocations: 227.8 kB / 380.3 MB, free: 17.48 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.062/2.376, allocations: 3.938 kB / 380.3 MB, free: 17.47 MB / 302.1 MB (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 & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_LogicalNetwork1.fmu > Modelica_trunk_Modelica.Blocks.Examples.LogicalNetwork1.pipe 2>&1)