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.001265/0.001265, allocations: 105.2 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.001374/0.001374, 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.347/1.347, allocations: 227.4 MB / 246.8 MB, free: 10.52 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001155/0.001155, allocations: 59.41 kB / 307 MB, free: 0.5156 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09028/0.09144, allocations: 50.52 MB / 357.6 MB, free: 13.99 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003786/0.09526, allocations: 1.842 MB / 359.4 MB, free: 12.13 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.002185/0.09747, allocations: 1.185 MB / 360.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.000147/0.09764, allocations: 0 / 360.6 MB, free: 10.94 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006163/0.0983, allocations: 167.5 kB / 360.8 MB, free: 10.78 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004419/0.09875, allocations: 167.3 kB / 360.9 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004506/0.09921, allocations: 147.2 kB / 361.1 MB, free: 10.47 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0003144/0.09954, allocations: 215.4 kB / 361.3 MB, free: 10.26 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001237/0.09967, allocations: 25.53 kB / 361.3 MB, free: 10.24 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001542/0.09983, allocations: 91.62 kB / 361.4 MB, free: 10.15 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001576/0.1, allocations: 83.62 kB / 361.5 MB, free: 10.07 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 3.601e-05/0.1, allocations: 12 kB / 361.5 MB, free: 10.05 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.000165/0.1002, allocations: 59.89 kB / 361.5 MB, free: 9.996 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 7.979e-05/0.1003, allocations: 43.84 kB / 361.6 MB, free: 9.953 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001089/0.1004, allocations: 75.55 kB / 361.7 MB, free: 9.879 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003669/0.1008, allocations: 223.6 kB / 361.9 MB, free: 9.66 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.662e-06/0.1008, allocations: 4 kB / 361.9 MB, free: 9.656 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.272e-06/0.1008, allocations: 3.938 kB / 361.9 MB, free: 9.652 MB / 302.1 MB Notification: Performance of Transformations before backend: time 7.935e-06/0.1008, allocations: 0 / 361.9 MB, free: 9.652 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.0008847/0.1017, allocations: 0.5274 MB / 362.4 MB, free: 9.07 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.112e-05/0.1018, allocations: 8.031 kB / 362.4 MB, free: 9.062 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.981e-05/0.1018, allocations: 38.75 kB / 362.5 MB, free: 9.016 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.942e-05/0.1019, allocations: 20.66 kB / 362.5 MB, free: 8.996 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003217/0.1022, allocations: 262.9 kB / 362.7 MB, free: 8.695 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.534e-05/0.1022, allocations: 4.375 kB / 362.7 MB, free: 8.691 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.059e-05/0.1023, allocations: 19.86 kB / 362.8 MB, free: 8.672 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002304/0.1025, allocations: 121.9 kB / 362.9 MB, free: 8.531 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.097e-06/0.1025, allocations: 0 / 362.9 MB, free: 8.531 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.364e-05/0.1025, allocations: 0 / 362.9 MB, free: 8.531 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.518e-06/0.1025, allocations: 0 / 362.9 MB, free: 8.531 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001494/0.1027, allocations: 51.91 kB / 362.9 MB, free: 8.48 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006706/0.1034, allocations: 0.6182 MB / 363.5 MB, free: 7.801 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002457/0.1036, allocations: 119.9 kB / 363.7 MB, free: 7.656 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.97e-05/0.1037, allocations: 50.56 kB / 363.7 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.27e-05/0.1038, allocations: 0 / 363.7 MB, free: 7.598 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.00022/0.104, allocations: 129.9 kB / 363.8 MB, free: 7.449 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.303e-06/0.104, allocations: 0 / 363.8 MB, free: 7.449 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004347/0.1045, allocations: 169.3 kB / 364 MB, free: 7.277 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.684e-05/0.1045, allocations: 136.5 kB / 364.1 MB, free: 7.113 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000293/0.1048, allocations: 304.8 kB / 364.4 MB, free: 6.809 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.112e-05/0.1049, allocations: 29.7 kB / 364.5 MB, free: 6.773 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.15e-05/0.105, allocations: 128.5 kB / 364.6 MB, free: 6.645 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.218e-05/0.105, allocations: 31.7 kB / 364.6 MB, free: 6.613 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.522e-05/0.1051, allocations: 29.72 kB / 364.6 MB, free: 6.578 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001263/0.1052, allocations: 334.8 kB / 365 MB, free: 6.242 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.486e-05/0.1053, allocations: 32.48 kB / 365 MB, free: 6.211 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001248/0.1054, allocations: 84.52 kB / 365.1 MB, free: 6.109 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001733/0.1056, allocations: 96.22 kB / 365.2 MB, free: 6 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.913e-06/0.1056, allocations: 0 / 365.2 MB, free: 6 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0003089/0.1059, allocations: 149.3 kB / 365.3 MB, free: 5.848 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 2.061e-05/0.106, allocations: 8 kB / 365.3 MB, free: 5.84 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.542e-06/0.106, allocations: 0 / 365.3 MB, free: 5.84 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.725e-05/0.106, allocations: 4 kB / 365.3 MB, free: 5.836 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.589e-05/0.1061, allocations: 19.92 kB / 365.4 MB, free: 5.816 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.886e-06/0.1061, allocations: 7.922 kB / 365.4 MB, free: 5.809 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001089/0.1062, allocations: 23.83 kB / 365.4 MB, free: 5.785 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.033e-05/0.1062, allocations: 4 kB / 365.4 MB, free: 5.781 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.0001368/0.1064, allocations: 157.7 kB / 365.6 MB, free: 5.617 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.65e-05/0.1064, allocations: 15.81 kB / 365.6 MB, free: 5.602 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.481e-05/0.1065, allocations: 25.7 kB / 365.6 MB, free: 5.578 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.378e-06/0.1065, allocations: 4 kB / 365.6 MB, free: 5.574 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.719e-06/0.1065, allocations: 0 / 365.6 MB, free: 5.574 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.021e-06/0.1065, allocations: 3.938 kB / 365.6 MB, free: 5.57 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002282/0.1067, allocations: 245.5 kB / 365.8 MB, free: 5.281 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 4.018e-06/0.1068, allocations: 4.125 kB / 365.8 MB, free: 5.277 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.84e-05/0.1068, allocations: 7.938 kB / 365.9 MB, free: 5.27 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.294e-06/0.1068, allocations: 4 kB / 365.9 MB, free: 5.266 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.054e-05/0.1068, allocations: 4 kB / 365.9 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.1068, allocations: 4 kB / 365.9 MB, free: 5.258 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.302e-06/0.1068, allocations: 0 / 365.9 MB, free: 5.258 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003212/0.1072, allocations: 182.4 kB / 366 MB, free: 5.055 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 7.962e-05/0.1072, allocations: 104.8 kB / 366.1 MB, free: 4.934 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.285e-05/0.1073, allocations: 0 / 366.1 MB, free: 4.934 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.958e-05/0.1074, allocations: 19.98 kB / 366.2 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.644e-05/0.1075, allocations: 15.86 kB / 366.2 MB, free: 4.898 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.67e-05/0.1075, allocations: 8 kB / 366.2 MB, free: 4.891 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002083/0.1077, allocations: 220.4 kB / 366.4 MB, free: 4.672 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.2e-07/0.1077, allocations: 4 kB / 366.4 MB, free: 4.668 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002647/0.108, allocations: 32 kB / 366.4 MB, free: 4.637 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.001377/0.1094, allocations: 1.021 MB / 367.5 MB, free: 3.719 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002705/0.1096, allocations: 95.89 kB / 367.6 MB, free: 3.625 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.314e-06/0.1097, allocations: 4.188 kB / 367.6 MB, free: 3.621 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001811/0.1098, allocations: 51.92 kB / 367.6 MB, free: 3.57 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003599/0.1102, allocations: 52.94 kB / 367.7 MB, free: 3.523 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0025/0.1127, allocations: 2.18 MB / 369.8 MB, free: 1.223 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002955/0.113, allocations: 0.7397 MB / 370.6 MB, free: 468 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 9.609e-05/0.1131, allocations: 25.47 kB / 370.6 MB, free: 440 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.763e-05/0.1132, allocations: 59.41 kB / 370.7 MB, free: 384 kB / 302.1 MB Notification: Performance of SimCode: time 2.51e-07/0.1132, allocations: 4 kB / 370.7 MB, free: 380 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.1703/0.2835, allocations: 5.101 MB / 375.8 MB, free: 19.61 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.493/7.776, allocations: 9.859 kB / 375.8 MB, free: 19.61 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)