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.0007848/0.0007848, allocations: 90.75 kB / 17.35 MB, free: 6.375 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.0009282/0.0009282, allocations: 197.5 kB / 18.28 MB, free: 5.5 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.227/1.227, allocations: 227.7 MB / 246.8 MB, free: 11.39 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.000195/0.000195, allocations: 4 kB / 307.8 MB, free: 0.7344 MB / 238.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.07857/0.07878, allocations: 51.53 MB / 359.4 MB, free: 13.21 MB / 302.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.001925/0.08074, allocations: 1.556 MB / 360.9 MB, free: 11.64 MB / 302.1 MB Notification: Performance of NFInst.instExpressions: time 0.001706/0.08247, allocations: 1.138 MB / 362.1 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.979e-05/0.08258, allocations: 4 kB / 362.1 MB, free: 10.49 MB / 302.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005214/0.08311, allocations: 159.6 kB / 362.2 MB, free: 10.33 MB / 302.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003499/0.08347, allocations: 139.5 kB / 362.3 MB, free: 10.2 MB / 302.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003461/0.08383, allocations: 119.8 kB / 362.5 MB, free: 10.08 MB / 302.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002456/0.08409, allocations: 215.3 kB / 362.7 MB, free: 9.867 MB / 302.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001021/0.0842, allocations: 25.53 kB / 362.7 MB, free: 9.844 MB / 302.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001247/0.08433, allocations: 71.64 kB / 362.8 MB, free: 9.773 MB / 302.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001311/0.08447, allocations: 87.59 kB / 362.9 MB, free: 9.688 MB / 302.1 MB Notification: Performance of NFPackage.collectConstants: time 1.988e-05/0.0845, allocations: 8 kB / 362.9 MB, free: 9.68 MB / 302.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001226/0.08463, allocations: 51.92 kB / 362.9 MB, free: 9.629 MB / 302.1 MB Notification: Performance of NFScalarize.scalarize: time 6.518e-05/0.0847, allocations: 43.83 kB / 363 MB, free: 9.586 MB / 302.1 MB Notification: Performance of NFVerifyModel.verify: time 9.597e-05/0.0848, allocations: 97.23 kB / 363.1 MB, free: 9.484 MB / 302.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000248/0.08506, allocations: 211.5 kB / 363.3 MB, free: 9.277 MB / 302.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.025e-06/0.08507, allocations: 0 / 363.3 MB, free: 9.277 MB / 302.1 MB Notification: Performance of FrontEnd: time 1.663e-06/0.08508, allocations: 0 / 363.3 MB, free: 9.277 MB / 302.1 MB Notification: Performance of Transformations before backend: time 5.39e-06/0.08509, allocations: 0 / 363.3 MB, free: 9.277 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.0007552/0.08585, allocations: 0.5119 MB / 363.8 MB, free: 8.711 MB / 302.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.756e-05/0.08589, allocations: 8.031 kB / 363.8 MB, free: 8.703 MB / 302.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.151e-05/0.08594, allocations: 38.75 kB / 363.8 MB, free: 8.656 MB / 302.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.692e-05/0.08599, allocations: 20.66 kB / 363.8 MB, free: 8.637 MB / 302.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002804/0.08628, allocations: 258.9 kB / 364.1 MB, free: 8.34 MB / 302.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.386e-05/0.0863, allocations: 8.375 kB / 364.1 MB, free: 8.332 MB / 302.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.578e-05/0.08633, allocations: 7.938 kB / 364.1 MB, free: 8.324 MB / 302.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002098/0.08655, allocations: 129.2 kB / 364.2 MB, free: 8.18 MB / 302.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.146e-06/0.08656, allocations: 0 / 364.2 MB, free: 8.18 MB / 302.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.387e-05/0.08658, allocations: 7.938 kB / 364.2 MB, free: 8.172 MB / 302.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.883e-06/0.08659, allocations: 0 / 364.2 MB, free: 8.172 MB / 302.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.000137/0.08674, allocations: 51.91 kB / 364.3 MB, free: 8.121 MB / 302.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005969/0.08734, allocations: 0.6144 MB / 364.9 MB, free: 7.445 MB / 302.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002434/0.0876, allocations: 123.9 kB / 365 MB, free: 7.297 MB / 302.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.925e-05/0.08771, allocations: 58.55 kB / 365.1 MB, free: 7.23 MB / 302.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.466e-05/0.08774, allocations: 3.984 kB / 365.1 MB, free: 7.227 MB / 302.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002087/0.08796, allocations: 125.8 kB / 365.2 MB, free: 7.082 MB / 302.1 MB Notification: Performance of pre-optimization done (n=12): time 1.583e-06/0.08797, allocations: 0 / 365.2 MB, free: 7.082 MB / 302.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004299/0.0884, allocations: 173.4 kB / 365.4 MB, free: 6.906 MB / 302.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 6.661e-05/0.08848, allocations: 132.6 kB / 365.5 MB, free: 6.746 MB / 302.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003025/0.08879, allocations: 304.8 kB / 365.8 MB, free: 6.441 MB / 302.1 MB Notification: Performance of collectPreVariables (initialization): time 2.005e-05/0.08882, allocations: 29.7 kB / 365.8 MB, free: 6.406 MB / 302.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.724e-05/0.0889, allocations: 128.4 kB / 366 MB, free: 6.277 MB / 302.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.129e-05/0.08894, allocations: 27.64 kB / 366 MB, free: 6.25 MB / 302.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 3.853e-05/0.08898, allocations: 17.72 kB / 366 MB, free: 6.227 MB / 302.1 MB Notification: Performance of setup shared object (initialization): time 0.0001174/0.0891, allocations: 334.8 kB / 366.3 MB, free: 5.891 MB / 302.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.872e-05/0.0892, allocations: 35.92 kB / 366.4 MB, free: 5.855 MB / 302.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001187/0.08933, allocations: 85.98 kB / 366.4 MB, free: 5.75 MB / 302.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001675/0.08951, allocations: 96.75 kB / 366.5 MB, free: 5.641 MB / 302.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.064e-06/0.08952, allocations: 0 / 366.5 MB, free: 5.641 MB / 302.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002644/0.08979, allocations: 153.2 kB / 366.7 MB, free: 5.484 MB / 302.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.253e-05/0.08981, allocations: 4 kB / 366.7 MB, free: 5.48 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.931e-06/0.08982, allocations: 4 kB / 366.7 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.081e-05/0.08983, allocations: 0 / 366.7 MB, free: 5.477 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.657e-05/0.08991, allocations: 15.98 kB / 366.7 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.601e-06/0.08993, allocations: 96 / 366.7 MB, free: 5.461 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001081/0.09005, allocations: 27.83 kB / 366.7 MB, free: 5.434 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.155e-05/0.09007, allocations: 11.94 kB / 366.8 MB, free: 5.422 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.0001234/0.09019, allocations: 153.6 kB / 366.9 MB, free: 5.262 MB / 302.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 2.885e-05/0.09023, allocations: 15.81 kB / 366.9 MB, free: 5.246 MB / 302.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.004e-05/0.09028, allocations: 29.7 kB / 367 MB, free: 5.219 MB / 302.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.375e-06/0.09029, allocations: 0 / 367 MB, free: 5.219 MB / 302.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.399e-06/0.0903, allocations: 4 kB / 367 MB, free: 5.215 MB / 302.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.09031, allocations: 7.938 kB / 367 MB, free: 5.207 MB / 302.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002056/0.09052, allocations: 245.5 kB / 367.2 MB, free: 4.918 MB / 302.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.146e-06/0.09054, allocations: 4 kB / 367.2 MB, free: 4.914 MB / 302.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.606e-05/0.09057, allocations: 4 kB / 367.2 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.545e-06/0.09057, allocations: 0 / 367.2 MB, free: 4.91 MB / 302.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.142e-05/0.09059, allocations: 4 kB / 367.2 MB, free: 4.906 MB / 302.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.336e-06/0.0906, allocations: 3.938 kB / 367.2 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.102e-06/0.0906, allocations: 0 / 367.2 MB, free: 4.902 MB / 302.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002853/0.09089, allocations: 182.5 kB / 367.4 MB, free: 4.699 MB / 302.1 MB Notification: Performance of postOpt removeConstants (simulation): time 6.655e-05/0.09097, allocations: 100.8 kB / 367.5 MB, free: 4.582 MB / 302.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.012e-05/0.09101, allocations: 8.047 kB / 367.5 MB, free: 4.574 MB / 302.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001016/0.09111, allocations: 20 kB / 367.5 MB, free: 4.555 MB / 302.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.487e-05/0.09118, allocations: 23.89 kB / 367.5 MB, free: 4.531 MB / 302.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.652e-05/0.0912, allocations: 8 kB / 367.6 MB, free: 4.523 MB / 302.1 MB Notification: Performance of sorting global known variables: time 0.0002074/0.09141, allocations: 216.5 kB / 367.8 MB, free: 4.309 MB / 302.1 MB Notification: Performance of sort global known variables: time 1.8e-07/0.09142, allocations: 3.938 kB / 367.8 MB, free: 4.305 MB / 302.1 MB Notification: Performance of remove unused functions: time 0.0002502/0.09168, allocations: 39.98 kB / 367.8 MB, free: 4.266 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.001295/0.09298, allocations: 1.015 MB / 368.8 MB, free: 3.352 MB / 302.1 MB Notification: Performance of simCode: created initialization part: time 0.0002396/0.09323, allocations: 99.83 kB / 368.9 MB, free: 3.254 MB / 302.1 MB Notification: Performance of simCode: created event and clocks part: time 1.924e-06/0.09324, allocations: 0 / 368.9 MB, free: 3.254 MB / 302.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001211/0.09337, allocations: 56.11 kB / 369 MB, free: 3.199 MB / 302.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003367/0.09372, allocations: 52.23 kB / 369 MB, free: 3.152 MB / 302.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002445/0.09618, allocations: 2.214 MB / 371.2 MB, free: 0.8203 MB / 302.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0002981/0.09649, allocations: 0.7361 MB / 372 MB, free: 60 kB / 302.1 MB Notification: Performance of simCode: alias equations: time 8.552e-05/0.09658, allocations: 21.53 kB / 372 MB, free: 36 kB / 302.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.1347/0.2313, allocations: 61.12 kB / 372.1 MB, free: 18.27 MB / 302.1 MB Notification: Performance of SimCode: time 9.12e-07/0.2313, allocations: 0 / 372.1 MB, free: 18.27 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0148/0.2461, allocations: 4.61 MB / 376.7 MB, free: 18.01 MB / 302.1 MB Notification: Performance of buildModelFMU: configured platform static using cached values: time 0.0001427/0.2463, allocations: 234.2 kB / 376.9 MB, free: 17.76 MB / 302.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 1.711/1.958, allocations: 0 / 376.9 MB, free: 17.76 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)