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.001261/0.001261, allocations: 108 kB / 17.33 MB, free: 5.992 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001417/0.001417, allocations: 209.8 kB / 18.27 MB, free: 5.07 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.335/1.335, allocations: 227.4 MB / 246.4 MB, free: 9.062 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001735/0.001735, allocations: 54.47 kB / 306.5 MB, free: 0.6562 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09736/0.09911, allocations: 50.52 MB / 357.1 MB, free: 14.13 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003126/0.1023, allocations: 1.909 MB / 359 MB, free: 12.2 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001916/0.1042, allocations: 1.154 MB / 360.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001119/0.1044, allocations: 0 / 360.1 MB, free: 11.04 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005974/0.105, allocations: 167.6 kB / 360.3 MB, free: 10.88 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003904/0.1054, allocations: 147.5 kB / 360.4 MB, free: 10.73 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.000352/0.1057, allocations: 127.8 kB / 360.6 MB, free: 10.61 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002526/0.106, allocations: 223.3 kB / 360.8 MB, free: 10.39 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.854e-05/0.1061, allocations: 29.52 kB / 360.8 MB, free: 10.36 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001365/0.1062, allocations: 83.62 kB / 360.9 MB, free: 10.28 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001262/0.1064, allocations: 91.61 kB / 361 MB, free: 10.19 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 2.635e-05/0.1064, allocations: 12 kB / 361 MB, free: 10.18 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001257/0.1065, allocations: 51.97 kB / 361 MB, free: 10.13 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.947e-05/0.1066, allocations: 47.78 kB / 361.1 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 8.959e-05/0.1067, allocations: 83.52 kB / 361.2 MB, free: 10 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0002846/0.107, allocations: 227.6 kB / 361.4 MB, free: 9.777 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.387e-06/0.107, allocations: 0 / 361.4 MB, free: 9.777 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.062e-06/0.107, allocations: 0 / 361.4 MB, free: 9.777 MB / 302.1 MB Notification: Performance of Transformations before backend: time 8.486e-06/0.107, allocations: 0 / 361.4 MB, free: 9.777 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.0007972/0.1078, allocations: 0.5235 MB / 361.9 MB, free: 9.199 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.553e-05/0.1079, allocations: 8.031 kB / 361.9 MB, free: 9.191 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.435e-05/0.1079, allocations: 46.67 kB / 362 MB, free: 9.137 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.542e-05/0.108, allocations: 24.66 kB / 362 MB, free: 9.113 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002893/0.1083, allocations: 258.8 kB / 362.2 MB, free: 8.816 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.722e-05/0.1083, allocations: 16.3 kB / 362.3 MB, free: 8.801 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.969e-05/0.1083, allocations: 7.938 kB / 362.3 MB, free: 8.793 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002243/0.1086, allocations: 121.5 kB / 362.4 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.007e-06/0.1086, allocations: 4 kB / 362.4 MB, free: 8.652 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.313e-05/0.1086, allocations: 4 kB / 362.4 MB, free: 8.648 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.823e-06/0.1086, allocations: 7.984 kB / 362.4 MB, free: 8.641 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001377/0.1088, allocations: 43.92 kB / 362.4 MB, free: 8.598 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006087/0.1094, allocations: 0.6104 MB / 363.1 MB, free: 7.926 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002491/0.1096, allocations: 127.8 kB / 363.2 MB, free: 7.773 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.556e-05/0.1097, allocations: 46.56 kB / 363.2 MB, free: 7.719 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.213e-05/0.1098, allocations: 8 kB / 363.2 MB, free: 7.711 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002045/0.11, allocations: 117.9 kB / 363.3 MB, free: 7.574 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.492e-06/0.11, allocations: 0 / 363.3 MB, free: 7.574 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004398/0.1104, allocations: 173.3 kB / 363.5 MB, free: 7.398 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.507e-05/0.1105, allocations: 140.5 kB / 363.7 MB, free: 7.23 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002802/0.1108, allocations: 296.9 kB / 363.9 MB, free: 6.934 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.02e-05/0.1108, allocations: 29.7 kB / 364 MB, free: 6.898 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.866e-05/0.1109, allocations: 132.4 kB / 364.1 MB, free: 6.766 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 2.974e-05/0.111, allocations: 23.66 kB / 364.1 MB, free: 6.742 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.049e-05/0.111, allocations: 33.7 kB / 364.2 MB, free: 6.703 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001147/0.1111, allocations: 338.9 kB / 364.5 MB, free: 6.363 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.846e-05/0.1112, allocations: 31.98 kB / 364.5 MB, free: 6.332 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001111/0.1114, allocations: 77.94 kB / 364.6 MB, free: 6.234 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001726/0.1115, allocations: 100.2 kB / 364.7 MB, free: 6.121 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.964e-06/0.1115, allocations: 0 / 364.7 MB, free: 6.121 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002732/0.1118, allocations: 145.9 kB / 364.8 MB, free: 5.973 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.747e-05/0.1119, allocations: 6.5 kB / 364.8 MB, free: 5.969 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.902e-06/0.1119, allocations: 3.938 kB / 364.8 MB, free: 5.965 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.991e-05/0.1119, allocations: 7.938 kB / 364.9 MB, free: 5.957 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.427e-05/0.112, allocations: 16.08 kB / 364.9 MB, free: 5.941 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.595e-06/0.112, allocations: 7.984 kB / 364.9 MB, free: 5.934 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.000115/0.1121, allocations: 23.83 kB / 364.9 MB, free: 5.91 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.172e-05/0.1121, allocations: 4 kB / 364.9 MB, free: 5.906 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.0001229/0.1123, allocations: 153.6 kB / 365.1 MB, free: 5.746 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.471e-05/0.1123, allocations: 15.81 kB / 365.1 MB, free: 5.73 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.362e-05/0.1124, allocations: 25.7 kB / 365.1 MB, free: 5.707 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.888e-06/0.1124, allocations: 7.984 kB / 365.1 MB, free: 5.699 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.538e-06/0.1124, allocations: 4 kB / 365.1 MB, free: 5.695 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.969e-06/0.1124, allocations: 3.938 kB / 365.1 MB, free: 5.691 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002177/0.1126, allocations: 249.5 kB / 365.4 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.054e-06/0.1126, allocations: 0 / 365.4 MB, free: 5.398 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.04e-05/0.1127, allocations: 11.98 kB / 365.4 MB, free: 5.387 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.585e-06/0.1127, allocations: 3.938 kB / 365.4 MB, free: 5.383 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.32e-05/0.1127, allocations: 4 kB / 365.4 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.553e-06/0.1127, allocations: 0 / 365.4 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.222e-06/0.1127, allocations: 0 / 365.4 MB, free: 5.379 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003003/0.113, allocations: 182.4 kB / 365.6 MB, free: 5.176 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 5.715e-05/0.1131, allocations: 100.8 kB / 365.7 MB, free: 5.059 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.401e-05/0.1131, allocations: 3.984 kB / 365.7 MB, free: 5.055 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001009/0.1132, allocations: 11.98 kB / 365.7 MB, free: 5.043 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.793e-05/0.1133, allocations: 19.92 kB / 365.7 MB, free: 5.023 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.609e-05/0.1133, allocations: 8.062 kB / 365.7 MB, free: 5.016 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002114/0.1135, allocations: 220.5 kB / 365.9 MB, free: 4.797 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.81e-07/0.1135, allocations: 0 / 365.9 MB, free: 4.797 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002652/0.1138, allocations: 35.98 kB / 365.9 MB, free: 4.762 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.001459/0.1153, allocations: 1.014 MB / 367 MB, free: 3.852 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002785/0.1156, allocations: 99.83 kB / 367.1 MB, free: 3.754 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 2.355e-06/0.1156, allocations: 4 kB / 367.1 MB, free: 3.75 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001418/0.1157, allocations: 48.3 kB / 367.1 MB, free: 3.703 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000355/0.1161, allocations: 62.06 kB / 367.2 MB, free: 3.648 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.00263/0.1187, allocations: 2.214 MB / 369.4 MB, free: 1.316 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002881/0.119, allocations: 0.7319 MB / 370.1 MB, free: 0.5586 MB / 302.1 MB Notification: Performance of simCode: alias equations: time 0.0001128/0.1192, allocations: 33.5 kB / 370.1 MB, free: 0.5234 MB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.42e-05/0.1193, allocations: 55.42 kB / 370.2 MB, free: 484 kB / 302.1 MB Notification: Performance of SimCode: time 2.5e-07/0.1193, allocations: 0 / 370.2 MB, free: 484 kB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.174/0.2932, allocations: 4.918 MB / 375.1 MB, free: 20.29 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001948/0.2935, allocations: 231.1 kB / 375.3 MB, free: 20.04 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 2.043/2.336, allocations: 3.5 kB / 375.3 MB, free: 20.04 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)