Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.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.ShowLogicalSources,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="me",version="2.0",platforms={"static"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001101/0.001101, allocations: 108.7 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.001209/0.001208, 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.339/1.339, allocations: 227.4 MB / 246.3 MB, free: 9.035 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.00112/0.00112, allocations: 67 kB / 306.3 MB, free: 0.7031 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1006/0.1017, allocations: 50.53 MB / 356.9 MB, free: 14.18 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003216/0.105, allocations: 1.906 MB / 358.8 MB, free: 12.25 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001906/0.1069, allocations: 1.169 MB / 359.9 MB, free: 11.08 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001406/0.1071, allocations: 4 kB / 360 MB, free: 11.07 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006757/0.1078, allocations: 151.6 kB / 360.1 MB, free: 10.93 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004347/0.1082, allocations: 151.1 kB / 360.2 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004419/0.1087, allocations: 123.8 kB / 360.4 MB, free: 10.66 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002997/0.109, allocations: 211.4 kB / 360.6 MB, free: 10.45 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001101/0.1091, allocations: 21.55 kB / 360.6 MB, free: 10.43 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000152/0.1093, allocations: 79.56 kB / 360.7 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001587/0.1094, allocations: 83.67 kB / 360.8 MB, free: 10.27 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.239e-05/0.1095, allocations: 11.98 kB / 360.8 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001593/0.1096, allocations: 47.92 kB / 360.8 MB, free: 10.21 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.971e-05/0.1097, allocations: 43.83 kB / 360.9 MB, free: 10.17 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001003/0.1098, allocations: 75.53 kB / 360.9 MB, free: 10.1 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003061/0.1102, allocations: 211.5 kB / 361.1 MB, free: 9.891 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.216e-06/0.1102, allocations: 0 / 361.1 MB, free: 9.891 MB / 302.1 MB Notification: Performance of FrontEnd: time 6.41e-07/0.1102, allocations: 0 / 361.1 MB, free: 9.891 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.891e-06/0.1102, allocations: 0 / 361.1 MB, free: 9.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: 13 * Number of variables: 13 Notification: Performance of Generate backend data structure: time 0.000908/0.1111, allocations: 0.5373 MB / 361.7 MB, free: 9.301 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.099e-05/0.1111, allocations: 12.03 kB / 361.7 MB, free: 9.289 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.302e-05/0.1112, allocations: 34.73 kB / 361.7 MB, free: 9.246 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.878e-05/0.1113, allocations: 28.59 kB / 361.7 MB, free: 9.219 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000312/0.1116, allocations: 258.9 kB / 362 MB, free: 8.922 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.464e-05/0.1116, allocations: 4.375 kB / 362 MB, free: 8.918 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.094e-05/0.1116, allocations: 11.94 kB / 362 MB, free: 8.906 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002343/0.1119, allocations: 117.9 kB / 362.1 MB, free: 8.77 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.377e-06/0.1119, allocations: 0 / 362.1 MB, free: 8.77 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.644e-05/0.1119, allocations: 11.97 kB / 362.1 MB, free: 8.758 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.37e-06/0.1119, allocations: 0 / 362.1 MB, free: 8.758 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001493/0.1121, allocations: 51.92 kB / 362.2 MB, free: 8.707 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006844/0.1128, allocations: 0.6104 MB / 362.8 MB, free: 8.035 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000274/0.113, allocations: 131.9 kB / 362.9 MB, free: 7.879 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001071/0.1132, allocations: 46.56 kB / 363 MB, free: 7.824 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.929e-05/0.1132, allocations: 4 kB / 363 MB, free: 7.82 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002332/0.1134, allocations: 121.9 kB / 363.1 MB, free: 7.68 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.473e-06/0.1135, allocations: 0 / 363.1 MB, free: 7.68 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004899/0.114, allocations: 177.5 kB / 363.3 MB, free: 7.5 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.015e-05/0.114, allocations: 132.5 kB / 363.4 MB, free: 7.34 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003189/0.1144, allocations: 296.9 kB / 363.7 MB, free: 7.043 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.031e-05/0.1144, allocations: 25.7 kB / 363.7 MB, free: 7.012 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.277e-05/0.1145, allocations: 132.3 kB / 363.9 MB, free: 6.879 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.463e-05/0.1145, allocations: 27.84 kB / 363.9 MB, free: 6.852 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.626e-05/0.1146, allocations: 37.7 kB / 363.9 MB, free: 6.809 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001307/0.1147, allocations: 334.8 kB / 364.2 MB, free: 6.473 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001049/0.1149, allocations: 31.92 kB / 364.3 MB, free: 6.441 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001246/0.115, allocations: 83.95 kB / 364.4 MB, free: 6.34 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.000194/0.1152, allocations: 100.2 kB / 364.5 MB, free: 6.227 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.084e-06/0.1152, allocations: 0 / 364.5 MB, free: 6.227 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002751/0.1155, allocations: 141.3 kB / 364.6 MB, free: 6.082 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.435e-05/0.1155, allocations: 8.094 kB / 364.6 MB, free: 6.074 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.29e-06/0.1155, allocations: 4 kB / 364.6 MB, free: 6.07 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.529e-05/0.1155, allocations: 3.984 kB / 364.6 MB, free: 6.066 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.712e-05/0.1156, allocations: 12 kB / 364.6 MB, free: 6.055 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.897e-06/0.1157, allocations: 4 kB / 364.6 MB, free: 6.051 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001152/0.1158, allocations: 23.83 kB / 364.6 MB, free: 6.027 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.066e-05/0.1158, allocations: 4 kB / 364.6 MB, free: 6.023 MB / 302.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 5 * Number of states: 0 () * Number of discrete variables: 13 ($PRE.table.combiTimeTable.nextTimeEvent,$whenCondition2,table.combiTimeTable.nextTimeEventScaled,$PRE.table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent,table.y,$whenCondition1,booleanExpression.y,pulse.pulseStart,$PRE.pulse.pulseStart,pulse.y,step.y,sample.y) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (15): * Single equations (assignments): 15 * 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.0001406/0.1159, allocations: 162 kB / 364.8 MB, free: 5.855 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.324e-05/0.116, allocations: 23.81 kB / 364.8 MB, free: 5.832 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.568e-05/0.1161, allocations: 25.7 kB / 364.9 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.585e-06/0.1161, allocations: 0 / 364.9 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.821e-06/0.1161, allocations: 4 kB / 364.9 MB, free: 5.805 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.13e-06/0.1161, allocations: 3.938 kB / 364.9 MB, free: 5.801 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002304/0.1163, allocations: 245.5 kB / 365.1 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.603e-06/0.1163, allocations: 0 / 365.1 MB, free: 5.512 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.976e-05/0.1164, allocations: 7.984 kB / 365.1 MB, free: 5.504 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.009e-06/0.1164, allocations: 4 kB / 365.1 MB, free: 5.5 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.386e-05/0.1164, allocations: 4 kB / 365.1 MB, free: 5.496 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.104e-06/0.1164, allocations: 0 / 365.1 MB, free: 5.496 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.867e-06/0.1164, allocations: 11.94 kB / 365.1 MB, free: 5.484 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003076/0.1167, allocations: 174.5 kB / 365.3 MB, free: 5.289 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6e-05/0.1168, allocations: 96.81 kB / 365.4 MB, free: 5.176 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.476e-05/0.1168, allocations: 4 kB / 365.4 MB, free: 5.172 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001049/0.1169, allocations: 19.98 kB / 365.4 MB, free: 5.152 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 7.14e-05/0.117, allocations: 11.92 kB / 365.4 MB, free: 5.141 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.836e-05/0.117, allocations: 8 kB / 365.4 MB, free: 5.133 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002221/0.1173, allocations: 216.5 kB / 365.6 MB, free: 4.918 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.6e-07/0.1173, allocations: 0 / 365.6 MB, free: 4.918 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0003372/0.1176, allocations: 39.98 kB / 365.7 MB, free: 4.879 MB / 302.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 3 * Number of states: 0 () * Number of discrete variables: 10 ($whenCondition2,table.y,table.combiTimeTable.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled,$whenCondition1,step.y,pulse.y,pulse.pulseStart,booleanExpression.y,sample.y) * Number of discrete states: 2 (table.combiTimeTable.nextTimeEventScaled,table.combiTimeTable.nextTimeEvent) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (12): * Single equations (assignments): 9 * Array equations: 0 * Algorithm blocks: 0 * Record equations: 0 * When equations: 3 * 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.001548/0.1192, allocations: 1.026 MB / 366.7 MB, free: 3.957 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002652/0.1195, allocations: 91.84 kB / 366.8 MB, free: 3.867 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.645e-06/0.1195, allocations: 0 / 366.8 MB, free: 3.867 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001326/0.1196, allocations: 56.09 kB / 366.9 MB, free: 3.812 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003546/0.12, allocations: 53.06 kB / 366.9 MB, free: 3.766 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002894/0.1229, allocations: 2.209 MB / 369.1 MB, free: 1.441 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003381/0.1232, allocations: 0.736 MB / 369.9 MB, free: 0.6797 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001178/0.1234, allocations: 29.52 kB / 369.9 MB, free: 0.6484 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.928e-05/0.1235, allocations: 55.42 kB / 369.9 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of SimCode: time 5.61e-07/0.1235, allocations: 0 / 369.9 MB, free: 0.5977 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1685/0.292, allocations: 4.802 MB / 374.7 MB, free: 18.74 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.000145/0.2922, allocations: 232 kB / 375 MB, free: 18.49 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.783/2.075, allocations: 0 / 375 MB, free: 18.49 MB / 302.1 MB (rm -f Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_trunk_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1)