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.001262/0.001262, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001332/0.001332, allocations: 213.4 kB / 24.52 MB, free: 3.941 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.332/1.332, allocations: 230.6 MB / 258.3 MB, free: 7.801 MB / 206.1 MB " [Timeout remaining time 179] 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.001415/0.001415, allocations: 51.92 kB / 378.5 MB, free: 3.016 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.246/0.2474, allocations: 53.35 MB / 431.8 MB, free: 6.695 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003247/0.2507, allocations: 1.814 MB / 433.7 MB, free: 4.875 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001862/0.2525, allocations: 1.125 MB / 434.8 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 0.0001008/0.2526, allocations: 0 / 434.8 MB, free: 3.746 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006509/0.2533, allocations: 171.5 kB / 435 MB, free: 3.578 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0004348/0.2537, allocations: 175.3 kB / 435.1 MB, free: 3.406 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003904/0.2541, allocations: 143.6 kB / 435.3 MB, free: 3.266 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002842/0.2544, allocations: 219.3 kB / 435.5 MB, free: 3.051 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001152/0.2545, allocations: 17.55 kB / 435.5 MB, free: 3.035 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001262/0.2546, allocations: 91.67 kB / 435.6 MB, free: 2.945 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001451/0.2548, allocations: 99.53 kB / 435.7 MB, free: 2.848 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.668e-05/0.2548, allocations: 15.94 kB / 435.7 MB, free: 2.832 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001488/0.255, allocations: 55.97 kB / 435.8 MB, free: 2.777 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.468e-05/0.2551, allocations: 51.83 kB / 435.8 MB, free: 2.727 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.69e-05/0.2551, allocations: 63.59 kB / 435.9 MB, free: 2.664 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003283/0.2555, allocations: 225.4 kB / 436.1 MB, free: 2.445 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.867e-06/0.2555, allocations: 0 / 436.1 MB, free: 2.445 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.032e-06/0.2555, allocations: 0 / 436.1 MB, free: 2.445 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.17e-06/0.2555, allocations: 0 / 436.1 MB, free: 2.445 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.0008542/0.2563, allocations: 478.7 kB / 436.6 MB, free: 1.941 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.351e-05/0.2564, allocations: 8.031 kB / 436.6 MB, free: 1.934 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.436e-05/0.2564, allocations: 192 / 436.6 MB, free: 1.934 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.841e-05/0.2564, allocations: 34.75 kB / 436.6 MB, free: 1.891 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 5.191e-05/0.2565, allocations: 24.78 kB / 436.6 MB, free: 1.867 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002998/0.2568, allocations: 209.1 kB / 436.8 MB, free: 1.637 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.145e-05/0.2568, allocations: 12.11 kB / 436.8 MB, free: 1.625 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.806e-05/0.2568, allocations: 8 kB / 436.8 MB, free: 1.617 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002544/0.2571, allocations: 150.6 kB / 437 MB, free: 1.445 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.015e-06/0.2571, allocations: 4 kB / 437 MB, free: 1.441 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.454e-05/0.2571, allocations: 4 kB / 437 MB, free: 1.438 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.2571, allocations: 4 kB / 437 MB, free: 1.434 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002125/0.2573, allocations: 47.91 kB / 437 MB, free: 1.387 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006748/0.258, allocations: 0.5628 MB / 437.6 MB, free: 0.7695 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002777/0.2583, allocations: 119.9 kB / 437.7 MB, free: 0.625 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001165/0.2584, allocations: 62.5 kB / 437.8 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.298e-05/0.2584, allocations: 0 / 437.8 MB, free: 0.5547 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000236/0.2586, allocations: 117.9 kB / 437.9 MB, free: 428 kB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 3.236e-06/0.2586, allocations: 3.984 kB / 437.9 MB, free: 424 kB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004652/0.2591, allocations: 185.4 kB / 438.1 MB, free: 232 kB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.619e-05/0.2592, allocations: 136.5 kB / 438.2 MB, free: 64 kB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003462/0.2595, allocations: 297 kB / 438.5 MB, free: 15.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 2.401e-05/0.2596, allocations: 33.7 kB / 438.5 MB, free: 15.73 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.102e-05/0.2597, allocations: 120.5 kB / 438.7 MB, free: 15.61 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.938e-05/0.2597, allocations: 39.73 kB / 438.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.427e-05/0.2598, allocations: 33.7 kB / 438.7 MB, free: 15.53 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001544/0.2599, allocations: 330.8 kB / 439.1 MB, free: 15.2 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 8.824e-05/0.26, allocations: 27.98 kB / 439.1 MB, free: 15.17 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001663/0.2602, allocations: 141.3 kB / 439.2 MB, free: 15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001839/0.2604, allocations: 100.2 kB / 439.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.813e-06/0.2604, allocations: 32 / 439.3 MB, free: 14.88 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002881/0.2606, allocations: 150 kB / 439.5 MB, free: 14.73 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.667e-05/0.2607, allocations: 8 kB / 439.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.07e-06/0.2607, allocations: 0 / 439.5 MB, free: 14.72 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.633e-05/0.2607, allocations: 7.938 kB / 439.5 MB, free: 14.71 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 8.8e-05/0.2608, allocations: 11.94 kB / 439.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 1.152e-05/0.2608, allocations: 7.938 kB / 439.5 MB, free: 14.7 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001056/0.2609, allocations: 19.92 kB / 439.5 MB, free: 14.68 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.212e-05/0.2609, allocations: 4.094 kB / 439.5 MB, free: 14.67 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.0001586/0.2611, allocations: 150.4 kB / 439.7 MB, free: 14.52 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 4.153e-05/0.2611, allocations: 19.86 kB / 439.7 MB, free: 14.5 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002768/0.2614, allocations: 123.4 kB / 439.8 MB, free: 14.37 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 5.981e-06/0.2614, allocations: 4 kB / 439.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.963e-06/0.2614, allocations: 3.938 kB / 439.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.148e-06/0.2614, allocations: 0 / 439.8 MB, free: 14.36 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000259/0.2617, allocations: 200.6 kB / 440 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 3.867e-06/0.2617, allocations: 4 kB / 440 MB, free: 14.12 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.741e-05/0.2617, allocations: 11.94 kB / 440 MB, free: 14.11 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.204e-06/0.2617, allocations: 4 kB / 440 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.343e-05/0.2617, allocations: 4 kB / 440 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.773e-06/0.2617, allocations: 0 / 440 MB, free: 14.1 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 5.19e-06/0.2617, allocations: 7.938 kB / 440 MB, free: 14.09 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003388/0.2621, allocations: 186.7 kB / 440.2 MB, free: 13.88 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.931e-05/0.2621, allocations: 23.8 kB / 440.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.916e-05/0.2621, allocations: 4 kB / 440.3 MB, free: 13.86 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 9.753e-05/0.2622, allocations: 15.92 kB / 440.3 MB, free: 13.84 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 6.809e-05/0.2623, allocations: 27.84 kB / 440.3 MB, free: 13.81 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.615e-05/0.2623, allocations: 8 kB / 440.3 MB, free: 13.8 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0002261/0.2625, allocations: 216.5 kB / 440.5 MB, free: 13.59 MB / 350.1 MB Notification: Performance of sort global known variables: time 8e-08/0.2625, allocations: 0 / 440.5 MB, free: 13.59 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002618/0.2628, allocations: 39.98 kB / 440.6 MB, free: 13.55 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 (13): * Single equations (assignments): 10 * 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.002103/0.2649, allocations: 1.061 MB / 441.6 MB, free: 12.65 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0002953/0.2652, allocations: 100 kB / 441.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 3.156e-06/0.2652, allocations: 4.062 kB / 441.7 MB, free: 12.55 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001407/0.2653, allocations: 47.92 kB / 441.8 MB, free: 12.5 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003851/0.2657, allocations: 56.64 kB / 441.8 MB, free: 12.45 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002765/0.2685, allocations: 2.201 MB / 444 MB, free: 10.12 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001173/0.2686, allocations: 123.7 kB / 444.1 MB, free: 9.98 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 9.664e-05/0.2687, allocations: 25.47 kB / 444.2 MB, free: 9.957 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 0.0001102/0.2688, allocations: 59.42 kB / 444.2 MB, free: 9.898 MB / 350.1 MB Notification: Performance of SimCode: time 3.21e-07/0.2688, allocations: 3.938 kB / 444.2 MB, free: 9.895 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02633/0.2951, allocations: 5.689 MB / 449.9 MB, free: 4.305 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.88/11.17, allocations: 8.062 kB / 449.9 MB, free: 4.297 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.453392017981969] Failed to read output from testmodel.py, exit status != 0: ['time', 'table.y'] 11.390297370962799 11.420362605 11.159304711 Calling exit ...