Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo): time 0.00119/0.00119, allocations: 112.2 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo): time 0.001286/0.001286, allocations: 212.2 kB / 24.52 MB, free: 4.074 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo): time 1.335/1.335, allocations: 230.6 MB / 258.3 MB, free: 8.008 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.1.0+maint.om/package.mo) Using package Complex with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.1.0+maint.om/package.mo) Using package ModelicaServices with version 4.1.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.1.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_1_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00147/0.00147, allocations: 47.92 kB / 378.6 MB, free: 3.152 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2421/0.2436, allocations: 53.35 MB / 431.9 MB, free: 6.871 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003349/0.247, allocations: 1.868 MB / 433.8 MB, free: 4.996 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001939/0.2489, allocations: 1.204 MB / 435 MB, free: 3.785 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.014e-05/0.249, allocations: 3.938 kB / 435 MB, free: 3.781 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0005827/0.2496, allocations: 182.3 kB / 435.2 MB, free: 3.605 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003716/0.2499, allocations: 163.4 kB / 435.3 MB, free: 3.445 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003509/0.2503, allocations: 147.4 kB / 435.5 MB, free: 3.301 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002723/0.2506, allocations: 223.4 kB / 435.7 MB, free: 3.082 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 9.665e-05/0.2507, allocations: 9.75 kB / 435.7 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001374/0.2508, allocations: 99.55 kB / 435.8 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001423/0.2509, allocations: 87.67 kB / 435.9 MB, free: 2.887 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.529e-05/0.251, allocations: 15.94 kB / 435.9 MB, free: 2.871 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001361/0.2511, allocations: 59.95 kB / 435.9 MB, free: 2.812 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.105e-05/0.2512, allocations: 47.83 kB / 436 MB, free: 2.766 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 9.022e-05/0.2513, allocations: 79.53 kB / 436.1 MB, free: 2.688 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003257/0.2516, allocations: 235.8 kB / 436.3 MB, free: 2.465 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.617e-06/0.2516, allocations: 0 / 436.3 MB, free: 2.465 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.282e-06/0.2516, allocations: 0 / 436.3 MB, free: 2.465 MB / 334.1 MB Notification: Performance of Transformations before backend: time 4.809e-06/0.2516, allocations: 4 kB / 436.3 MB, free: 2.461 MB / 334.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.0008474/0.2524, allocations: 466.7 kB / 436.8 MB, free: 1.969 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.835e-05/0.2525, allocations: 12.03 kB / 436.8 MB, free: 1.957 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.344e-05/0.2525, allocations: 4.188 kB / 436.8 MB, free: 1.953 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.891e-05/0.2525, allocations: 42.73 kB / 436.8 MB, free: 1.902 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.194e-05/0.2526, allocations: 20.8 kB / 436.8 MB, free: 1.883 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003037/0.2529, allocations: 209.1 kB / 437 MB, free: 1.652 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.499e-05/0.2529, allocations: 12.12 kB / 437.1 MB, free: 1.641 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.221e-05/0.2529, allocations: 8 kB / 437.1 MB, free: 1.633 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002311/0.2532, allocations: 109.9 kB / 437.2 MB, free: 1.504 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.504e-06/0.2532, allocations: 3.938 kB / 437.2 MB, free: 1.5 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.42e-05/0.2532, allocations: 4 kB / 437.2 MB, free: 1.496 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.432e-06/0.2532, allocations: 4 kB / 437.2 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001426/0.2533, allocations: 51.91 kB / 437.2 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006426/0.254, allocations: 0.5668 MB / 437.8 MB, free: 0.8203 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002674/0.2542, allocations: 135.8 kB / 437.9 MB, free: 0.6602 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 9.913e-05/0.2543, allocations: 46.55 kB / 438 MB, free: 0.6055 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.096e-05/0.2544, allocations: 7.922 kB / 438 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002172/0.2546, allocations: 121.9 kB / 438.1 MB, free: 468 kB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.162e-06/0.2546, allocations: 0 / 438.1 MB, free: 468 kB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004388/0.255, allocations: 177.4 kB / 438.3 MB, free: 284 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.621e-05/0.2551, allocations: 136.6 kB / 438.4 MB, free: 116 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000325/0.2554, allocations: 297 kB / 438.7 MB, free: 15.82 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.638e-05/0.2554, allocations: 33.7 kB / 438.7 MB, free: 15.78 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001005/0.2555, allocations: 128.3 kB / 438.9 MB, free: 15.65 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.408e-05/0.2556, allocations: 27.75 kB / 438.9 MB, free: 15.62 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 5.704e-05/0.2556, allocations: 33.7 kB / 438.9 MB, free: 15.58 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001484/0.2558, allocations: 334.8 kB / 439.2 MB, free: 15.25 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.785e-05/0.2559, allocations: 31.98 kB / 439.3 MB, free: 15.21 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001261/0.256, allocations: 84.8 kB / 439.4 MB, free: 15.11 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001772/0.2562, allocations: 96.75 kB / 439.5 MB, free: 15 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.753e-06/0.2562, allocations: 4 kB / 439.5 MB, free: 15 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002683/0.2564, allocations: 141.4 kB / 439.6 MB, free: 14.86 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.453e-05/0.2565, allocations: 8 kB / 439.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.017e-06/0.2565, allocations: 0 / 439.6 MB, free: 14.85 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.572e-05/0.2565, allocations: 7.984 kB / 439.6 MB, free: 14.84 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 7.919e-05/0.2566, allocations: 15.94 kB / 439.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.154e-06/0.2566, allocations: 3.938 kB / 439.6 MB, free: 14.82 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001062/0.2567, allocations: 23.97 kB / 439.7 MB, free: 14.8 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.343e-05/0.2567, allocations: 8 kB / 439.7 MB, free: 14.79 MB / 350.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.0001317/0.2568, allocations: 142.5 kB / 439.8 MB, free: 14.64 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.303e-05/0.2569, allocations: 15.91 kB / 439.8 MB, free: 14.62 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002264/0.2571, allocations: 115.3 kB / 439.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.328e-06/0.2571, allocations: 4 kB / 439.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.56e-06/0.2571, allocations: 3.938 kB / 439.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.018e-06/0.2571, allocations: 0 / 439.9 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0002248/0.2573, allocations: 224.6 kB / 440.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.243e-06/0.2573, allocations: 0 / 440.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 2.854e-05/0.2573, allocations: 7.984 kB / 440.2 MB, free: 14.23 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.767e-06/0.2574, allocations: 4 kB / 440.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.08e-05/0.2574, allocations: 4.125 kB / 440.2 MB, free: 14.22 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 8.176e-06/0.2574, allocations: 11.94 kB / 440.2 MB, free: 14.21 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.545e-06/0.2574, allocations: 3.938 kB / 440.2 MB, free: 14.2 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003059/0.2577, allocations: 174.7 kB / 440.4 MB, free: 14.01 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.799e-05/0.2577, allocations: 23.84 kB / 440.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.176e-05/0.2577, allocations: 3.984 kB / 440.4 MB, free: 13.98 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.754e-05/0.2578, allocations: 15.98 kB / 440.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.274e-05/0.2579, allocations: 15.86 kB / 440.4 MB, free: 13.95 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.716e-05/0.2579, allocations: 8 kB / 440.4 MB, free: 13.94 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002196/0.2581, allocations: 220.4 kB / 440.6 MB, free: 13.73 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.2581, allocations: 4 kB / 440.6 MB, free: 13.72 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002507/0.2584, allocations: 35.95 kB / 440.7 MB, free: 13.69 MB / 350.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.nextTimeEvent,table.combiTimeTable.nextTimeEventScaled) * 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.001931/0.2603, allocations: 1.026 MB / 441.7 MB, free: 12.79 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002526/0.2606, allocations: 91.72 kB / 441.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.844e-06/0.2606, allocations: 0 / 441.8 MB, free: 12.7 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001264/0.2607, allocations: 51.91 kB / 441.8 MB, free: 12.65 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000358/0.2611, allocations: 62.12 kB / 441.9 MB, free: 12.59 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002561/0.2636, allocations: 2.185 MB / 444.1 MB, free: 10.28 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000334/0.264, allocations: 0.7281 MB / 444.8 MB, free: 9.527 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.645e-05/0.264, allocations: 33.45 kB / 444.9 MB, free: 9.492 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.891e-05/0.2641, allocations: 59.42 kB / 444.9 MB, free: 9.434 MB / 350.1 MB Notification: Performance of SimCode: time 4.51e-07/0.2641, allocations: 0 / 444.9 MB, free: 9.434 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02537/0.2895, allocations: 5.439 MB / 450.4 MB, free: 4.086 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.65/10.94, allocations: 10.64 kB / 450.4 MB, free: 4.078 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --stepSize=0.00199283 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_4.1.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.223909243999515] Failed to read output from testmodel.py, exit status != 0: ['time', 'table.y'] 11.147517684963532 11.162763357 10.908090686 Calling exit ...