Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.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.001305/0.001305, allocations: 112.2 kB / 21.22 MB, free: 0.7344 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.00138/0.00138, allocations: 208.4 kB / 24.52 MB, free: 4.141 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.425/1.425, allocations: 230.6 MB / 258.3 MB, free: 7.984 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.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_4_1_0_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.00151/0.00151, allocations: 47.92 kB / 378.6 MB, free: 3.137 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2825/0.284, allocations: 53.36 MB / 431.9 MB, free: 6.859 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002892/0.2869, allocations: 1.587 MB / 433.5 MB, free: 5.27 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002097/0.289, allocations: 0.9121 MB / 434.4 MB, free: 4.352 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.989e-05/0.289, allocations: 3.938 kB / 434.4 MB, free: 4.348 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001071/0.2891, allocations: 15.86 kB / 434.4 MB, free: 4.332 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.295e-05/0.2892, allocations: 15.88 kB / 434.4 MB, free: 4.316 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002955/0.2895, allocations: 63.8 kB / 434.5 MB, free: 4.254 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.000239/0.2898, allocations: 155.7 kB / 434.7 MB, free: 4.102 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.000113/0.2899, allocations: 25.56 kB / 434.7 MB, free: 4.07 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007568/0.2906, allocations: 0.6317 MB / 435.3 MB, free: 3.438 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001781/0.2908, allocations: 87.67 kB / 435.4 MB, free: 3.352 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 4.545e-05/0.2909, allocations: 12 kB / 435.4 MB, free: 3.34 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.889e-05/0.2909, allocations: 15.94 kB / 435.4 MB, free: 3.324 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.98e-05/0.291, allocations: 67.7 kB / 435.5 MB, free: 3.258 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001548/0.2912, allocations: 131 kB / 435.6 MB, free: 3.129 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.000493/0.2917, allocations: 458.5 kB / 436.1 MB, free: 2.684 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.861e-06/0.2917, allocations: 4 kB / 436.1 MB, free: 2.68 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.733e-06/0.2917, allocations: 0 / 436.1 MB, free: 2.68 MB / 334.1 MB Notification: Performance of Transformations before backend: time 6.362e-06/0.2917, allocations: 0 / 436.1 MB, free: 2.68 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.0008952/0.2926, allocations: 0.7502 MB / 436.8 MB, free: 1.867 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.139e-05/0.2926, allocations: 12.03 kB / 436.8 MB, free: 1.855 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.798e-05/0.2926, allocations: 192 / 436.8 MB, free: 1.855 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.256e-05/0.2927, allocations: 46.67 kB / 436.9 MB, free: 1.801 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 9.038e-05/0.2928, allocations: 48.66 kB / 436.9 MB, free: 1.754 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003172/0.2931, allocations: 240.7 kB / 437.2 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.272e-05/0.2931, allocations: 8.375 kB / 437.2 MB, free: 1.484 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.673e-05/0.2931, allocations: 12.38 kB / 437.2 MB, free: 1.473 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0003813/0.2935, allocations: 172.5 kB / 437.4 MB, free: 1.301 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.177e-06/0.2935, allocations: 0 / 437.4 MB, free: 1.301 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.821e-05/0.2936, allocations: 8 kB / 437.4 MB, free: 1.293 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.439e-05/0.2936, allocations: 3.984 kB / 437.4 MB, free: 1.289 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001818/0.2938, allocations: 91.83 kB / 437.5 MB, free: 1.199 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007466/0.2945, allocations: 467.5 kB / 437.9 MB, free: 0.6992 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002803/0.2948, allocations: 102.5 kB / 438 MB, free: 0.5898 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001731/0.295, allocations: 88.88 kB / 438.1 MB, free: 0.5 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.156e-05/0.295, allocations: 4 kB / 438.1 MB, free: 0.4961 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004571/0.2954, allocations: 244.2 kB / 438.3 MB, free: 240 kB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.633e-06/0.2954, allocations: 0 / 438.3 MB, free: 240 kB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001046/0.2965, allocations: 0.6071 MB / 439 MB, free: 15.59 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001326/0.2966, allocations: 191.9 kB / 439.1 MB, free: 15.36 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007307/0.2973, allocations: 0.5757 MB / 439.7 MB, free: 14.77 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.719e-05/0.2974, allocations: 29.7 kB / 439.7 MB, free: 14.74 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 0.000102/0.2975, allocations: 113.1 kB / 439.9 MB, free: 14.62 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.432e-05/0.2975, allocations: 31.8 kB / 439.9 MB, free: 14.59 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.000157/0.2977, allocations: 97.5 kB / 440 MB, free: 14.49 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001617/0.2979, allocations: 330.8 kB / 440.3 MB, free: 14.16 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001672/0.298, allocations: 79.95 kB / 440.4 MB, free: 14.08 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001795/0.2982, allocations: 101.8 kB / 440.5 MB, free: 13.97 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004535/0.2987, allocations: 438.6 kB / 440.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.975e-06/0.2987, allocations: 0 / 440.9 MB, free: 13.48 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007519/0.2994, allocations: 0.498 MB / 441.4 MB, free: 12.94 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000118/0.2995, allocations: 148.5 kB / 441.6 MB, free: 12.77 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.991e-06/0.2995, allocations: 4 kB / 441.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.502e-05/0.2996, allocations: 0 / 441.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.124e-05/0.2996, allocations: 0 / 441.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.031e-06/0.2996, allocations: 0 / 441.6 MB, free: 12.76 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001527/0.2997, allocations: 23.95 kB / 441.6 MB, free: 12.74 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001158/0.2999, allocations: 97.34 kB / 441.7 MB, free: 12.64 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.0004081/0.3003, allocations: 400.1 kB / 442.1 MB, free: 12.21 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.796e-05/0.3003, allocations: 47.72 kB / 442.1 MB, free: 12.17 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001079/0.3004, allocations: 75.39 kB / 442.2 MB, free: 12.1 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 3.046e-06/0.3004, allocations: 3.938 kB / 442.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.028e-06/0.3004, allocations: 0 / 442.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.202e-06/0.3004, allocations: 3.938 kB / 442.2 MB, free: 12.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.00124/0.3017, allocations: 0.9391 MB / 443.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.924e-06/0.3017, allocations: 0 / 443.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.759e-06/0.3017, allocations: 128 / 443.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.799e-06/0.3017, allocations: 4 kB / 443.1 MB, free: 11.07 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.158e-05/0.3017, allocations: 23.98 kB / 443.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 5.21e-06/0.3017, allocations: 3.938 kB / 443.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.293e-06/0.3017, allocations: 0 / 443.2 MB, free: 11.04 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008554/0.3026, allocations: 0.6635 MB / 443.8 MB, free: 10.33 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004108/0.303, allocations: 221.3 kB / 444 MB, free: 10.12 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.098e-05/0.3031, allocations: 12 kB / 444.1 MB, free: 10.11 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001568/0.3032, allocations: 23.91 kB / 444.1 MB, free: 10.08 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001583/0.3034, allocations: 55.94 kB / 444.1 MB, free: 10.03 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001083/0.3035, allocations: 101.2 kB / 444.2 MB, free: 9.93 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005172/0.304, allocations: 418.8 kB / 444.6 MB, free: 9.527 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.304, allocations: 0 / 444.6 MB, free: 9.527 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003036/0.3043, allocations: 52 kB / 444.7 MB, free: 9.477 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.001263/0.3056, allocations: 1.22 MB / 445.9 MB, free: 8.199 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0006342/0.3062, allocations: 480.8 kB / 446.4 MB, free: 7.668 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 1.973e-06/0.3062, allocations: 3.938 kB / 446.4 MB, free: 7.664 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004015/0.3066, allocations: 385 kB / 446.8 MB, free: 7.227 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008981/0.3075, allocations: 194.3 kB / 447 MB, free: 7.047 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004881/0.3124, allocations: 3.221 MB / 450.2 MB, free: 3.711 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005908/0.313, allocations: 0.8259 MB / 451 MB, free: 2.859 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001076/0.3131, allocations: 16.95 kB / 451 MB, free: 2.84 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.021e-05/0.3132, allocations: 43.42 kB / 451.1 MB, free: 2.797 MB / 350.1 MB Notification: Performance of SimCode: time 9.52e-07/0.3132, allocations: 7.938 kB / 451.1 MB, free: 2.789 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0325/0.3457, allocations: 9.452 MB / 460.5 MB, free: 9.355 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.04/11.38, allocations: 14.62 kB / 460.5 MB, free: 9.344 MB / 366.1 MB " [Timeout remaining time 648] (rm -f Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_4_1_0_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --stepSize=0.00299162 --timeout=50 --tolerance=1e-06 Modelica_4_1_0_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_4.1.0_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.776069957995787] Failed to read output from testmodel.py, exit status != 0: ['time', 'Mux2x1.out'] 11.542481468000915 11.557929328 11.262890869 Calling exit ...