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.001254/0.001254, allocations: 120.2 kB / 18.5 MB, free: 4.535 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.001547/0.001547, allocations: 222.2 kB / 21.46 MB, free: 1.582 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.499/1.499, allocations: 230.4 MB / 254.7 MB, free: 15.02 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.002762/0.002762, allocations: 59.91 kB / 373.7 MB, free: 10.07 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.1192/0.122, allocations: 53.37 MB / 427.1 MB, free: 4.598 MB / 350.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002864/0.1249, allocations: 1.59 MB / 428.6 MB, free: 3 MB / 350.1 MB Notification: Performance of NFInst.instExpressions: time 0.002045/0.1269, allocations: 0.8965 MB / 429.5 MB, free: 2.098 MB / 350.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.174e-05/0.127, allocations: 4 kB / 429.5 MB, free: 2.094 MB / 350.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001009/0.1271, allocations: 11.86 kB / 429.6 MB, free: 2.082 MB / 350.1 MB Notification: Performance of NFTyping.typeBindings: time 9.927e-05/0.1272, allocations: 27.8 kB / 429.6 MB, free: 2.055 MB / 350.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002753/0.1274, allocations: 51.88 kB / 429.6 MB, free: 2.004 MB / 350.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002415/0.1277, allocations: 155.7 kB / 429.8 MB, free: 1.852 MB / 350.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001164/0.1278, allocations: 25.38 kB / 429.8 MB, free: 1.82 MB / 350.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007273/0.1285, allocations: 0.6278 MB / 430.4 MB, free: 1.191 MB / 350.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001525/0.1287, allocations: 83.67 kB / 430.5 MB, free: 1.109 MB / 350.1 MB Notification: Performance of NFPackage.collectConstants: time 4.873e-05/0.1287, allocations: 12 kB / 430.5 MB, free: 1.098 MB / 350.1 MB Notification: Performance of NFFlatten.collectFunctions: time 3.611e-05/0.1288, allocations: 19.94 kB / 430.6 MB, free: 1.078 MB / 350.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000106/0.1289, allocations: 79.69 kB / 430.6 MB, free: 1 MB / 350.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001434/0.129, allocations: 135 kB / 430.8 MB, free: 0.8672 MB / 350.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004872/0.1295, allocations: 446.2 kB / 431.2 MB, free: 440 kB / 350.1 MB Notification: Performance of FrontEnd - DAE generated: time 5.14e-06/0.1295, allocations: 0 / 431.2 MB, free: 440 kB / 350.1 MB Notification: Performance of FrontEnd: time 2.094e-06/0.1295, allocations: 3.938 kB / 431.2 MB, free: 436 kB / 350.1 MB Notification: Performance of Transformations before backend: time 1.006e-05/0.1295, allocations: 0 / 431.2 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: 16 * Number of variables: 16 Notification: Performance of Generate backend data structure: time 0.1902/0.3197, allocations: 0.8298 MB / 432 MB, free: 10.88 MB / 350.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.859e-05/0.3197, allocations: 9.594 kB / 432 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 2.051e-05/0.3198, allocations: 2.812 kB / 432 MB, free: 10.88 MB / 350.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.612e-05/0.3198, allocations: 44.45 kB / 432.1 MB, free: 10.84 MB / 350.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.937e-05/0.3199, allocations: 46.25 kB / 432.1 MB, free: 10.81 MB / 350.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003027/0.3202, allocations: 289.9 kB / 432.4 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.838e-05/0.3202, allocations: 6.812 kB / 432.4 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.425e-05/0.3203, allocations: 14.62 kB / 432.4 MB, free: 10.57 MB / 350.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004298/0.3207, allocations: 171.9 kB / 432.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 1.082e-05/0.3207, allocations: 1.516 kB / 432.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.159e-05/0.3207, allocations: 4.188 kB / 432.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.69e-06/0.3207, allocations: 1.938 kB / 432.6 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0002047/0.3209, allocations: 87.09 kB / 432.7 MB, free: 10.54 MB / 350.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007263/0.3217, allocations: 0.4989 MB / 433.2 MB, free: 10.24 MB / 350.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002231/0.3219, allocations: 102.9 kB / 433.3 MB, free: 10.22 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001941/0.3221, allocations: 87.08 kB / 433.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.13e-05/0.3221, allocations: 2.016 kB / 433.4 MB, free: 10.21 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004789/0.3226, allocations: 247 kB / 433.6 MB, free: 10.1 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 2.184e-06/0.3226, allocations: 0.5625 kB / 433.6 MB, free: 10.1 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.00108/0.3237, allocations: 0.6124 MB / 434.2 MB, free: 9.891 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 7.715e-05/0.3237, allocations: 195.9 kB / 434.4 MB, free: 9.672 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007026/0.3244, allocations: 0.5626 MB / 435 MB, free: 9.465 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.469e-05/0.3245, allocations: 32.83 kB / 435 MB, free: 9.434 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 5.944e-05/0.3245, allocations: 114.7 kB / 435.1 MB, free: 9.352 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.696e-05/0.3246, allocations: 37.94 kB / 435.2 MB, free: 9.336 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001359/0.3247, allocations: 97.38 kB / 435.3 MB, free: 9.309 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 6.034e-05/0.3248, allocations: 333.6 kB / 435.6 MB, free: 8.992 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001579/0.3249, allocations: 86.64 kB / 435.7 MB, free: 8.992 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001831/0.3251, allocations: 99.22 kB / 435.8 MB, free: 8.977 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003228/0.3254, allocations: 430.9 kB / 436.2 MB, free: 8.648 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 3.527e-06/0.3254, allocations: 2 kB / 436.2 MB, free: 8.648 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006435/0.3261, allocations: 0.5113 MB / 436.7 MB, free: 8.449 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 7.015e-05/0.3262, allocations: 150.2 kB / 436.9 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.711e-06/0.3262, allocations: 1.344 kB / 436.9 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.735e-05/0.3262, allocations: 0 / 436.9 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.277e-05/0.3262, allocations: 1.938 kB / 436.9 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.2e-06/0.3262, allocations: 1.469 kB / 436.9 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001744/0.3264, allocations: 17.11 kB / 436.9 MB, free: 8.293 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001078/0.3265, allocations: 96.2 kB / 437 MB, free: 8.293 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.0003131/0.3268, allocations: 411.7 kB / 437.4 MB, free: 7.988 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.65e-05/0.3269, allocations: 46.5 kB / 437.4 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001062/0.327, allocations: 70.12 kB / 437.5 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.248e-06/0.327, allocations: 1.094 kB / 437.5 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.45e-06/0.327, allocations: 0 / 437.5 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.047e-06/0.327, allocations: 1.75 kB / 437.5 MB, free: 7.934 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001217/0.3282, allocations: 0.9678 MB / 438.5 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.425e-06/0.3282, allocations: 1.094 kB / 438.5 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 8.165e-06/0.3282, allocations: 1.062 kB / 438.5 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 6.332e-06/0.3282, allocations: 1.797 kB / 438.5 MB, free: 7.312 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.889e-05/0.3283, allocations: 27.64 kB / 438.5 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 2.315e-06/0.3283, allocations: 0 / 438.5 MB, free: 7.309 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 3.156e-06/0.3283, allocations: 5.219 kB / 438.5 MB, free: 7.305 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008865/0.3292, allocations: 0.6611 MB / 439.2 MB, free: 6.914 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003264/0.3295, allocations: 261.4 kB / 439.4 MB, free: 6.73 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.128e-05/0.3296, allocations: 12 kB / 439.4 MB, free: 6.727 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001545/0.3297, allocations: 15.97 kB / 439.4 MB, free: 6.723 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001641/0.3299, allocations: 58.77 kB / 439.5 MB, free: 6.707 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001237/0.33, allocations: 108.9 kB / 439.6 MB, free: 6.699 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005201/0.3305, allocations: 419.4 kB / 440 MB, free: 6.484 MB / 350.1 MB Notification: Performance of sort global known variables: time 7e-08/0.3305, allocations: 1.281 kB / 440 MB, free: 6.484 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003432/0.3309, allocations: 48.41 kB / 440.1 MB, free: 6.484 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.001036/0.3319, allocations: 1.22 MB / 441.3 MB, free: 5.562 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0005343/0.3324, allocations: 484.1 kB / 441.8 MB, free: 5.191 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.565e-06/0.3324, allocations: 0 / 441.8 MB, free: 5.191 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0002766/0.3327, allocations: 384.3 kB / 442.1 MB, free: 4.848 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008848/0.3336, allocations: 194.9 kB / 442.3 MB, free: 4.805 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004114/0.3377, allocations: 3.234 MB / 445.6 MB, free: 2.75 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004024/0.3381, allocations: 0.819 MB / 446.4 MB, free: 2.016 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001085/0.3382, allocations: 12.25 kB / 446.4 MB, free: 2.008 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 6.269e-05/0.3383, allocations: 52.73 kB / 446.4 MB, free: 1.969 MB / 350.1 MB Notification: Performance of SimCode: time 6.11e-07/0.3383, allocations: 0 / 446.4 MB, free: 1.969 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.02808/0.3664, allocations: 9.286 MB / 455.7 MB, free: 15.38 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 8.347/8.713, allocations: 11.17 kB / 455.7 MB, free: 15.38 MB / 366.1 MB " [Timeout remaining time 651] (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: 11.176630501984619] Failed to read output from testmodel.py, exit status != 0: ['time', 'Mux2x1.out'] 8.843284323986154 8.867976536 8.733726432 Calling exit ...