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.001302/0.001302, allocations: 105.1 kB / 21.21 MB, free: 0.6523 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.001466/0.001466, allocations: 212.9 kB / 24.52 MB, free: 3.941 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.418/1.418, allocations: 230.6 MB / 258.3 MB, free: 7.781 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.001487/0.001487, allocations: 43.94 kB / 378.5 MB, free: 2.984 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2796/0.281, allocations: 53.35 MB / 431.8 MB, free: 6.66 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.003118/0.2842, allocations: 1.54 MB / 433.4 MB, free: 5.117 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002099/0.2863, allocations: 0.8459 MB / 434.2 MB, free: 4.266 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.48e-05/0.2863, allocations: 4 kB / 434.2 MB, free: 4.262 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.782e-05/0.2864, allocations: 11.86 kB / 434.2 MB, free: 4.25 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 0.0001022/0.2865, allocations: 35.78 kB / 434.3 MB, free: 4.215 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002709/0.2868, allocations: 47.89 kB / 434.3 MB, free: 4.168 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002556/0.287, allocations: 163.7 kB / 434.5 MB, free: 4.008 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001132/0.2872, allocations: 23.69 kB / 434.5 MB, free: 3.98 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007201/0.2879, allocations: 0.6356 MB / 435.1 MB, free: 3.344 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001633/0.288, allocations: 83.62 kB / 435.2 MB, free: 3.262 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.493e-05/0.2881, allocations: 12 kB / 435.2 MB, free: 3.25 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.41e-05/0.2881, allocations: 12 kB / 435.3 MB, free: 3.238 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.0001062/0.2882, allocations: 71.7 kB / 435.3 MB, free: 3.168 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001364/0.2884, allocations: 99.22 kB / 435.4 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0005071/0.2889, allocations: 466 kB / 435.9 MB, free: 2.613 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 6.352e-06/0.2889, allocations: 4 kB / 435.9 MB, free: 2.609 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.463e-06/0.2889, allocations: 0 / 435.9 MB, free: 2.609 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.23e-05/0.2889, allocations: 0 / 435.9 MB, free: 2.609 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.0009313/0.2898, allocations: 0.7424 MB / 436.6 MB, free: 1.805 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 4.218e-05/0.2899, allocations: 8.031 kB / 436.6 MB, free: 1.797 MB / 334.1 MB Notification: Performance of preOpt introduceOutputRealDerivatives (simulation): time 1.959e-05/0.2899, allocations: 8.125 kB / 436.6 MB, free: 1.789 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 5.489e-05/0.29, allocations: 42.73 kB / 436.7 MB, free: 1.738 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.91e-05/0.29, allocations: 44.66 kB / 436.7 MB, free: 1.695 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000329/0.2904, allocations: 236.8 kB / 437 MB, free: 1.438 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.079e-05/0.2904, allocations: 8.375 kB / 437 MB, free: 1.43 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 4.109e-05/0.2904, allocations: 16.38 kB / 437 MB, free: 1.414 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004801/0.2909, allocations: 313.9 kB / 437.3 MB, free: 1.07 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.989e-06/0.2909, allocations: 3.938 kB / 437.3 MB, free: 1.066 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.322e-05/0.291, allocations: 11.98 kB / 437.3 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 5.49e-06/0.291, allocations: 0 / 437.3 MB, free: 1.055 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0003053/0.2913, allocations: 228.5 kB / 437.5 MB, free: 0.8008 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0007278/0.292, allocations: 459.5 kB / 438 MB, free: 316 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.000307/0.2923, allocations: 243 kB / 438.2 MB, free: 32 kB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002807/0.2926, allocations: 233.4 kB / 438.4 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.111e-05/0.2926, allocations: 4.109 kB / 438.4 MB, free: 15.77 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005292/0.2931, allocations: 395 kB / 438.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.523e-06/0.2931, allocations: 4 kB / 438.8 MB, free: 15.32 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.00123/0.2944, allocations: 0.9008 MB / 439.7 MB, free: 14.32 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001328/0.2945, allocations: 195.9 kB / 439.9 MB, free: 14.09 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007289/0.2952, allocations: 0.5562 MB / 440.5 MB, free: 13.52 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 3.923e-05/0.2953, allocations: 33.7 kB / 440.5 MB, free: 13.48 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.102e-05/0.2953, allocations: 117.1 kB / 440.6 MB, free: 13.36 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 5.267e-05/0.2954, allocations: 31.75 kB / 440.7 MB, free: 13.33 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001568/0.2956, allocations: 101.5 kB / 440.8 MB, free: 13.23 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001566/0.2957, allocations: 338.8 kB / 441.1 MB, free: 12.89 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002645/0.296, allocations: 224.5 kB / 441.3 MB, free: 12.64 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002783/0.2963, allocations: 250.3 kB / 441.6 MB, free: 12.36 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004743/0.2967, allocations: 445.7 kB / 442 MB, free: 11.86 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.465e-06/0.2967, allocations: 0 / 442 MB, free: 11.86 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0008915/0.2976, allocations: 0.6509 MB / 442.6 MB, free: 11.14 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001252/0.2977, allocations: 152.5 kB / 442.8 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.67e-06/0.2978, allocations: 80 / 442.8 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.657e-05/0.2978, allocations: 0 / 442.8 MB, free: 10.96 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.489e-05/0.2978, allocations: 8.031 kB / 442.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 8.977e-06/0.2978, allocations: 4.047 kB / 442.8 MB, free: 10.95 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001556/0.298, allocations: 23.92 kB / 442.8 MB, free: 10.92 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001131/0.2981, allocations: 93.25 kB / 442.9 MB, free: 10.83 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.0004077/0.2985, allocations: 399.9 kB / 443.3 MB, free: 10.4 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.582e-05/0.2985, allocations: 47.72 kB / 443.3 MB, free: 10.36 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.000104/0.2986, allocations: 71.41 kB / 443.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.244e-06/0.2987, allocations: 0 / 443.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.498e-06/0.2987, allocations: 0 / 443.4 MB, free: 10.29 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 6.222e-06/0.2987, allocations: 7.922 kB / 443.4 MB, free: 10.28 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001309/0.3, allocations: 1.061 MB / 444.5 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.783e-06/0.3, allocations: 0 / 444.5 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.398e-06/0.3, allocations: 0 / 444.5 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 1.913e-06/0.3, allocations: 0 / 444.5 MB, free: 9.109 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 4.716e-05/0.3, allocations: 27.92 kB / 444.5 MB, free: 9.082 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.156e-06/0.3, allocations: 7.875 kB / 444.5 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.402e-06/0.3, allocations: 0 / 444.5 MB, free: 9.074 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.000947/0.301, allocations: 0.8126 MB / 445.3 MB, free: 8.184 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003796/0.3014, allocations: 213.3 kB / 445.5 MB, free: 7.977 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.68e-05/0.3014, allocations: 12 kB / 445.6 MB, free: 7.965 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001493/0.3016, allocations: 23.86 kB / 445.6 MB, free: 7.941 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001728/0.3018, allocations: 55.94 kB / 445.6 MB, free: 7.887 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001113/0.3019, allocations: 101.2 kB / 445.7 MB, free: 7.789 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005346/0.3024, allocations: 422.8 kB / 446.1 MB, free: 7.383 MB / 350.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.3024, allocations: 0 / 446.1 MB, free: 7.383 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0003014/0.3027, allocations: 48 kB / 446.2 MB, free: 7.336 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.001395/0.3041, allocations: 1.381 MB / 447.6 MB, free: 5.867 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.0008699/0.305, allocations: 0.7635 MB / 448.3 MB, free: 4.98 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.294e-06/0.305, allocations: 0 / 448.3 MB, free: 4.98 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005116/0.3055, allocations: 0.5249 MB / 448.9 MB, free: 4.363 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008355/0.3063, allocations: 199 kB / 449.1 MB, free: 4.18 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004826/0.3111, allocations: 3.962 MB / 453 MB, free: 15.95 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0003014/0.3114, allocations: 211.5 kB / 453.2 MB, free: 15.72 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 0.0001054/0.3116, allocations: 16.97 kB / 453.2 MB, free: 15.7 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.745e-05/0.3116, allocations: 43.42 kB / 453.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of SimCode: time 7.02e-07/0.3116, allocations: 0 / 453.3 MB, free: 15.66 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03313/0.3448, allocations: 10.09 MB / 463.4 MB, free: 5.637 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.19/11.53, allocations: 10.36 kB / 463.4 MB, free: 5.633 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.90859508793801] Failed to read output from testmodel.py, exit status != 0: ['time', 'Mux2x1.out'] 11.693911285023205 11.719272352 11.426166839 Calling exit ...