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: translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1") translateModel(Modelica.Electrical.Digital.Examples.MUX2x1,tolerance=1e-06,outputFormat="mat",numberOfIntervals=5000,variableFilter="time|Mux2x1.out",fileNamePrefix="Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1") Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.001089/0.001089, allocations: 117.7 kB / 18.46 MB, free: 4.605 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Complex trunk/package.mo): time 0.001103/0.001103, allocations: 212.8 kB / 19.41 MB, free: 3.66 MB / 14.72 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.45/1.45, allocations: 227.4 MB / 247.6 MB, free: 10.47 MB / 206.1 MB Notification: Performance of FrontEnd - loaded program: time 0.001353/0.001353, allocations: 59.91 kB / 359.4 MB, free: 12.92 MB / 302.1 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.253/0.2544, allocations: 50.55 MB / 409.9 MB, free: 1.594 MB / 318.1 MB Notification: Performance of NFInst.instantiate(Modelica.Electrical.Digital.Examples.MUX2x1): time 0.00259/0.257, allocations: 1.56 MB / 411.5 MB, free: 28 kB / 318.1 MB Notification: Performance of NFInst.instExpressions: time 0.001881/0.2589, allocations: 0.8926 MB / 412.4 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFInst.updateImplicitVariability: time 5.753e-05/0.259, allocations: 0 / 412.4 MB, free: 15.13 MB / 334.1 MB Notification: Performance of NFTyping.typeComponents: time 9.108e-05/0.2591, allocations: 15.86 kB / 412.4 MB, free: 15.11 MB / 334.1 MB Notification: Performance of NFTyping.typeBindings: time 8.581e-05/0.2592, allocations: 23.8 kB / 412.4 MB, free: 15.09 MB / 334.1 MB Notification: Performance of NFTyping.typeClassSections: time 0.0002555/0.2595, allocations: 51.88 kB / 412.5 MB, free: 15.04 MB / 334.1 MB Notification: Performance of NFFlatten.flatten: time 0.0002314/0.2597, allocations: 179.7 kB / 412.7 MB, free: 14.86 MB / 334.1 MB Notification: Performance of NFFlatten.resolveConnections: time 0.0001154/0.2599, allocations: 25.39 kB / 412.7 MB, free: 14.83 MB / 334.1 MB Notification: Performance of NFEvalConstants.evaluate: time 0.0006506/0.2605, allocations: 0.6278 MB / 413.3 MB, free: 14.2 MB / 334.1 MB Notification: Performance of NFSimplifyModel.simplify: time 0.0001514/0.2607, allocations: 87.67 kB / 413.4 MB, free: 14.11 MB / 334.1 MB Notification: Performance of NFPackage.collectConstants: time 5.495e-05/0.2607, allocations: 12 kB / 413.4 MB, free: 14.1 MB / 334.1 MB Notification: Performance of NFFlatten.collectFunctions: time 5.151e-05/0.2608, allocations: 8 kB / 413.4 MB, free: 14.09 MB / 334.1 MB Notification: Performance of NFScalarize.scalarize: time 9.387e-05/0.2609, allocations: 79.62 kB / 413.5 MB, free: 14.02 MB / 334.1 MB Notification: Performance of NFVerifyModel.verify: time 0.0001272/0.261, allocations: 127 kB / 413.6 MB, free: 13.89 MB / 334.1 MB Notification: Performance of NFConvertDAE.convert: time 0.0003958/0.2614, allocations: 458.4 kB / 414.1 MB, free: 13.44 MB / 334.1 MB Notification: Performance of FrontEnd - DAE generated: time 4.98e-06/0.2614, allocations: 0 / 414.1 MB, free: 13.44 MB / 334.1 MB Notification: Performance of FrontEnd: time 3.076e-06/0.2615, allocations: 4 kB / 414.1 MB, free: 13.44 MB / 334.1 MB Notification: Performance of Transformations before backend: time 1.099e-05/0.2615, allocations: 3.938 kB / 414.1 MB, free: 13.43 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.0007896/0.2623, allocations: 0.8148 MB / 414.9 MB, free: 12.54 MB / 334.1 MB Notification: Performance of prepare preOptimizeDAE: time 3.54e-05/0.2623, allocations: 12.03 kB / 414.9 MB, free: 12.53 MB / 334.1 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.016e-05/0.2624, allocations: 40.47 kB / 414.9 MB, free: 12.49 MB / 334.1 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0002708/0.2627, allocations: 290.2 kB / 415.2 MB, free: 12.17 MB / 334.1 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.147e-05/0.2627, allocations: 12.38 kB / 415.2 MB, free: 12.16 MB / 334.1 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.285e-05/0.2627, allocations: 8.375 kB / 415.2 MB, free: 12.15 MB / 334.1 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.000342/0.2631, allocations: 173.9 kB / 415.4 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.023e-06/0.2631, allocations: 3.938 kB / 415.4 MB, free: 11.97 MB / 334.1 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 3.085e-05/0.2631, allocations: 8 kB / 415.4 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.867e-06/0.2632, allocations: 0 / 415.4 MB, free: 11.96 MB / 334.1 MB Notification: Performance of preOpt removeEqualRHS (simulation): time 0.0001672/0.2633, allocations: 87.89 kB / 415.5 MB, free: 11.88 MB / 334.1 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006614/0.264, allocations: 0.4965 MB / 416 MB, free: 11.33 MB / 334.1 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0002123/0.2642, allocations: 126.5 kB / 416.1 MB, free: 11.2 MB / 334.1 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001752/0.2644, allocations: 112.9 kB / 416.2 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt evalFunc (simulation): time 1.168e-05/0.2644, allocations: 4 kB / 416.2 MB, free: 11.08 MB / 334.1 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.000398/0.2648, allocations: 242.6 kB / 416.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of pre-optimization done (n=14): time 1.443e-06/0.2648, allocations: 0 / 416.5 MB, free: 10.82 MB / 334.1 MB Notification: Performance of matching and sorting (n=14): time 0.0009515/0.2658, allocations: 0.6219 MB / 417.1 MB, free: 10.16 MB / 334.1 MB Notification: Performance of inlineWhenForInitialization (initialization): time 0.0001047/0.2659, allocations: 195.9 kB / 417.3 MB, free: 9.926 MB / 334.1 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.000653/0.2666, allocations: 0.5601 MB / 417.8 MB, free: 9.348 MB / 334.1 MB Notification: Performance of collectPreVariables (initialization): time 3.666e-05/0.2666, allocations: 33.7 kB / 417.9 MB, free: 9.309 MB / 334.1 MB Notification: Performance of collectInitialEqns (initialization): time 8.459e-05/0.2667, allocations: 121 kB / 418 MB, free: 9.188 MB / 334.1 MB Notification: Performance of collectInitialBindings (initialization): time 4.32e-05/0.2668, allocations: 23.72 kB / 418 MB, free: 9.164 MB / 334.1 MB Notification: Performance of simplifyInitialFunctions (initialization): time 0.0001268/0.2669, allocations: 97.41 kB / 418.1 MB, free: 9.062 MB / 334.1 MB Notification: Performance of setup shared object (initialization): time 0.0001163/0.267, allocations: 334.8 kB / 418.4 MB, free: 8.727 MB / 334.1 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001546/0.2672, allocations: 76.08 kB / 418.5 MB, free: 8.652 MB / 334.1 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001583/0.2674, allocations: 105.5 kB / 418.6 MB, free: 8.543 MB / 334.1 MB Notification: Performance of analyzeInitialSystem (initialization): time 0.0003936/0.2678, allocations: 434.7 kB / 419 MB, free: 8.051 MB / 334.1 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 2.335e-06/0.2678, allocations: 0 / 419 MB, free: 8.051 MB / 334.1 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0006457/0.2684, allocations: 0.5051 MB / 419.6 MB, free: 7.512 MB / 334.1 MB Notification: Performance of prepare postOptimizeDAE: time 9.219e-05/0.2685, allocations: 152.5 kB / 419.7 MB, free: 7.332 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.879e-06/0.2685, allocations: 0 / 419.7 MB, free: 7.332 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.608e-05/0.2686, allocations: 4 kB / 419.7 MB, free: 7.328 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.91e-05/0.2686, allocations: 0 / 419.7 MB, free: 7.328 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 5.15e-06/0.2686, allocations: 0 / 419.7 MB, free: 7.328 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001609/0.2688, allocations: 27.92 kB / 419.7 MB, free: 7.301 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 9.255e-05/0.2689, allocations: 89.31 kB / 419.8 MB, free: 7.215 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.0003547/0.2692, allocations: 411.9 kB / 420.2 MB, free: 6.773 MB / 334.1 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 6.391e-05/0.2693, allocations: 47.47 kB / 420.3 MB, free: 6.727 MB / 334.1 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001064/0.2694, allocations: 75.45 kB / 420.3 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 2.845e-06/0.2694, allocations: 0 / 420.3 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.429e-06/0.2694, allocations: 0 / 420.3 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.485e-06/0.2694, allocations: 0 / 420.3 MB, free: 6.656 MB / 334.1 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.001067/0.2705, allocations: 0.9556 MB / 421.3 MB, free: 5.613 MB / 334.1 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 1.934e-06/0.2705, allocations: 4 kB / 421.3 MB, free: 5.609 MB / 334.1 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.869e-06/0.2705, allocations: 0 / 421.3 MB, free: 5.609 MB / 334.1 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.214e-06/0.2705, allocations: 0 / 421.3 MB, free: 5.609 MB / 334.1 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.597e-05/0.2706, allocations: 19.98 kB / 421.3 MB, free: 5.59 MB / 334.1 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.493e-06/0.2706, allocations: 3.938 kB / 421.3 MB, free: 5.586 MB / 334.1 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 2.454e-06/0.2706, allocations: 3.938 kB / 421.3 MB, free: 5.582 MB / 334.1 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0007648/0.2714, allocations: 0.6673 MB / 422 MB, free: 4.867 MB / 334.1 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003034/0.2717, allocations: 260.4 kB / 422.3 MB, free: 4.594 MB / 334.1 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 7.235e-05/0.2718, allocations: 16.17 kB / 422.3 MB, free: 4.578 MB / 334.1 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001616/0.2719, allocations: 12 kB / 422.3 MB, free: 4.566 MB / 334.1 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001376/0.2721, allocations: 59.88 kB / 422.3 MB, free: 4.508 MB / 334.1 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 9.383e-05/0.2722, allocations: 109.2 kB / 422.4 MB, free: 4.402 MB / 334.1 MB Notification: Performance of sorting global known variables: time 0.0004771/0.2727, allocations: 418.8 kB / 422.9 MB, free: 3.996 MB / 334.1 MB Notification: Performance of sort global known variables: time 1.4e-07/0.2727, allocations: 0 / 422.9 MB, free: 3.996 MB / 334.1 MB Notification: Performance of remove unused functions: time 0.0003142/0.273, allocations: 55.94 kB / 422.9 MB, free: 3.941 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.0001532/0.2731, allocations: 123.2 kB / 423 MB, free: 3.812 MB / 334.1 MB Notification: Performance of simCode: created initialization part: time 0.0006244/0.2738, allocations: 0.5321 MB / 423.6 MB, free: 3.219 MB / 334.1 MB Notification: Performance of simCode: created event and clocks part: time 2.334e-06/0.2738, allocations: 0 / 423.6 MB, free: 3.219 MB / 334.1 MB Notification: Performance of simCode: created simulation system equations: time 0.0003994/0.2742, allocations: 465 kB / 424 MB, free: 2.703 MB / 334.1 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0008851/0.2751, allocations: 186.9 kB / 424.2 MB, free: 2.543 MB / 334.1 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.001245/0.2763, allocations: 0.797 MB / 425 MB, free: 1.715 MB / 334.1 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.0004275/0.2768, allocations: 0.8182 MB / 425.8 MB, free: 0.8711 MB / 334.1 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 2.792e-05/0.2768, allocations: 15.44 kB / 425.8 MB, free: 0.8555 MB / 334.1 MB Notification: Performance of SimCode: time 2.41e-07/0.2768, allocations: 4 kB / 425.8 MB, free: 0.8516 MB / 334.1 MB Notification: Performance of Templates: time 0.006551/0.2834, allocations: 4.292 MB / 430.1 MB, free: 12.46 MB / 350.1 MB make -j1 -f Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.makefile (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 & ./Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1 -abortSlowSimulation -alarm=480 -emit_protected -lv LOG_STATS > 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.0.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