Running: ./testmodel.py --libraries=/home/hudson/saved_omc/libraries/.openmodelica/libraries --ompython_omhome=/usr Modelica_3.2.3_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.005714/0.005714, allocations: 101.2 kB / 21.96 MB, free: 5.215 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.00188/0.00188, allocations: 217.5 kB / 25.26 MB, free: 3.141 MB / 14.72 MB " [Timeout remaining time 180] loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo", uses=false) [Timeout 180] "Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+maint.om/package.mo): time 1.375/1.375, allocations: 207.7 MB / 236.1 MB, free: 9.805 MB / 190.1 MB " [Timeout remaining time 178] Using package Modelica with version 3.2.3 (/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica 3.2.3+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_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="cs",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="cs",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Modelica requested package Complex of version 3.2.3. Complex 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Modelica requested package ModelicaServices of version 3.2.3. ModelicaServices 4.1.0 is used instead which states that it is fully compatible without conversion script needed. Notification: Performance of FrontEnd - loaded program: time 0.001682/0.001682, allocations: 51.92 kB / 348 MB, free: 9.902 MB / 286.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2597/0.2614, allocations: 49.15 MB / 397.1 MB, free: 8.887 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.00248/0.2639, allocations: 1.507 MB / 398.6 MB, free: 7.867 MB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001921/0.2658, allocations: 0.8665 MB / 399.5 MB, free: 7.301 MB / 318.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.219e-05/0.2658, allocations: 1.406 kB / 399.5 MB, free: 7.301 MB / 318.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001076/0.2659, allocations: 12.92 kB / 399.5 MB, free: 7.293 MB / 318.1 MB Notification: Performance of NFTyping.typeBindings: time 8.515e-05/0.266, allocations: 20.33 kB / 399.5 MB, free: 7.281 MB / 318.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002732/0.2663, allocations: 65.81 kB / 399.6 MB, free: 7.242 MB / 318.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002175/0.2665, allocations: 153.2 kB / 399.7 MB, free: 7.168 MB / 318.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001055/0.2666, allocations: 31.05 kB / 399.8 MB, free: 7.152 MB / 318.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007966/0.2674, allocations: 0.6274 MB / 400.4 MB, free: 7.102 MB / 318.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001574/0.2676, allocations: 90.95 kB / 400.5 MB, free: 7.062 MB / 318.1 MB Notification: Performance of NFPackage.collectConstants: time 5.306e-05/0.2676, allocations: 11.84 kB / 400.5 MB, free: 7.062 MB / 318.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.438e-05/0.2677, allocations: 10.62 kB / 400.5 MB, free: 7.062 MB / 318.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000107/0.2678, allocations: 77.47 kB / 400.6 MB, free: 7.035 MB / 318.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001205/0.2679, allocations: 92.98 kB / 400.7 MB, free: 6.977 MB / 318.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005259/0.2684, allocations: 460.5 kB / 401.1 MB, free: 6.836 MB / 318.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.66e-06/0.2684, allocations: 0 / 401.1 MB, free: 6.836 MB / 318.1 MB Notification: Performance of FrontEnd: time 1.774e-06/0.2684, allocations: 0 / 401.1 MB, free: 6.836 MB / 318.1 MB Notification: Performance of Transformations before backend: time 7.033e-06/0.2685, allocations: 1.406 kB / 401.1 MB, free: 6.836 MB / 318.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.0007765/0.2692, allocations: 0.7592 MB / 401.9 MB, free: 6.184 MB / 318.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.895e-05/0.2693, allocations: 13.11 kB / 401.9 MB, free: 6.18 MB / 318.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.594e-05/0.2693, allocations: 5.625 kB / 401.9 MB, free: 6.176 MB / 318.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.144e-05/0.2693, allocations: 41.47 kB / 402 MB, free: 6.133 MB / 318.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.961e-05/0.2694, allocations: 43.19 kB / 402 MB, free: 6.113 MB / 318.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002774/0.2697, allocations: 244.3 kB / 402.2 MB, free: 5.898 MB / 318.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.804e-05/0.2697, allocations: 4.906 kB / 402.2 MB, free: 5.898 MB / 318.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.045e-05/0.2698, allocations: 14.25 kB / 402.2 MB, free: 5.895 MB / 318.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004193/0.2702, allocations: 316.3 kB / 402.6 MB, free: 5.668 MB / 318.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 8.756e-06/0.2702, allocations: 1.188 kB / 402.6 MB, free: 5.668 MB / 318.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.189e-05/0.2702, allocations: 14.23 kB / 402.6 MB, free: 5.66 MB / 318.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.71e-06/0.2702, allocations: 5.125 kB / 402.6 MB, free: 5.656 MB / 318.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002272/0.2705, allocations: 240.7 kB / 402.8 MB, free: 5.461 MB / 318.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006652/0.2711, allocations: 447.8 kB / 403.3 MB, free: 5.137 MB / 318.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002572/0.2714, allocations: 246.6 kB / 403.5 MB, free: 4.926 MB / 318.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002268/0.2716, allocations: 230.9 kB / 403.7 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.553e-05/0.2716, allocations: 1.219 kB / 403.7 MB, free: 4.734 MB / 318.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004671/0.2721, allocations: 392 kB / 404.1 MB, free: 4.43 MB / 318.1 MB Notification: Performance of pre-optimization done (n=14): time 1.472e-06/0.2721, allocations: 0 / 404.1 MB, free: 4.43 MB / 318.1 MB Notification: Performance of matching and sorting (n=14): time 0.001187/0.2733, allocations: 0.9035 MB / 405 MB, free: 3.793 MB / 318.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 8.136e-05/0.2734, allocations: 194.8 kB / 405.2 MB, free: 3.57 MB / 318.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007938/0.2741, allocations: 0.5608 MB / 405.8 MB, free: 3.27 MB / 318.1 MB Notification: Performance of collectPreVariables (initialization): time 3.661e-05/0.2742, allocations: 33.61 kB / 405.8 MB, free: 3.234 MB / 318.1 MB Notification: Performance of collectInitialEqns (initialization): time 7.353e-05/0.2743, allocations: 116.9 kB / 405.9 MB, free: 3.129 MB / 318.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.078e-05/0.2743, allocations: 29.67 kB / 405.9 MB, free: 3.109 MB / 318.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001709/0.2745, allocations: 101.3 kB / 406 MB, free: 3.059 MB / 318.1 MB Notification: Performance of setup shared object (initialization): time 7.378e-05/0.2746, allocations: 333.5 kB / 406.4 MB, free: 2.734 MB / 318.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002269/0.2748, allocations: 227 kB / 406.6 MB, free: 2.551 MB / 318.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002279/0.275, allocations: 242.9 kB / 406.8 MB, free: 2.348 MB / 318.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003705/0.2754, allocations: 447.5 kB / 407.3 MB, free: 1.953 MB / 318.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.645e-06/0.2754, allocations: 4 kB / 407.3 MB, free: 1.949 MB / 318.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006883/0.2761, allocations: 0.6497 MB / 407.9 MB, free: 1.512 MB / 318.1 MB Notification: Performance of prepare postOptimizeDAE: time 6.632e-05/0.2761, allocations: 150.5 kB / 408.1 MB, free: 1.352 MB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.641e-06/0.2761, allocations: 1.484 kB / 408.1 MB, free: 1.352 MB / 318.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.988e-05/0.2762, allocations: 6.016 kB / 408.1 MB, free: 1.348 MB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.177e-05/0.2762, allocations: 4 kB / 408.1 MB, free: 1.344 MB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 6.342e-06/0.2762, allocations: 2.078 kB / 408.1 MB, free: 1.344 MB / 318.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001633/0.2764, allocations: 17.05 kB / 408.1 MB, free: 1.34 MB / 318.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001099/0.2765, allocations: 92.03 kB / 408.2 MB, free: 1.34 MB / 318.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.0003059/0.2768, allocations: 410.8 kB / 408.6 MB, free: 0.9922 MB / 318.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.625e-05/0.2768, allocations: 47.09 kB / 408.6 MB, free: 0.9688 MB / 318.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000101/0.2769, allocations: 69.52 kB / 408.7 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.835e-06/0.2769, allocations: 0 / 408.7 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.2769, allocations: 1.375 kB / 408.7 MB, free: 0.9336 MB / 318.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.897e-06/0.2769, allocations: 4.688 kB / 408.7 MB, free: 0.9297 MB / 318.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001135/0.2781, allocations: 1.063 MB / 409.8 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.024e-06/0.2781, allocations: 1.531 kB / 409.8 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.378e-06/0.2781, allocations: 0 / 409.8 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 3.777e-06/0.2781, allocations: 0.6094 kB / 409.8 MB, free: 168 kB / 318.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.099e-05/0.2781, allocations: 23.78 kB / 409.8 MB, free: 164 kB / 318.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.605e-06/0.2781, allocations: 11.94 kB / 409.8 MB, free: 152 kB / 318.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.885e-06/0.2781, allocations: 6.109 kB / 409.8 MB, free: 148 kB / 318.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.001001/0.2791, allocations: 0.8102 MB / 410.6 MB, free: 15.57 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004355/0.2796, allocations: 218.3 kB / 410.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 8.309e-05/0.2796, allocations: 12.59 kB / 410.8 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001571/0.2798, allocations: 15.78 kB / 410.9 MB, free: 15.45 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001753/0.28, allocations: 58.27 kB / 410.9 MB, free: 15.43 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001182/0.2801, allocations: 104.5 kB / 411 MB, free: 15.42 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005737/0.2807, allocations: 415.7 kB / 411.4 MB, free: 15.21 MB / 334.1 MB Notification: Performance of sort global known variables: time 7e-08/0.2807, allocations: 0.9375 kB / 411.4 MB, free: 15.21 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003482/0.281, allocations: 55.66 kB / 411.5 MB, free: 15.2 MB / 334.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.2825, allocations: 1.366 MB / 412.8 MB, free: 14.11 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0008516/0.2834, allocations: 0.7638 MB / 413.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.504e-06/0.2834, allocations: 1.094 kB / 413.6 MB, free: 13.4 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005205/0.2839, allocations: 0.5226 MB / 414.1 MB, free: 12.89 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0009037/0.2848, allocations: 193 kB / 414.3 MB, free: 12.82 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.005078/0.2899, allocations: 3.975 MB / 418.3 MB, free: 9.816 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003057/0.2902, allocations: 208 kB / 418.5 MB, free: 9.668 MB / 334.1 MB Notification: Performance of simCode: alias equations: time 0.0001229/0.2903, allocations: 14.77 kB / 418.5 MB, free: 9.652 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.476e-05/0.2904, allocations: 46.67 kB / 418.6 MB, free: 9.613 MB / 334.1 MB Notification: Performance of SimCode: time 6.52e-07/0.2904, allocations: 0 / 418.6 MB, free: 9.613 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.0338/0.3242, allocations: 10.1 MB / 428.6 MB, free: 1.832 MB / 334.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 10.77/11.1, allocations: 11.92 kB / 428.7 MB, free: 1.82 MB / 334.1 MB " [Timeout remaining time 649] (rm -f Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; mkfifo Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe ; head -c 1048576 < Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe >> ../files/Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.sim & /home/hudson/saved_omc/OMSimulator/install/bin/OMSimulator -r=Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat --tempDir=temp_Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1_fmu --startTime=0 --stopTime=15 --stepSize=0.00299162 --timeout=50 --tolerance=1e-06 Modelica_3_2_3_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_3.2.3_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) [Timeout 52.5] [Calling os._exit(0), Time elapsed: 13.384595173993148] Failed to read output from testmodel.py, exit status != 0: ['time', 'Mux2x1.out'] 11.25763046706561 11.27214989 11.000772358 Calling exit ...