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.001138/0.001138, allocations: 107.5 kB / 17.21 MB, free: 6.266 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001203/0.001203, allocations: 209.7 kB / 18.14 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.297/1.297, allocations: 227.4 MB / 246.3 MB, free: 10.75 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001344/0.001345, allocations: 61.45 kB / 306.3 MB, free: 0.9492 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09609/0.09745, allocations: 50.52 MB / 356.9 MB, free: 14.42 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.00406/0.1016, allocations: 2.088 MB / 359 MB, free: 12.31 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002148/0.1037, allocations: 1.267 MB / 360.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0002109/0.104, allocations: 0 / 360.2 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008858/0.1049, allocations: 303 kB / 360.5 MB, free: 10.75 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0005834/0.1055, allocations: 223.3 kB / 360.7 MB, free: 10.53 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0005253/0.106, allocations: 203.3 kB / 360.9 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003942/0.1064, allocations: 355.1 kB / 361.3 MB, free: 9.984 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001356/0.1066, allocations: 60.7 kB / 361.3 MB, free: 9.93 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002011/0.1068, allocations: 135.4 kB / 361.5 MB, free: 9.797 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.000184/0.107, allocations: 143.3 kB / 361.6 MB, free: 9.656 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.496e-05/0.107, allocations: 12 kB / 361.6 MB, free: 9.645 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001619/0.1072, allocations: 63.91 kB / 361.7 MB, free: 9.582 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.912e-05/0.1073, allocations: 79.73 kB / 361.8 MB, free: 9.504 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001302/0.1074, allocations: 119.2 kB / 361.9 MB, free: 9.387 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003747/0.1078, allocations: 355 kB / 362.2 MB, free: 9.039 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.198e-06/0.1078, allocations: 0 / 362.2 MB, free: 9.039 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.1078, allocations: 0 / 362.2 MB, free: 9.039 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.516e-06/0.1078, allocations: 4 kB / 362.2 MB, free: 9.035 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.0009954/0.1088, allocations: 0.671 MB / 362.9 MB, free: 8.305 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.338e-05/0.1089, allocations: 8.031 kB / 362.9 MB, free: 8.297 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.583e-05/0.1089, allocations: 42.73 kB / 362.9 MB, free: 8.246 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.221e-05/0.109, allocations: 36.47 kB / 363 MB, free: 8.211 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004039/0.1094, allocations: 338.3 kB / 363.3 MB, free: 7.84 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.389e-05/0.1095, allocations: 8.375 kB / 363.3 MB, free: 7.832 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.347e-05/0.1095, allocations: 15.94 kB / 363.3 MB, free: 7.816 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000287/0.1098, allocations: 155.5 kB / 363.5 MB, free: 7.652 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.108e-05/0.1098, allocations: 3.938 kB / 363.5 MB, free: 7.648 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.763e-05/0.1098, allocations: 8 kB / 363.5 MB, free: 7.641 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.486e-06/0.1098, allocations: 0 / 363.5 MB, free: 7.641 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001739/0.11, allocations: 67.95 kB / 363.6 MB, free: 7.574 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006863/0.1107, allocations: 0.4925 MB / 364.1 MB, free: 7.031 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003161/0.1111, allocations: 122.8 kB / 364.2 MB, free: 6.902 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001161/0.1112, allocations: 56.83 kB / 364.2 MB, free: 6.844 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.78e-05/0.1112, allocations: 7.938 kB / 364.2 MB, free: 6.836 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002263/0.1114, allocations: 115.2 kB / 364.4 MB, free: 6.711 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.984e-06/0.1115, allocations: 0 / 364.4 MB, free: 6.711 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005019/0.112, allocations: 215.6 kB / 364.6 MB, free: 6.496 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.489e-05/0.112, allocations: 106.8 kB / 364.7 MB, free: 6.367 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004902/0.1125, allocations: 457.6 kB / 365.1 MB, free: 5.914 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.503e-05/0.1126, allocations: 33.7 kB / 365.2 MB, free: 5.875 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001296/0.1127, allocations: 175.8 kB / 365.3 MB, free: 5.699 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.3e-05/0.1128, allocations: 39.55 kB / 365.4 MB, free: 5.66 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.631e-05/0.1128, allocations: 41.7 kB / 365.4 MB, free: 5.613 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001233/0.113, allocations: 350.7 kB / 365.7 MB, free: 5.262 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001058/0.1131, allocations: 43.92 kB / 365.8 MB, free: 5.219 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001549/0.1132, allocations: 106 kB / 365.9 MB, free: 5.094 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001991/0.1134, allocations: 106.5 kB / 366 MB, free: 4.98 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.736e-06/0.1135, allocations: 0 / 366 MB, free: 4.98 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003241/0.1138, allocations: 188.5 kB / 366.2 MB, free: 4.793 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.621e-05/0.1138, allocations: 7.938 kB / 366.2 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.949e-06/0.1138, allocations: 0 / 366.2 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.262e-05/0.1138, allocations: 0 / 366.2 MB, free: 4.785 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001155/0.114, allocations: 23.98 kB / 366.2 MB, free: 4.762 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.434e-06/0.114, allocations: 0 / 366.2 MB, free: 4.762 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001072/0.1141, allocations: 19.89 kB / 366.2 MB, free: 4.742 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.364e-05/0.1141, allocations: 4 kB / 366.2 MB, free: 4.738 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.0001724/0.1143, allocations: 179.5 kB / 366.4 MB, free: 4.551 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.342e-05/0.1143, allocations: 43.55 kB / 366.5 MB, free: 4.508 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.909e-05/0.1144, allocations: 30.97 kB / 366.5 MB, free: 4.469 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.535e-06/0.1144, allocations: 0 / 366.5 MB, free: 4.469 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.021e-06/0.1144, allocations: 0 / 366.5 MB, free: 4.469 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.837e-06/0.1144, allocations: 4 kB / 366.5 MB, free: 4.465 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002778/0.1147, allocations: 313.3 kB / 366.8 MB, free: 4.109 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.385e-06/0.1147, allocations: 0 / 366.8 MB, free: 4.109 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.07e-05/0.1148, allocations: 11.94 kB / 366.8 MB, free: 4.098 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.87e-06/0.1148, allocations: 3.938 kB / 366.8 MB, free: 4.094 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.283e-05/0.1148, allocations: 4 kB / 366.8 MB, free: 4.09 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.004e-06/0.1148, allocations: 4 kB / 366.8 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.31e-07/0.1148, allocations: 0 / 366.8 MB, free: 4.086 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003428/0.1152, allocations: 200.6 kB / 367 MB, free: 3.871 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.451e-05/0.1153, allocations: 112.7 kB / 367.1 MB, free: 3.742 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.302e-05/0.1153, allocations: 4 kB / 367.1 MB, free: 3.738 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.624e-05/0.1154, allocations: 15.98 kB / 367.1 MB, free: 3.723 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.355e-05/0.1155, allocations: 7.984 kB / 367.1 MB, free: 3.715 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.642e-05/0.1155, allocations: 12 kB / 367.2 MB, free: 3.703 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003468/0.1158, allocations: 327.1 kB / 367.5 MB, free: 3.383 MB / 302.1 MB Notification: Performance of sort global known variables: time 3.01e-07/0.1159, allocations: 4 kB / 367.5 MB, free: 3.379 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002934/0.1162, allocations: 51.92 kB / 367.5 MB, free: 3.328 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.001547/0.1177, allocations: 1.07 MB / 368.6 MB, free: 2.371 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002951/0.118, allocations: 119.9 kB / 368.7 MB, free: 2.254 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.254e-06/0.118, allocations: 0 / 368.7 MB, free: 2.254 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001224/0.1182, allocations: 55.92 kB / 368.8 MB, free: 2.199 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004063/0.1186, allocations: 78.45 kB / 368.9 MB, free: 2.125 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1668/0.2854, allocations: 2.945 MB / 371.8 MB, free: 19.32 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002562/0.2857, allocations: 0.7779 MB / 372.6 MB, free: 18.62 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.000189/0.2859, allocations: 43.02 kB / 372.6 MB, free: 18.62 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001411/0.2861, allocations: 99.33 kB / 372.7 MB, free: 18.62 MB / 302.1 MB Notification: Performance of SimCode: time 5.41e-07/0.2861, allocations: 0 / 372.7 MB, free: 18.62 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01908/0.3052, allocations: 6.886 MB / 379.6 MB, free: 17.81 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001566/0.3054, allocations: 223.8 kB / 379.8 MB, free: 17.56 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.83/2.135, allocations: 5.531 kB / 379.8 MB, free: 17.55 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)