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.001987/0.001987, allocations: 119.1 kB / 20.45 MB, free: 1.176 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.002355/0.002355, allocations: 206.3 kB / 23.72 MB, free: 4.391 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.475/1.475, allocations: 230.5 MB / 257.4 MB, free: 7.758 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="me",version="2.0",platforms={"static"}) "" <> buildModelFMU(Modelica.Electrical.Digital.Examples.MUX2x1,fileNamePrefix="Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1",fmuType="me",version="2.0",platforms={"static"}) [Timeout 660] "Notification: Performance of FrontEnd - loaded program: time 0.002296/0.002296, allocations: 71.88 kB / 377.7 MB, free: 2.816 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2776/0.2799, allocations: 53.41 MB / 431.1 MB, free: 6.441 MB / 334.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002605/0.2825, allocations: 1.522 MB / 432.7 MB, free: 4.914 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.001991/0.2845, allocations: 0.8459 MB / 433.5 MB, free: 4.062 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.732e-05/0.2845, allocations: 4 kB / 433.5 MB, free: 4.059 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 8.461e-05/0.2846, allocations: 11.86 kB / 433.5 MB, free: 4.047 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.287e-05/0.2847, allocations: 19.86 kB / 433.5 MB, free: 4.027 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002684/0.285, allocations: 63.86 kB / 433.6 MB, free: 3.965 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002387/0.2852, allocations: 159.6 kB / 433.8 MB, free: 3.809 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001115/0.2853, allocations: 13.58 kB / 433.8 MB, free: 3.789 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007588/0.2861, allocations: 0.6356 MB / 434.4 MB, free: 3.152 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001459/0.2862, allocations: 83.61 kB / 434.5 MB, free: 3.07 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.505e-05/0.2863, allocations: 12 kB / 434.5 MB, free: 3.059 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.368e-05/0.2863, allocations: 12 kB / 434.5 MB, free: 3.047 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 8.924e-05/0.2864, allocations: 75.69 kB / 434.6 MB, free: 2.973 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.00011/0.2865, allocations: 95.23 kB / 434.7 MB, free: 2.879 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004278/0.2869, allocations: 459.8 kB / 435.1 MB, free: 2.43 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 2.565e-06/0.2869, allocations: 0 / 435.1 MB, free: 2.43 MB / 334.1 MB Notification: Performance of FrontEnd: time 9.02e-07/0.2869, allocations: 4 kB / 435.1 MB, free: 2.426 MB / 334.1 MB Notification: Performance of Transformations before backend: time 9.568e-06/0.287, allocations: 0 / 435.1 MB, free: 2.426 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.0008237/0.2878, allocations: 0.7579 MB / 435.9 MB, free: 1.605 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.791e-05/0.2878, allocations: 11.98 kB / 435.9 MB, free: 1.594 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 4.887e-05/0.2879, allocations: 38.75 kB / 435.9 MB, free: 1.547 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 7.552e-05/0.2879, allocations: 56.58 kB / 436 MB, free: 1.492 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003411/0.2883, allocations: 240.7 kB / 436.2 MB, free: 1.23 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 1.762e-05/0.2883, allocations: 8.375 kB / 436.2 MB, free: 1.223 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.482e-05/0.2883, allocations: 8.375 kB / 436.3 MB, free: 1.215 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004202/0.2888, allocations: 318.2 kB / 436.6 MB, free: 0.8672 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.243e-06/0.2888, allocations: 4 kB / 436.6 MB, free: 0.8633 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.423e-05/0.2888, allocations: 8 kB / 436.6 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 8.356e-06/0.2888, allocations: 4 kB / 436.6 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.00026/0.2891, allocations: 228.5 kB / 436.8 MB, free: 0.5977 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0008099/0.2899, allocations: 459.5 kB / 437.2 MB, free: 108 kB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0003187/0.2902, allocations: 239 kB / 437.5 MB, free: 15.83 MB / 350.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002703/0.2905, allocations: 233.4 kB / 437.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.058e-05/0.2905, allocations: 3.938 kB / 437.7 MB, free: 15.57 MB / 350.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0005127/0.291, allocations: 394.2 kB / 438.1 MB, free: 15.13 MB / 350.1 MB Notification: Performance of pre-optimization done (n=14): time 1.633e-06/0.291, allocations: 4 kB / 438.1 MB, free: 15.12 MB / 350.1 MB Notification: Performance of matching and sorting (n=14): time 0.001213/0.2922, allocations: 0.8972 MB / 439 MB, free: 14.13 MB / 350.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001213/0.2923, allocations: 195.9 kB / 439.2 MB, free: 13.89 MB / 350.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0007482/0.2931, allocations: 0.5717 MB / 439.8 MB, free: 13.31 MB / 350.1 MB Notification: Performance of collectPreVariables (initialization): time 4.306e-05/0.2931, allocations: 29.7 kB / 439.8 MB, free: 13.28 MB / 350.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.631e-05/0.2932, allocations: 109.1 kB / 439.9 MB, free: 13.16 MB / 350.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.542e-05/0.2932, allocations: 31.91 kB / 439.9 MB, free: 13.13 MB / 350.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001361/0.2934, allocations: 105.4 kB / 440 MB, free: 13.02 MB / 350.1 MB Notification: Performance of setup shared object (initialization): time 0.0001431/0.2935, allocations: 330.8 kB / 440.4 MB, free: 12.69 MB / 350.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0002554/0.2938, allocations: 228.5 kB / 440.6 MB, free: 12.44 MB / 350.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0002596/0.294, allocations: 254.3 kB / 440.8 MB, free: 12.15 MB / 350.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004507/0.2945, allocations: 445.5 kB / 441.3 MB, free: 11.65 MB / 350.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.733e-06/0.2945, allocations: 0 / 441.3 MB, free: 11.65 MB / 350.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007928/0.2953, allocations: 0.6508 MB / 441.9 MB, free: 10.93 MB / 350.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.0001346/0.2954, allocations: 156.4 kB / 442.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 6.092e-06/0.2954, allocations: 0 / 442.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.514e-05/0.2954, allocations: 0 / 442.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.008e-05/0.2955, allocations: 0 / 442.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.424e-06/0.2955, allocations: 4 kB / 442.1 MB, free: 10.75 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001561/0.2956, allocations: 16.02 kB / 442.1 MB, free: 10.73 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001137/0.2957, allocations: 101.2 kB / 442.2 MB, free: 10.63 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.0003948/0.2961, allocations: 404 kB / 442.6 MB, free: 10.2 MB / 350.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.802e-05/0.2962, allocations: 47.72 kB / 442.6 MB, free: 10.15 MB / 350.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001055/0.2963, allocations: 67.42 kB / 442.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.995e-06/0.2963, allocations: 0 / 442.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 5.33e-06/0.2963, allocations: 3.938 kB / 442.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 3.056e-06/0.2963, allocations: 0 / 442.7 MB, free: 10.09 MB / 350.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001269/0.2976, allocations: 1.065 MB / 443.8 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.004e-06/0.2976, allocations: 0 / 443.8 MB, free: 8.91 MB / 350.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.939e-06/0.2976, allocations: 4 kB / 443.8 MB, free: 8.906 MB / 350.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 4.579e-06/0.2976, allocations: 3.984 kB / 443.8 MB, free: 8.902 MB / 350.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.815e-05/0.2976, allocations: 20 kB / 443.8 MB, free: 8.883 MB / 350.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.456e-06/0.2976, allocations: 3.938 kB / 443.8 MB, free: 8.879 MB / 350.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.495e-06/0.2976, allocations: 3.984 kB / 443.8 MB, free: 8.875 MB / 350.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0009155/0.2986, allocations: 0.8083 MB / 444.6 MB, free: 7.992 MB / 350.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0004271/0.299, allocations: 213.3 kB / 444.8 MB, free: 7.785 MB / 350.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.696e-05/0.299, allocations: 12 kB / 444.8 MB, free: 7.773 MB / 350.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001485/0.2992, allocations: 15.92 kB / 444.8 MB, free: 7.758 MB / 350.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001706/0.2994, allocations: 56 kB / 444.9 MB, free: 7.703 MB / 350.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001137/0.2995, allocations: 121.2 kB / 445 MB, free: 7.586 MB / 350.1 MB Notification: Performance of sorting global known variables: time 0.0005027/0.3, allocations: 418.8 kB / 445.4 MB, free: 7.184 MB / 350.1 MB Notification: Performance of sort global known variables: time 9e-08/0.3, allocations: 0 / 445.4 MB, free: 7.184 MB / 350.1 MB Notification: Performance of remove unused functions: time 0.0002971/0.3003, allocations: 48 kB / 445.5 MB, free: 7.137 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.001264/0.3015, allocations: 1.369 MB / 446.8 MB, free: 5.68 MB / 350.1 MB Notification: Performance of simCode: created initialization part: time 0.000798/0.3023, allocations: 0.7635 MB / 447.6 MB, free: 4.793 MB / 350.1 MB Notification: Performance of simCode: created event and clocks part: time 2.335e-06/0.3023, allocations: 0 / 447.6 MB, free: 4.793 MB / 350.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0005012/0.3028, allocations: 0.5288 MB / 448.1 MB, free: 4.172 MB / 350.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008782/0.3037, allocations: 194 kB / 448.3 MB, free: 3.992 MB / 350.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004871/0.3086, allocations: 3.969 MB / 452.3 MB, free: 15.76 MB / 366.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000281/0.3089, allocations: 211.5 kB / 452.5 MB, free: 15.53 MB / 366.1 MB Notification: Performance of simCode: alias equations: time 7.898e-05/0.309, allocations: 12.97 kB / 452.5 MB, free: 15.52 MB / 366.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.044e-05/0.309, allocations: 39.42 kB / 452.5 MB, free: 15.48 MB / 366.1 MB Notification: Performance of SimCode: time 9.82e-07/0.309, allocations: 4 kB / 452.5 MB, free: 15.47 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03875/0.3478, allocations: 10.47 MB / 463 MB, free: 4.973 MB / 366.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 11.25/11.6, allocations: 14.03 kB / 463 MB, free: 4.961 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] diffSimulationResults("Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1_res.mat","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.1.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","/var/lib/jenkins1/ws/OpenModelicaLibraryTestingWork/OpenModelicaLibraryTesting/files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) [Timeout 660] "" [Timeout remaining time 660] Reference file matches [Calling sys.exit(0), Time elapsed: 14.14061408303678]