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) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) 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"}) Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001391/0.001392, allocations: 122.2 kB / 17.79 MB, free: 5.273 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001299/0.001299, allocations: 201.2 kB / 18.74 MB, free: 4.332 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.409/1.409, allocations: 227.4 MB / 247 MB, free: 10.42 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001727/0.001727, allocations: 63.89 kB / 358.3 MB, free: 13.37 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.2574/0.2591, allocations: 50.55 MB / 408.8 MB, free: 1.492 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.002943/0.2621, allocations: 1.578 MB / 410.4 MB, free: 15.91 MB / 334.1 MB Notification: Performance of NFInst.instExpressions: time 0.002031/0.2642, allocations: 0.9004 MB / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 6.017e-05/0.2643, allocations: 0 / 411.3 MB, free: 15 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 0.0001229/0.2644, allocations: 11.88 kB / 411.3 MB, free: 14.99 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 9.061e-05/0.2645, allocations: 19.84 kB / 411.3 MB, free: 14.97 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002732/0.2648, allocations: 51.88 kB / 411.4 MB, free: 14.92 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002754/0.2651, allocations: 179.6 kB / 411.6 MB, free: 14.75 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001175/0.2652, allocations: 25.39 kB / 411.6 MB, free: 14.71 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0007391/0.266, allocations: 0.6199 MB / 412.2 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001694/0.2661, allocations: 83.69 kB / 412.3 MB, free: 14.01 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.72e-05/0.2662, allocations: 12 kB / 412.3 MB, free: 14 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 4.469e-05/0.2663, allocations: 8 kB / 412.3 MB, free: 13.99 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 0.000116/0.2664, allocations: 79.62 kB / 412.4 MB, free: 13.91 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001693/0.2666, allocations: 135 kB / 412.5 MB, free: 13.78 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0004938/0.2671, allocations: 457.1 kB / 413 MB, free: 13.34 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 7.214e-06/0.2671, allocations: 0 / 413 MB, free: 13.34 MB / 334.1 MB Notification: Performance of FrontEnd: time 1.813e-06/0.2671, allocations: 3.938 kB / 413 MB, free: 13.33 MB / 334.1 MB Notification: Performance of Transformations before backend: time 7.714e-06/0.2671, allocations: 0 / 413 MB, free: 13.33 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.001033/0.2681, allocations: 0.8216 MB / 413.8 MB, free: 12.43 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 5.988e-05/0.2682, allocations: 12.03 kB / 413.8 MB, free: 12.42 MB / 334.1 MB Notification: Performance of preOpt introduceOutputAliases (simulation): time 7.087e-05/0.2683, allocations: 38.75 kB / 413.8 MB, free: 12.37 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.984e-05/0.2684, allocations: 44.66 kB / 413.9 MB, free: 12.33 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.000387/0.2688, allocations: 298.5 kB / 414.2 MB, free: 12 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.475e-05/0.2688, allocations: 12.36 kB / 414.2 MB, free: 11.98 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.715e-05/0.2689, allocations: 12.38 kB / 414.2 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0004228/0.2693, allocations: 165.7 kB / 414.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 9.949e-06/0.2693, allocations: 0 / 414.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.981e-05/0.2693, allocations: 7.984 kB / 414.4 MB, free: 11.8 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 1.143e-05/0.2694, allocations: 7.984 kB / 414.4 MB, free: 11.79 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001958/0.2696, allocations: 83.89 kB / 414.5 MB, free: 11.71 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0009017/0.2705, allocations: 0.5043 MB / 415 MB, free: 11.15 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002464/0.2707, allocations: 126.5 kB / 415.1 MB, free: 11.02 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0002043/0.2709, allocations: 108.9 kB / 415.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.117e-05/0.271, allocations: 3.984 kB / 415.2 MB, free: 10.91 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0004971/0.2715, allocations: 238.6 kB / 415.4 MB, free: 10.65 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.473e-06/0.2715, allocations: 4 kB / 415.4 MB, free: 10.64 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.001133/0.2726, allocations: 0.6111 MB / 416 MB, free: 9.996 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001474/0.2728, allocations: 199.9 kB / 416.2 MB, free: 9.758 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0008083/0.2736, allocations: 0.5639 MB / 416.8 MB, free: 9.176 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 4.307e-05/0.2736, allocations: 29.7 kB / 416.8 MB, free: 9.141 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 9.573e-05/0.2737, allocations: 117.1 kB / 416.9 MB, free: 9.023 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.74e-05/0.2738, allocations: 31.8 kB / 417 MB, free: 8.992 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001562/0.274, allocations: 101.6 kB / 417.1 MB, free: 8.887 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001548/0.2741, allocations: 334.7 kB / 417.4 MB, free: 8.551 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001671/0.2743, allocations: 83.95 kB / 417.5 MB, free: 8.469 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001811/0.2745, allocations: 105.7 kB / 417.6 MB, free: 8.359 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0004654/0.275, allocations: 437.8 kB / 418 MB, free: 7.867 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.816e-06/0.275, allocations: 3.938 kB / 418 MB, free: 7.863 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0007635/0.2757, allocations: 0.498 MB / 418.5 MB, free: 7.328 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 0.000137/0.2759, allocations: 152.5 kB / 418.7 MB, free: 7.148 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 5.54e-06/0.2759, allocations: 0 / 418.7 MB, free: 7.148 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.603e-05/0.2759, allocations: 4.094 kB / 418.7 MB, free: 7.145 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 2.577e-05/0.276, allocations: 4 kB / 418.7 MB, free: 7.141 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 7.224e-06/0.276, allocations: 4 kB / 418.7 MB, free: 7.137 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001631/0.2761, allocations: 11.98 kB / 418.7 MB, free: 7.125 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001265/0.2763, allocations: 105.2 kB / 418.8 MB, free: 7.023 MB / 334.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.0004644/0.2768, allocations: 392.1 kB / 419.2 MB, free: 6.602 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 7.305e-05/0.2768, allocations: 43.72 kB / 419.2 MB, free: 6.559 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001234/0.277, allocations: 71.47 kB / 419.3 MB, free: 6.492 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 4.499e-06/0.277, allocations: 4 kB / 419.3 MB, free: 6.488 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 8.666e-06/0.277, allocations: 4 kB / 419.3 MB, free: 6.484 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 4.438e-06/0.277, allocations: 0 / 419.3 MB, free: 6.484 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001314/0.2783, allocations: 0.9711 MB / 420.3 MB, free: 5.426 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.803e-06/0.2783, allocations: 0 / 420.3 MB, free: 5.426 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 5.64e-06/0.2784, allocations: 0 / 420.3 MB, free: 5.426 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.094e-06/0.2784, allocations: 0 / 420.3 MB, free: 5.426 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 5.137e-05/0.2784, allocations: 23.98 kB / 420.3 MB, free: 5.402 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 3.908e-06/0.2784, allocations: 3.938 kB / 420.3 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.623e-06/0.2784, allocations: 0 / 420.3 MB, free: 5.398 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0008938/0.2793, allocations: 0.6636 MB / 421 MB, free: 4.688 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003355/0.2797, allocations: 260.6 kB / 421.2 MB, free: 4.414 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.737e-05/0.2798, allocations: 8 kB / 421.2 MB, free: 4.406 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001455/0.2799, allocations: 19.92 kB / 421.2 MB, free: 4.387 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001523/0.2801, allocations: 51.94 kB / 421.3 MB, free: 4.336 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001164/0.2802, allocations: 109.2 kB / 421.4 MB, free: 4.23 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0005288/0.2807, allocations: 418.8 kB / 421.8 MB, free: 3.824 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.3e-07/0.2807, allocations: 4 kB / 421.8 MB, free: 3.82 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003185/0.2811, allocations: 52 kB / 421.9 MB, free: 3.77 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.001249/0.2823, allocations: 1.231 MB / 423.1 MB, free: 2.484 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006859/0.283, allocations: 0.536 MB / 423.6 MB, free: 1.887 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.284e-06/0.283, allocations: 4.062 kB / 423.6 MB, free: 1.883 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0004455/0.2835, allocations: 464.9 kB / 424.1 MB, free: 1.367 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.000884/0.2844, allocations: 187.3 kB / 424.3 MB, free: 1.199 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.004308/0.2887, allocations: 3.233 MB / 427.5 MB, free: 13.85 MB / 350.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0005686/0.2893, allocations: 0.8221 MB / 428.3 MB, free: 13 MB / 350.1 MB Notification: Performance of simCode: alias equations: time 0.0001154/0.2894, allocations: 12.88 kB / 428.3 MB, free: 12.99 MB / 350.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 7.449e-05/0.2895, allocations: 43.42 kB / 428.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of SimCode: time 1.022e-06/0.2895, allocations: 0 / 428.4 MB, free: 12.95 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate the FMI files: time 0.03358/0.3231, allocations: 9.222 MB / 437.6 MB, free: 3.66 MB / 350.1 MB Notification: Performance of buildModelFMU: Generate platform static: time 7.989/8.312, allocations: 8.938 kB / 437.6 MB, free: 3.652 MB / 350.1 MB (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 --timeout=50 --tolerance=1e-06 Modelica_trunk_Modelica_Electrical_Digital_Examples_MUX2x1.fmu > Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.pipe 2>&1) 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) Reference file matches