Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.conf.json loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001286/0.001286, allocations: 109.1 kB / 21.22 MB, free: 0.7305 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001796/0.001796, allocations: 207.5 kB / 24.53 MB, free: 4.066 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.413/1.413, allocations: 230.5 MB / 258.2 MB, free: 8.016 MB / 206.1 MB " [Timeout remaining time 178] 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.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.001848/0.001848, allocations: 63.89 kB / 378.6 MB, free: 3 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2739/0.2758, allocations: 53.41 MB / 432 MB, free: 6.672 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002905/0.2787, allocations: 1.58 MB / 433.5 MB, free: 5.086 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002038/0.2807, allocations: 0.9121 MB / 434.5 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.16e-05/0.2807, allocations: 3.938 kB / 434.5 MB, free: 4.164 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.222e-05/0.2808, allocations: 11.86 kB / 434.5 MB, free: 4.152 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.322e-05/0.2809, allocations: 31.78 kB / 434.5 MB, free: 4.121 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002588/0.2812, allocations: 51.89 kB / 434.6 MB, free: 4.07 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002401/0.2814, allocations: 159.7 kB / 434.7 MB, free: 3.914 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001028/0.2815, allocations: 21.58 kB / 434.7 MB, free: 3.887 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.000707/0.2822, allocations: 0.6356 MB / 435.4 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001577/0.2824, allocations: 83.62 kB / 435.4 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.355e-05/0.2824, allocations: 12 kB / 435.5 MB, free: 3.156 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.4e-05/0.2825, allocations: 12 kB / 435.5 MB, free: 3.145 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.051e-05/0.2826, allocations: 79.69 kB / 435.6 MB, free: 3.066 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001462/0.2827, allocations: 139 kB / 435.7 MB, free: 2.93 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004617/0.2832, allocations: 454.9 kB / 436.1 MB, free: 2.488 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 3.837e-06/0.2832, allocations: 0 / 436.1 MB, free: 2.488 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.503e-06/0.2832, allocations: 4 kB / 436.1 MB, free: 2.484 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.943e-06/0.2832, allocations: 0 / 436.1 MB, free: 2.484 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.0008674/0.2841, allocations: 0.7424 MB / 436.9 MB, free: 1.68 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.909e-05/0.2841, allocations: 8.031 kB / 436.9 MB, free: 1.672 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.511e-05/0.2841, allocations: 8.125 kB / 436.9 MB, free: 1.664 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.678e-05/0.2842, allocations: 46.73 kB / 436.9 MB, free: 1.609 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.328e-05/0.2843, allocations: 44.66 kB / 437 MB, free: 1.566 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003114/0.2846, allocations: 236.8 kB / 437.2 MB, free: 1.309 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.131e-05/0.2846, allocations: 8.375 kB / 437.2 MB, free: 1.301 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.67e-05/0.2846, allocations: 12.38 kB / 437.2 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003753/0.285, allocations: 173.4 kB / 437.4 MB, free: 1.113 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.274e-06/0.285, allocations: 0 / 437.4 MB, free: 1.113 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.787e-05/0.285, allocations: 4 kB / 437.4 MB, free: 1.109 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 6.612e-06/0.285, allocations: 4 kB / 437.4 MB, free: 1.105 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001838/0.2852, allocations: 83.95 kB / 437.5 MB, free: 1.023 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007549/0.286, allocations: 479.5 kB / 438 MB, free: 0.5117 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002181/0.2862, allocations: 98.53 kB / 438.1 MB, free: 416 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.000172/0.2864, allocations: 88.92 kB / 438.1 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 8.807e-06/0.2864, allocations: 0 / 438.1 MB, free: 324 kB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004111/0.2868, allocations: 253.6 kB / 438.4 MB, free: 48 kB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.293e-06/0.2868, allocations: 0 / 438.4 MB, free: 48 kB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001025/0.2878, allocations: 0.6104 MB / 439 MB, free: 15.4 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001202/0.2879, allocations: 195.9 kB / 439.2 MB, free: 15.17 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007189/0.2887, allocations: 0.5601 MB / 439.8 MB, free: 14.6 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.961e-05/0.2887, allocations: 29.7 kB / 439.8 MB, free: 14.56 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.684e-05/0.2888, allocations: 121 kB / 439.9 MB, free: 14.44 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.382e-05/0.2888, allocations: 35.73 kB / 439.9 MB, free: 14.4 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001496/0.289, allocations: 105.5 kB / 440 MB, free: 14.29 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001443/0.2891, allocations: 334.8 kB / 440.4 MB, free: 13.96 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.000165/0.2893, allocations: 76.03 kB / 440.4 MB, free: 13.88 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001742/0.2895, allocations: 109 kB / 440.5 MB, free: 13.77 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004455/0.2899, allocations: 426.6 kB / 441 MB, free: 13.29 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 5.33e-06/0.2899, allocations: 4 kB / 441 MB, free: 13.29 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007319/0.2907, allocations: 0.498 MB / 441.5 MB, free: 12.75 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001092/0.2908, allocations: 152.5 kB / 441.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.242e-06/0.2908, allocations: 0 / 441.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.486e-05/0.2908, allocations: 0 / 441.6 MB, free: 12.57 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.138e-05/0.2908, allocations: 8 kB / 441.6 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.17e-06/0.2908, allocations: 160 / 441.6 MB, free: 12.56 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001526/0.291, allocations: 15.94 kB / 441.6 MB, free: 12.55 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001164/0.2911, allocations: 101.2 kB / 441.7 MB, free: 12.45 MB / 350.1 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 2 * Number of states: 0 () * Number of discrete variables: 16 ($PRE.Mux2x1.inertialDelaySensitive.y,Input0.y,Select.y,Input1.y,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.x,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.yy,Mux2x1.nextstate,$whenCondition2,$whenCondition1) * Number of discrete states: 0 () * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for initialization (8): * Single equations (assignments): 3 * Array equations: 0 * Algorithm blocks: 5 * 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.000397/0.2915, allocations: 399.9 kB / 442.1 MB, free: 12.02 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.586e-05/0.2915, allocations: 47.75 kB / 442.2 MB, free: 11.97 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001064/0.2917, allocations: 67.42 kB / 442.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.054e-06/0.2917, allocations: 0 / 442.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 6.802e-06/0.2917, allocations: 4 kB / 442.2 MB, free: 11.91 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.472e-06/0.2917, allocations: 7.922 kB / 442.3 MB, free: 11.9 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001247/0.2929, allocations: 0.9313 MB / 443.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.733e-06/0.2929, allocations: 0 / 443.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.959e-06/0.2929, allocations: 0 / 443.2 MB, free: 10.89 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 5.32e-06/0.2929, allocations: 7.938 kB / 443.2 MB, free: 10.88 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.101e-05/0.293, allocations: 19.98 kB / 443.2 MB, free: 10.86 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 4.599e-06/0.293, allocations: 11.94 kB / 443.2 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.162e-06/0.293, allocations: 0 / 443.2 MB, free: 10.85 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008476/0.2938, allocations: 0.6559 MB / 443.9 MB, free: 10.14 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003936/0.2942, allocations: 213.3 kB / 444.1 MB, free: 9.938 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.966e-05/0.2943, allocations: 12 kB / 444.1 MB, free: 9.926 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001519/0.2944, allocations: 15.92 kB / 444.1 MB, free: 9.91 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001596/0.2946, allocations: 52.06 kB / 444.2 MB, free: 9.859 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001122/0.2947, allocations: 121.2 kB / 444.3 MB, free: 9.742 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.000507/0.2952, allocations: 414.9 kB / 444.7 MB, free: 9.34 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.11e-07/0.2952, allocations: 0 / 444.7 MB, free: 9.34 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003125/0.2955, allocations: 48 kB / 444.7 MB, free: 9.293 MB / 350.1 MB Notification: Model statistics after passing the back-end for simulation: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 14 ($whenCondition1,$whenCondition2,Mux2x1.nextstate,Mux2x1.yy,Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Select.y,Input0.y) * Number of discrete states: 14 (Input1.y,Select.y,Input0.y,Mux2x1.yy,Mux2x1.nextstate,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.t_next,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.y_old,$whenCondition2,$whenCondition1,Mux2x1.inertialDelaySensitive.x) * Number of clocked states: 0 () * Top-level inputs: 0 Notification: Strong component statistics for simulation (6): * Single equations (assignments): 1 * Array equations: 0 * Algorithm blocks: 5 * 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 Backend phase and start with SimCode phase: time 0.001495/0.297, allocations: 1.224 MB / 446 MB, free: 8.012 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006369/0.2977, allocations: 488.5 kB / 446.4 MB, free: 7.477 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.004e-06/0.2977, allocations: 7.938 kB / 446.4 MB, free: 7.469 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003745/0.298, allocations: 381 kB / 446.8 MB, free: 7.035 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000853/0.2989, allocations: 195.4 kB / 447 MB, free: 6.859 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004242/0.3031, allocations: 3.226 MB / 450.2 MB, free: 3.516 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005015/0.3036, allocations: 0.8258 MB / 451.1 MB, free: 2.664 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 8.413e-05/0.3037, allocations: 8.969 kB / 451.1 MB, free: 2.652 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.917e-05/0.3038, allocations: 47.42 kB / 451.1 MB, free: 2.605 MB / 350.1 MB Notification: Performance of SimCode: time 6.71e-07/0.3038, allocations: 0 / 451.1 MB, free: 2.605 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03088/0.3347, allocations: 9.452 MB / 460.6 MB, free: 9.105 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.08/11.42, allocations: 2.969 kB / 460.6 MB, free: 9.105 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --stepSize=0.00299162 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.79120659304317] Failed to read output from testmodel.py, exit status != 0: ['time', 'Mux2x1.out'] 11.580543151998427 11.599278859 11.312925556 Calling exit ...