Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo): time 0.002091/0.002091, allocations: 101.5 kB / 21.21 MB, free: 0.6289 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo): time 0.00217/0.00217, allocations: 191.4 kB / 24.49 MB, free: 3.941 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo): time 1.343/1.343, allocations: 225.7 MB / 253.3 MB, free: 12.82 MB / 206.1 MB " [Timeout remaining time 178] Using package Modelica with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 4.0.0+maint.om/package.mo) Using package Complex with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex 4.0.0+maint.om/package.mo) Using package ModelicaServices with version 4.0.0 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices 4.0.0+maint.om/package.mo) Running command: "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Blocks.Examples.ShowLogicalSources,fileNamePrefix="Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001406/0.001406, allocations: 47.92 kB / 371.2 MB, free: 9.789 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2316/0.233, allocations: 52.18 MB / 423.3 MB, free: 14.41 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003196/0.2362, allocations: 1.797 MB / 425.1 MB, free: 12.61 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001677/0.2379, allocations: 0.9781 MB / 426.1 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 9.636e-05/0.238, allocations: 4 kB / 426.1 MB, free: 11.62 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006293/0.2386, allocations: 171.5 kB / 426.3 MB, free: 11.45 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0002958/0.2389, allocations: 127.5 kB / 426.4 MB, free: 11.33 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0004224/0.2393, allocations: 185.7 kB / 426.6 MB, free: 11.15 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002593/0.2396, allocations: 203.4 kB / 426.8 MB, free: 10.95 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 8.922e-05/0.2396, allocations: 13.75 kB / 426.8 MB, free: 10.93 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001275/0.2398, allocations: 91.61 kB / 426.9 MB, free: 10.84 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001317/0.2399, allocations: 91.66 kB / 427 MB, free: 10.75 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 2.727e-05/0.2399, allocations: 12 kB / 427 MB, free: 10.74 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001308/0.2401, allocations: 51.97 kB / 427 MB, free: 10.69 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 7.859e-05/0.2401, allocations: 55.77 kB / 427.1 MB, free: 10.64 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 8.956e-05/0.2402, allocations: 55.67 kB / 427.2 MB, free: 10.58 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003168/0.2405, allocations: 227.9 kB / 427.4 MB, free: 10.37 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.547e-06/0.2406, allocations: 3.938 kB / 427.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.303e-06/0.2406, allocations: 0 / 427.4 MB, free: 10.36 MB / 334.1 MB Notification: Performance of Transformations before backend: time 5.019e-06/0.2406, allocations: 0 / 427.4 MB, free: 10.36 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.0008256/0.2414, allocations: 470.6 kB / 427.8 MB, free: 9.867 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.396e-05/0.2414, allocations: 12.03 kB / 427.9 MB, free: 9.855 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.14e-05/0.2414, allocations: 192 / 427.9 MB, free: 9.855 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.81e-05/0.2415, allocations: 42.73 kB / 427.9 MB, free: 9.805 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 4.96e-05/0.2415, allocations: 20.8 kB / 427.9 MB, free: 9.785 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003075/0.2418, allocations: 196.6 kB / 428.1 MB, free: 9.566 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.956e-05/0.2418, allocations: 8 kB / 428.1 MB, free: 9.559 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 1.871e-05/0.2419, allocations: 7.984 kB / 428.1 MB, free: 9.551 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002666/0.2421, allocations: 150 kB / 428.3 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.376e-06/0.2421, allocations: 0 / 428.3 MB, free: 9.379 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.504e-05/0.2422, allocations: 3.984 kB / 428.3 MB, free: 9.375 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 9.297e-06/0.2422, allocations: 4 kB / 428.3 MB, free: 9.371 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001561/0.2423, allocations: 55.91 kB / 428.3 MB, free: 9.316 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006532/0.243, allocations: 0.5589 MB / 428.9 MB, free: 8.703 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002584/0.2432, allocations: 119.9 kB / 429 MB, free: 8.559 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001125/0.2433, allocations: 50.55 kB / 429.1 MB, free: 8.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.222e-05/0.2434, allocations: 4 kB / 429.1 MB, free: 8.496 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002287/0.2436, allocations: 121.9 kB / 429.2 MB, free: 8.355 MB / 334.1 MB Notification: Performance of pre-optimization done (n=12): time 1.292e-06/0.2436, allocations: 0 / 429.2 MB, free: 8.355 MB / 334.1 MB Notification: Performance of matching and sorting (n=12): time 0.0004621/0.2441, allocations: 185.5 kB / 429.4 MB, free: 8.168 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.955e-05/0.2441, allocations: 136.5 kB / 429.5 MB, free: 8.004 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0002996/0.2444, allocations: 284.9 kB / 429.8 MB, free: 7.719 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 2.703e-05/0.2445, allocations: 37.64 kB / 429.8 MB, free: 7.676 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.0001023/0.2446, allocations: 124.3 kB / 429.9 MB, free: 7.547 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.207e-05/0.2446, allocations: 27.73 kB / 430 MB, free: 7.52 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.054e-05/0.2447, allocations: 37.7 kB / 430 MB, free: 7.477 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001448/0.2448, allocations: 330.8 kB / 430.3 MB, free: 7.145 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.925e-05/0.2449, allocations: 31.98 kB / 430.3 MB, free: 7.113 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001543/0.2451, allocations: 137.4 kB / 430.5 MB, free: 6.945 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001956/0.2453, allocations: 100.8 kB / 430.6 MB, free: 6.832 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.673e-06/0.2453, allocations: 0 / 430.6 MB, free: 6.832 MB / 334.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002793/0.2455, allocations: 149.4 kB / 430.7 MB, free: 6.68 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.224e-05/0.2456, allocations: 4 kB / 430.7 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 1.331e-05/0.2456, allocations: 0 / 430.7 MB, free: 6.676 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.403e-05/0.2456, allocations: 7.938 kB / 430.7 MB, free: 6.668 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.168e-05/0.2457, allocations: 20.08 kB / 430.8 MB, free: 6.648 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 4.679e-06/0.2457, allocations: 0 / 430.8 MB, free: 6.648 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001056/0.2458, allocations: 23.88 kB / 430.8 MB, free: 6.625 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.264e-05/0.2458, allocations: 7.938 kB / 430.8 MB, free: 6.617 MB / 334.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.0001259/0.2459, allocations: 146.7 kB / 430.9 MB, free: 6.465 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.591e-05/0.246, allocations: 19.86 kB / 431 MB, free: 6.445 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0002504/0.2462, allocations: 127.2 kB / 431.1 MB, free: 6.312 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.899e-06/0.2462, allocations: 4 kB / 431.1 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 3.898e-06/0.2462, allocations: 0 / 431.1 MB, free: 6.309 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.317e-06/0.2462, allocations: 4 kB / 431.1 MB, free: 6.305 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.000217/0.2464, allocations: 196.6 kB / 431.3 MB, free: 6.07 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.313e-06/0.2464, allocations: 0 / 431.3 MB, free: 6.07 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.212e-05/0.2465, allocations: 8.125 kB / 431.3 MB, free: 6.062 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.904e-06/0.2465, allocations: 0 / 431.3 MB, free: 6.062 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 2.044e-05/0.2465, allocations: 15.94 kB / 431.3 MB, free: 6.047 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.643e-06/0.2465, allocations: 0 / 431.3 MB, free: 6.047 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 8.81e-07/0.2465, allocations: 0 / 431.3 MB, free: 6.047 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0003159/0.2468, allocations: 190.6 kB / 431.5 MB, free: 5.836 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 3.727e-05/0.2469, allocations: 23.86 kB / 431.5 MB, free: 5.812 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.28e-05/0.2469, allocations: 7.938 kB / 431.5 MB, free: 5.805 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001004/0.247, allocations: 15.98 kB / 431.5 MB, free: 5.789 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.385e-05/0.247, allocations: 11.97 kB / 431.5 MB, free: 5.777 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 2.075e-05/0.2471, allocations: 12 kB / 431.6 MB, free: 5.766 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0002111/0.2473, allocations: 208.5 kB / 431.8 MB, free: 5.562 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.01e-07/0.2473, allocations: 3.938 kB / 431.8 MB, free: 5.559 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0002515/0.2475, allocations: 39.92 kB / 431.8 MB, free: 5.52 MB / 334.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.002053/0.2496, allocations: 1.072 MB / 432.9 MB, free: 4.605 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.000282/0.2499, allocations: 91.91 kB / 433 MB, free: 4.516 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 1.843e-06/0.2499, allocations: 0 / 433 MB, free: 4.516 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001338/0.25, allocations: 55.91 kB / 433 MB, free: 4.461 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003364/0.2503, allocations: 39.38 kB / 433.1 MB, free: 4.426 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002608/0.2529, allocations: 2.18 MB / 435.2 MB, free: 2.129 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0001161/0.2531, allocations: 127.3 kB / 435.4 MB, free: 1.988 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 8.043e-05/0.2531, allocations: 25.48 kB / 435.4 MB, free: 1.965 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 9.908e-05/0.2532, allocations: 59.41 kB / 435.4 MB, free: 1.906 MB / 334.1 MB Notification: Performance of SimCode: time 3.71e-07/0.2532, allocations: 0 / 435.4 MB, free: 1.906 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02577/0.279, allocations: 5.597 MB / 441 MB, free: 12.39 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.99/11.26, allocations: 0 / 441 MB, free: 12.39 MB / 350.1 MB " [Timeout remaining time 649] (rm -f Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; mkfifo Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe ; head -c 1048576 < Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe >> ../files/Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources_res.mat --tempDir=temp_Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources_fmu --startTime=0 --stopTime=10 --stepSize=0.00199283 --timeout=50 --tolerance=1e-06 Modelica_4_0_0_Modelica_Blocks_Examples_ShowLogicalSources.fmu > Modelica_4.0.0_Modelica.Blocks.Examples.ShowLogicalSources.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.55828959599603] Failed to read output from testmodel.py, exit status != 0: ['time', 'table.y'] 11.476386758033186 11.490783526 11.247347786 Calling exit ...