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.0008394/0.0008396, allocations: 93.22 kB / 17.35 MB, free: 6.344 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009649/0.0009649, allocations: 203.6 kB / 18.28 MB, free: 5.477 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.223/1.223, allocations: 227.7 MB / 246.8 MB, free: 9.551 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000207/0.000207, allocations: 4 kB / 307.8 MB, free: 0.5117 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.08109/0.08131, allocations: 51.52 MB / 359.3 MB, free: 12.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.LogicalNetwork1): time 0.002074/0.08341, allocations: 1.727 MB / 361.1 MB, free: 11.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001825/0.08526, allocations: 1.24 MB / 362.3 MB, free: 10 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001147/0.08539, allocations: 0 / 362.3 MB, free: 10 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006716/0.08608, allocations: 291.3 kB / 362.6 MB, free: 9.719 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004437/0.08653, allocations: 231.3 kB / 362.8 MB, free: 9.492 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004594/0.087, allocations: 203.1 kB / 363 MB, free: 9.297 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003565/0.08737, allocations: 359.1 kB / 363.4 MB, free: 8.945 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001253/0.0875, allocations: 60.69 kB / 363.4 MB, free: 8.891 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001733/0.08768, allocations: 123.4 kB / 363.6 MB, free: 8.77 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001758/0.08787, allocations: 139.4 kB / 363.7 MB, free: 8.633 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.463e-05/0.0879, allocations: 8 kB / 363.7 MB, free: 8.625 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001356/0.08804, allocations: 63.91 kB / 363.8 MB, free: 8.562 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 9.018e-05/0.08814, allocations: 75.73 kB / 363.8 MB, free: 8.488 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001174/0.08826, allocations: 140.9 kB / 364 MB, free: 8.344 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003328/0.0886, allocations: 347 kB / 364.3 MB, free: 8.004 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.016e-06/0.08861, allocations: 0 / 364.3 MB, free: 8.004 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.122e-06/0.08862, allocations: 0 / 364.3 MB, free: 8.004 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.711e-06/0.08863, allocations: 0 / 364.3 MB, free: 8.004 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.0007585/0.08939, allocations: 0.6223 MB / 364.9 MB, free: 7.32 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.211e-05/0.08943, allocations: 8.031 kB / 364.9 MB, free: 7.312 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.527e-05/0.08948, allocations: 46.73 kB / 365 MB, free: 7.258 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.7e-05/0.08955, allocations: 32.56 kB / 365 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003663/0.08992, allocations: 338.3 kB / 365.3 MB, free: 6.855 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.583e-05/0.08994, allocations: 12.31 kB / 365.4 MB, free: 6.844 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.116e-05/0.08997, allocations: 15.92 kB / 365.4 MB, free: 6.828 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002532/0.09023, allocations: 149.3 kB / 365.5 MB, free: 6.668 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 6.953e-06/0.09024, allocations: 3.938 kB / 365.5 MB, free: 6.664 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.612e-05/0.09026, allocations: 7.984 kB / 365.5 MB, free: 6.656 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 7.244e-06/0.09028, allocations: 7.984 kB / 365.5 MB, free: 6.648 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001476/0.09043, allocations: 63.97 kB / 365.6 MB, free: 6.586 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006034/0.09104, allocations: 0.4925 MB / 366.1 MB, free: 6.043 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000289/0.09134, allocations: 130.8 kB / 366.2 MB, free: 5.906 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001056/0.09145, allocations: 52.78 kB / 366.3 MB, free: 5.852 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.377e-05/0.09149, allocations: 3.984 kB / 366.3 MB, free: 5.848 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002196/0.09171, allocations: 115.3 kB / 366.4 MB, free: 5.723 MB / 302.1 MB Notification: Performance of pre-optimization done (n=15): time 1.543e-06/0.09172, allocations: 0 / 366.4 MB, free: 5.723 MB / 302.1 MB Notification: Performance of matching and sorting (n=15): time 0.0004487/0.09218, allocations: 211.7 kB / 366.6 MB, free: 5.512 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.933e-05/0.09224, allocations: 110.8 kB / 366.7 MB, free: 5.379 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0004623/0.09271, allocations: 461.5 kB / 367.2 MB, free: 4.922 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.249e-05/0.09275, allocations: 33.69 kB / 367.2 MB, free: 4.883 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001155/0.09287, allocations: 175.9 kB / 367.4 MB, free: 4.707 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.428e-05/0.09291, allocations: 35.45 kB / 367.4 MB, free: 4.672 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.576e-05/0.09295, allocations: 29.7 kB / 367.4 MB, free: 4.637 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.000116/0.09307, allocations: 342.8 kB / 367.8 MB, free: 4.293 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001009/0.09318, allocations: 43.97 kB / 367.8 MB, free: 4.25 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001419/0.09333, allocations: 108.2 kB / 367.9 MB, free: 4.125 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001869/0.09352, allocations: 110.5 kB / 368 MB, free: 4.008 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.174e-06/0.09353, allocations: 0 / 368 MB, free: 4.008 MB / 302.1 MB Notification: Performance of matching and sorting (n=20) (initialization): time 0.0002971/0.09384, allocations: 179.8 kB / 368.2 MB, free: 3.828 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.447e-05/0.09386, allocations: 7.938 kB / 368.2 MB, free: 3.82 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.39e-06/0.09387, allocations: 3.984 kB / 368.2 MB, free: 3.816 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.122e-05/0.09389, allocations: 4 kB / 368.2 MB, free: 3.812 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 0.0001024/0.09399, allocations: 20 kB / 368.2 MB, free: 3.793 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.352e-06/0.09401, allocations: 4 kB / 368.2 MB, free: 3.789 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 9.644e-05/0.09411, allocations: 15.89 kB / 368.2 MB, free: 3.773 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.308e-05/0.09413, allocations: 8 kB / 368.3 MB, free: 3.766 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.0001543/0.09429, allocations: 179.5 kB / 368.4 MB, free: 3.578 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.864e-05/0.09433, allocations: 35.5 kB / 368.5 MB, free: 3.543 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 6.276e-05/0.0944, allocations: 34.97 kB / 368.5 MB, free: 3.5 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.084e-06/0.09441, allocations: 4 kB / 368.5 MB, free: 3.496 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.32e-06/0.09442, allocations: 4 kB / 368.5 MB, free: 3.492 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.196e-06/0.09443, allocations: 0 / 368.5 MB, free: 3.492 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002532/0.09468, allocations: 309.4 kB / 368.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.533e-06/0.09469, allocations: 0 / 368.8 MB, free: 3.141 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.65e-05/0.09473, allocations: 11.94 kB / 368.8 MB, free: 3.129 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.53e-06/0.09475, allocations: 11.94 kB / 368.8 MB, free: 3.117 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.127e-05/0.09476, allocations: 3.984 kB / 368.8 MB, free: 3.113 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.783e-06/0.09477, allocations: 0 / 368.8 MB, free: 3.113 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.92e-07/0.09477, allocations: 0 / 368.8 MB, free: 3.113 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002937/0.09507, allocations: 200.6 kB / 369 MB, free: 2.898 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.077e-05/0.09515, allocations: 120.6 kB / 369.2 MB, free: 2.762 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.533e-05/0.09519, allocations: 4 kB / 369.2 MB, free: 2.758 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 8.569e-05/0.09528, allocations: 16 kB / 369.2 MB, free: 2.742 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 4.876e-05/0.09534, allocations: 15.97 kB / 369.2 MB, free: 2.727 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.458e-05/0.09536, allocations: 4 kB / 369.2 MB, free: 2.723 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0003209/0.09569, allocations: 335.1 kB / 369.5 MB, free: 2.395 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.09569, allocations: 0 / 369.5 MB, free: 2.395 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002599/0.09596, allocations: 51.92 kB / 369.6 MB, free: 2.344 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.001284/0.09725, allocations: 1.063 MB / 370.6 MB, free: 1.395 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002576/0.09752, allocations: 119.9 kB / 370.7 MB, free: 1.277 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.034e-06/0.09753, allocations: 0 / 370.7 MB, free: 1.277 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001175/0.09765, allocations: 59.92 kB / 370.8 MB, free: 1.219 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003907/0.09805, allocations: 77.3 kB / 370.9 MB, free: 1.152 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.1396/0.2376, allocations: 2.944 MB / 373.8 MB, free: 17.42 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001994/0.2379, allocations: 0.7808 MB / 374.6 MB, free: 16.72 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001571/0.238, allocations: 49 kB / 374.7 MB, free: 16.72 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001191/0.2381, allocations: 96.53 kB / 374.7 MB, free: 16.71 MB / 302.1 MB Notification: Performance of SimCode: time 1.252e-06/0.2382, allocations: 0 / 374.7 MB, free: 16.71 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.01604/0.2542, allocations: 6.657 MB / 381.4 MB, free: 16.04 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001399/0.2544, allocations: 226.9 kB / 381.6 MB, free: 15.79 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.752/2.006, allocations: 0 / 381.6 MB, free: 15.79 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)