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.001228/0.001228, allocations: 116.2 kB / 18.49 MB, free: 4.559 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.001276/0.001276, allocations: 218.9 kB / 21.46 MB, free: 1.605 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.374/1.374, allocations: 230.6 MB / 254.8 MB, free: 15.09 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.001413/0.001413, allocations: 51.92 kB / 373.7 MB, free: 10.22 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09631/0.09772, allocations: 53.32 MB / 427 MB, free: 4.805 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Blocks.Examples.ShowLogicalSources): time 0.003338/0.1011, allocations: 1.862 MB / 428.9 MB, free: 2.926 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.001933/0.103, allocations: 1.191 MB / 430.1 MB, free: 1.73 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 8.702e-05/0.1031, allocations: 4 kB / 430.1 MB, free: 1.727 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0006174/0.1037, allocations: 171.5 kB / 430.2 MB, free: 1.559 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0003978/0.1041, allocations: 162.8 kB / 430.4 MB, free: 1.402 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0003826/0.1045, allocations: 147.5 kB / 430.5 MB, free: 1.258 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002841/0.1048, allocations: 223.3 kB / 430.7 MB, free: 1.039 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001028/0.1049, allocations: 9.562 kB / 430.8 MB, free: 1.031 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0001393/0.105, allocations: 91.67 kB / 430.8 MB, free: 0.9414 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001443/0.1051, allocations: 91.55 kB / 430.9 MB, free: 0.8516 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 2.741e-05/0.1052, allocations: 12 kB / 430.9 MB, free: 0.8398 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 0.0001374/0.1053, allocations: 59.95 kB / 431 MB, free: 0.7812 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 7.713e-05/0.1054, allocations: 47.83 kB / 431.1 MB, free: 0.7344 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 9.096e-05/0.1055, allocations: 79.47 kB / 431.1 MB, free: 0.6562 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003563/0.1058, allocations: 235 kB / 431.4 MB, free: 436 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.799e-06/0.1058, allocations: 0 / 431.4 MB, free: 436 kB / 350.1 MB Notification: Performance of FrontEnd: time 1.953e-06/0.1058, allocations: 0 / 431.4 MB, free: 436 kB / 350.1 MB Notification: Performance of Transformations before backend: time 6.101e-06/0.1059, allocations: 0 / 431.4 MB, free: 436 kB / 350.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.1875/0.2934, allocations: 0.5296 MB / 431.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.203e-05/0.2934, allocations: 9.281 kB / 431.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.228e-05/0.2934, allocations: 1.125 kB / 431.9 MB, free: 11.29 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 3.307e-05/0.2935, allocations: 43.5 kB / 431.9 MB, free: 11.25 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.121e-05/0.2936, allocations: 26.08 kB / 432 MB, free: 11.24 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003446/0.2939, allocations: 264.2 kB / 432.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.955e-05/0.2939, allocations: 6.062 kB / 432.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 2.242e-05/0.2939, allocations: 8.297 kB / 432.2 MB, free: 11.03 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002436/0.2942, allocations: 116.9 kB / 432.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.087e-05/0.2942, allocations: 1.562 kB / 432.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 1.442e-05/0.2942, allocations: 5.594 kB / 432.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 4.999e-06/0.2942, allocations: 1.344 kB / 432.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001545/0.2944, allocations: 52.08 kB / 432.4 MB, free: 10.95 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0005878/0.295, allocations: 0.6068 MB / 433 MB, free: 10.44 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002547/0.2952, allocations: 119.7 kB / 433.1 MB, free: 10.37 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001019/0.2953, allocations: 50.55 kB / 433.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 2.982e-05/0.2953, allocations: 5.188 kB / 433.2 MB, free: 10.34 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002212/0.2956, allocations: 116.5 kB / 433.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of pre-optimization done (n=12): time 1.814e-06/0.2956, allocations: 0 / 433.3 MB, free: 10.27 MB / 350.1 MB Notification: Performance of matching and sorting (n=12): time 0.0005019/0.2961, allocations: 182.8 kB / 433.5 MB, free: 10.23 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 5.862e-05/0.2961, allocations: 134.7 kB / 433.6 MB, free: 10.07 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0003323/0.2965, allocations: 293.6 kB / 433.9 MB, free: 9.969 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 1.769e-05/0.2965, allocations: 28.22 kB / 433.9 MB, free: 9.938 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.895e-05/0.2966, allocations: 126.8 kB / 434.1 MB, free: 9.852 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 3.431e-05/0.2966, allocations: 34.39 kB / 434.1 MB, free: 9.836 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 6.853e-05/0.2967, allocations: 30.98 kB / 434.1 MB, free: 9.82 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 7.441e-05/0.2967, allocations: 338.6 kB / 434.4 MB, free: 9.504 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 9.352e-05/0.2968, allocations: 34.56 kB / 434.5 MB, free: 9.504 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001142/0.2969, allocations: 91.3 kB / 434.6 MB, free: 9.449 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0001736/0.2971, allocations: 96.2 kB / 434.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.614e-06/0.2971, allocations: 0 / 434.7 MB, free: 9.41 MB / 350.1 MB Notification: Performance of matching and sorting (n=15) (initialization): time 0.0002667/0.2974, allocations: 149.7 kB / 434.8 MB, free: 9.367 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 1.635e-05/0.2974, allocations: 9.828 kB / 434.8 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.2974, allocations: 0 / 434.8 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.852e-05/0.2974, allocations: 3.016 kB / 434.8 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 9.025e-05/0.2975, allocations: 15 kB / 434.8 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.295e-06/0.2975, allocations: 5.219 kB / 434.8 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001191/0.2976, allocations: 15.97 kB / 434.9 MB, free: 9.367 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 1.111e-05/0.2977, allocations: 8.188 kB / 434.9 MB, free: 9.367 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.0001081/0.2978, allocations: 147 kB / 435 MB, free: 9.25 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 3.97e-05/0.2978, allocations: 22.61 kB / 435 MB, free: 9.238 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 5.531e-05/0.2979, allocations: 28.44 kB / 435.1 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.505e-06/0.2979, allocations: 2.094 kB / 435.1 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.651e-06/0.2979, allocations: 2.297 kB / 435.1 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 5.17e-06/0.2979, allocations: 2.188 kB / 435.1 MB, free: 9.227 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0001778/0.2981, allocations: 252.8 kB / 435.3 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.053e-06/0.2981, allocations: 1.156 kB / 435.3 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 3.165e-05/0.2981, allocations: 11.47 kB / 435.3 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.805e-06/0.2981, allocations: 1.094 kB / 435.3 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 1.299e-05/0.2981, allocations: 2.219 kB / 435.3 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.326e-06/0.2981, allocations: 4.172 kB / 435.3 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.415e-06/0.2981, allocations: 1.859 kB / 435.3 MB, free: 9.027 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0002791/0.2984, allocations: 185.7 kB / 435.5 MB, free: 8.926 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 4.366e-05/0.2984, allocations: 95.75 kB / 435.6 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 3.354e-05/0.2985, allocations: 3.344 kB / 435.6 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001013/0.2986, allocations: 13.94 kB / 435.6 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 5.495e-05/0.2986, allocations: 13.83 kB / 435.6 MB, free: 8.824 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 1.606e-05/0.2986, allocations: 9.25 kB / 435.6 MB, free: 8.82 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0001869/0.2988, allocations: 221.9 kB / 435.9 MB, free: 8.738 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2988, allocations: 0 / 435.9 MB, free: 8.738 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002787/0.2991, allocations: 40.91 kB / 435.9 MB, free: 8.734 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.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.001783/0.3009, allocations: 1.022 MB / 436.9 MB, free: 8.051 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000257/0.3011, allocations: 85.34 kB / 437 MB, free: 8.051 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.866e-06/0.3011, allocations: 1.125 kB / 437 MB, free: 8.051 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0001174/0.3013, allocations: 54.03 kB / 437.1 MB, free: 8.047 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0003326/0.3016, allocations: 56.47 kB / 437.1 MB, free: 8.043 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.002272/0.3039, allocations: 2.191 MB / 439.3 MB, free: 6.578 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000153/0.304, allocations: 0.7299 MB / 440 MB, free: 5.879 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.376e-05/0.3041, allocations: 31.02 kB / 440.1 MB, free: 5.875 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 8.867e-05/0.3042, allocations: 61.2 kB / 440.1 MB, free: 5.832 MB / 350.1 MB Notification: Performance of SimCode: time 3.61e-07/0.3042, allocations: 0 / 440.1 MB, free: 5.832 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02334/0.3275, allocations: 5.272 MB / 445.4 MB, free: 4.961 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.036/8.363, allocations: 10.19 kB / 445.4 MB, free: 4.953 MB / 350.1 MB " [Timeout remaining time 651] (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: 10.67713140998967] Failed to read output from testmodel.py, exit status != 0: ['time', 'table.y'] 8.539030081999954 8.551128904 8.442598967 Calling exit ...