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.001032/0.001032, allocations: 102.8 kB / 17.63 MB, free: 5.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001235/0.001235, allocations: 214.4 kB / 18.58 MB, free: 4.406 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.379/1.379, allocations: 227.4 MB / 246.8 MB, free: 10.53 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001312/0.001312, allocations: 64.11 kB / 307 MB, free: 0.5195 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09372/0.09505, allocations: 50.53 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.003709/0.09879, allocations: 2.031 MB / 359.6 MB, free: 11.95 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002248/0.1011, allocations: 1.274 MB / 360.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001777/0.1013, allocations: 7.938 kB / 360.9 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0008425/0.1022, allocations: 310.6 kB / 361.2 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0007668/0.1029, allocations: 251.1 kB / 361.4 MB, free: 10.11 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0006745/0.1036, allocations: 231.4 kB / 361.7 MB, free: 9.883 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0005421/0.1042, allocations: 359.2 kB / 362 MB, free: 9.531 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001835/0.1044, allocations: 56.7 kB / 362.1 MB, free: 9.48 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0002518/0.1046, allocations: 143.4 kB / 362.2 MB, free: 9.34 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0002314/0.1049, allocations: 151.4 kB / 362.4 MB, free: 9.191 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.951e-05/0.1049, allocations: 24 kB / 362.4 MB, free: 9.168 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001891/0.1051, allocations: 79.91 kB / 362.5 MB, free: 9.09 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001128/0.1052, allocations: 87.72 kB / 362.5 MB, free: 9.004 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001362/0.1054, allocations: 135.1 kB / 362.7 MB, free: 8.871 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004345/0.1058, allocations: 351.1 kB / 363 MB, free: 8.527 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 1.5e-05/0.1058, allocations: 0 / 363 MB, free: 8.527 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.864e-06/0.1059, allocations: 0 / 363 MB, free: 8.527 MB / 302.1 MB Notification: Performance of Transformations before backend: time 1.216e-05/0.1059, allocations: 0 / 363 MB, free: 8.527 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.001054/0.1069, allocations: 0.6727 MB / 363.7 MB, free: 7.793 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.285e-05/0.107, allocations: 12.03 kB / 363.7 MB, free: 7.781 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.333e-05/0.107, allocations: 42.73 kB / 363.7 MB, free: 7.73 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.649e-05/0.1071, allocations: 36.47 kB / 363.8 MB, free: 7.695 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0004009/0.1075, allocations: 338.4 kB / 364.1 MB, free: 7.324 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.546e-05/0.1076, allocations: 12.31 kB / 364.1 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.617e-05/0.1076, allocations: 19.88 kB / 364.1 MB, free: 7.293 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002723/0.1079, allocations: 148 kB / 364.3 MB, free: 7.133 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.496e-06/0.1079, allocations: 4 kB / 364.3 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.472e-05/0.1079, allocations: 0 / 364.3 MB, free: 7.129 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.472e-06/0.1079, allocations: 4 kB / 364.3 MB, free: 7.125 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001715/0.1081, allocations: 75.94 kB / 364.4 MB, free: 7.051 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006649/0.1088, allocations: 0.4886 MB / 364.9 MB, free: 6.512 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003043/0.1091, allocations: 130.5 kB / 365 MB, free: 6.379 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001093/0.1092, allocations: 52.83 kB / 365 MB, free: 6.324 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.167e-05/0.1092, allocations: 0 / 365 MB, free: 6.324 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002234/0.1095, allocations: 123.2 kB / 365.2 MB, free: 6.191 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.402e-06/0.1095, allocations: 0 / 365.2 MB, free: 6.191 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0005063/0.11, allocations: 219.7 kB / 365.4 MB, free: 5.973 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 4.885e-05/0.11, allocations: 102.8 kB / 365.5 MB, free: 5.848 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004629/0.1105, allocations: 457.6 kB / 365.9 MB, free: 5.391 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.363e-05/0.1106, allocations: 33.7 kB / 365.9 MB, free: 5.352 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001171/0.1107, allocations: 183.8 kB / 366.1 MB, free: 5.168 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.77e-05/0.1107, allocations: 35.56 kB / 366.2 MB, free: 5.133 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.143e-05/0.1108, allocations: 41.7 kB / 366.2 MB, free: 5.086 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001219/0.1109, allocations: 346.8 kB / 366.5 MB, free: 4.738 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001061/0.111, allocations: 39.97 kB / 366.6 MB, free: 4.699 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.000142/0.1112, allocations: 102 kB / 366.7 MB, free: 4.578 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0002033/0.1114, allocations: 106.5 kB / 366.8 MB, free: 4.465 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.1114, allocations: 0 / 366.8 MB, free: 4.465 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0003164/0.1117, allocations: 179.7 kB / 367 MB, free: 4.285 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.528e-05/0.1118, allocations: 11.94 kB / 367 MB, free: 4.273 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.638e-06/0.1118, allocations: 4.062 kB / 367 MB, free: 4.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.449e-05/0.1118, allocations: 0 / 367 MB, free: 4.27 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001172/0.1119, allocations: 27.92 kB / 367 MB, free: 4.242 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.26e-06/0.1119, allocations: 0 / 367 MB, free: 4.242 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001027/0.112, allocations: 19.89 kB / 367 MB, free: 4.223 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.217e-05/0.112, allocations: 4 kB / 367 MB, free: 4.219 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.0001671/0.1122, allocations: 175.4 kB / 367.2 MB, free: 4.035 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.681e-05/0.1123, allocations: 39.5 kB / 367.2 MB, free: 3.996 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 7.073e-05/0.1123, allocations: 38.97 kB / 367.3 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.545e-06/0.1124, allocations: 0 / 367.3 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.549e-06/0.1124, allocations: 0 / 367.3 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.617e-06/0.1124, allocations: 0 / 367.3 MB, free: 3.949 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002525/0.1126, allocations: 317.3 kB / 367.6 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.034e-06/0.1126, allocations: 0 / 367.6 MB, free: 3.59 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.974e-05/0.1127, allocations: 8 kB / 367.6 MB, free: 3.582 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.957e-06/0.1127, allocations: 3.938 kB / 367.6 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.169e-05/0.1127, allocations: 4 kB / 367.6 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.763e-06/0.1127, allocations: 0 / 367.6 MB, free: 3.574 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.134e-06/0.1127, allocations: 8 kB / 367.6 MB, free: 3.566 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003282/0.1131, allocations: 200.6 kB / 367.8 MB, free: 3.352 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.517e-05/0.1131, allocations: 116.7 kB / 367.9 MB, free: 3.219 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 4.044e-05/0.1132, allocations: 0 / 367.9 MB, free: 3.219 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.663e-05/0.1133, allocations: 11.98 kB / 367.9 MB, free: 3.207 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.553e-05/0.1133, allocations: 15.98 kB / 367.9 MB, free: 3.191 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.577e-05/0.1134, allocations: 4 kB / 367.9 MB, free: 3.188 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.000333/0.1137, allocations: 335.1 kB / 368.3 MB, free: 2.863 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.1137, allocations: 0 / 368.3 MB, free: 2.863 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003027/0.114, allocations: 63.92 kB / 368.3 MB, free: 2.801 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.001406/0.1154, allocations: 1.065 MB / 369.4 MB, free: 1.852 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0003078/0.1158, allocations: 123.9 kB / 369.5 MB, free: 1.73 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.974e-06/0.1158, allocations: 0 / 369.5 MB, free: 1.73 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001278/0.1159, allocations: 59.92 kB / 369.6 MB, free: 1.672 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0004084/0.1163, allocations: 70.7 kB / 369.6 MB, free: 1.609 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1388/0.2552, allocations: 2.882 MB / 372.5 MB, free: 19.12 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002058/0.2554, allocations: 0.7785 MB / 373.3 MB, free: 18.43 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001645/0.2556, allocations: 47.52 kB / 373.4 MB, free: 18.43 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001272/0.2557, allocations: 98.89 kB / 373.5 MB, free: 18.42 MB / 302.1 MB Notification: Performance of SimCode: time 8.42e-07/0.2557, allocations: 0 / 373.5 MB, free: 18.42 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02529/0.281, allocations: 7.207 MB / 380.7 MB, free: 17.34 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.43/7.711, allocations: 8.969 kB / 380.7 MB, free: 17.34 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)