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/Complex trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo", uses=false) loadFile("/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo", uses=false) Using package ModelicaServices with version trunk (/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo) 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) 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/Complex trunk/package.mo): time 0.001468/0.001468, allocations: 202.1 kB / 8.768 MB, free: 320 kB / 5.871 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/Modelica trunk/package.mo): time 1.278/1.278, allocations: 225.6 MB / 234.8 MB, free: 3.219 MB / 186.7 MB Notification: Performance of loadFile(/home/hudson/saved_omc/libraries/.openmodelica/libraries/ModelicaServices trunk/package.mo): time 0.0008136/0.0008136, allocations: 92.45 kB / 286.7 MB, free: 5.305 MB / 234.7 MB Notification: Performance of FrontEnd - loaded program: time 1.424e-05/1.422e-05, allocations: 4 kB / 343.7 MB, free: 8.246 MB / 282.7 MB Notification: Performance of FrontEnd - Absyn->SCode: time 0.09996/0.09999, allocations: 51.48 MB / 395.2 MB, free: 4.727 MB / 330.7 MB Notification: Performance of FrontEnd - scodeFlatten: time 0.3251/0.4251, allocations: 82.87 MB / 478 MB, free: 9.941 MB / 346.7 MB Notification: Performance of FrontEnd - mkProgramGraph: time 0.0001653/0.4253, allocations: 68.19 kB / 478.1 MB, free: 9.914 MB / 346.7 MB Notification: Performance of FrontEnd - DAE generated: time 0.04821/0.4736, allocations: 28.06 MB / 0.4943 GB, free: 3.711 MB / 362.7 MB Notification: Performance of FrontEnd: time 1.172e-06/0.4736, allocations: 0 / 0.4943 GB, free: 3.711 MB / 362.7 MB Notification: Performance of Transformations before backend: time 1.3e-05/0.4736, allocations: 8 kB / 0.4943 GB, free: 3.703 MB / 362.7 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.0006306/0.4743, allocations: 0.6847 MB / 0.495 GB, free: 2.953 MB / 362.7 MB Notification: Performance of prepare preOptimizeDAE: time 3.64e-05/0.4743, allocations: 15.5 kB / 0.495 GB, free: 2.941 MB / 362.7 MB Notification: Performance of preOpt normalInlineFunction (simulation): time 8.704e-05/0.4744, allocations: 39.53 kB / 0.495 GB, free: 2.902 MB / 362.7 MB Notification: Performance of preOpt evaluateParameters (simulation): time 0.0003303/0.4748, allocations: 283.5 kB / 0.4953 GB, free: 2.586 MB / 362.7 MB Notification: Performance of preOpt simplifyIfEquations (simulation): time 2.065e-05/0.4748, allocations: 4 kB / 0.4953 GB, free: 2.582 MB / 362.7 MB Notification: Performance of preOpt expandDerOperator (simulation): time 3.169e-05/0.4748, allocations: 8 kB / 0.4953 GB, free: 2.574 MB / 362.7 MB Notification: Performance of preOpt removeEqualFunctionCalls (simulation): time 0.0001485/0.475, allocations: 75.97 kB / 0.4954 GB, free: 2.5 MB / 362.7 MB Notification: Performance of preOpt clockPartitioning (simulation): time 0.0002402/0.4752, allocations: 159.6 kB / 0.4955 GB, free: 2.34 MB / 362.7 MB Notification: Performance of preOpt findStateOrder (simulation): time 7.314e-06/0.4752, allocations: 4 kB / 0.4955 GB, free: 2.336 MB / 362.7 MB Notification: Performance of preOpt replaceEdgeChange (simulation): time 2.907e-05/0.4753, allocations: 4 kB / 0.4955 GB, free: 2.332 MB / 362.7 MB Notification: Performance of preOpt inlineArrayEqn (simulation): time 3.747e-06/0.4753, allocations: 0 / 0.4955 GB, free: 2.332 MB / 362.7 MB Notification: Performance of preOpt removeSimpleEquations (simulation): time 0.0006837/0.476, allocations: 478.5 kB / 0.496 GB, free: 1.852 MB / 362.7 MB Notification: Performance of preOpt comSubExp (simulation): time 0.0001558/0.4761, allocations: 114.6 kB / 0.4961 GB, free: 1.73 MB / 362.7 MB Notification: Performance of preOpt resolveLoops (simulation): time 0.0001297/0.4763, allocations: 100.9 kB / 0.4962 GB, free: 1.629 MB / 362.7 MB Notification: Performance of preOpt evalFunc (simulation): time 7.474e-06/0.4763, allocations: 4 kB / 0.4962 GB, free: 1.625 MB / 362.7 MB Notification: Performance of preOpt encapsulateWhenConditions (simulation): time 0.0002641/0.4766, allocations: 234.6 kB / 0.4964 GB, free: 1.371 MB / 362.7 MB Notification: Performance of pre-optimization done (n=14): time 1.412e-06/0.4766, allocations: 0 / 0.4964 GB, free: 1.371 MB / 362.7 MB Notification: Performance of matching and sorting (n=14): time 0.0005686/0.4772, allocations: 357 kB / 0.4968 GB, free: 1.016 MB / 362.7 MB Notification: Performance of inlineWhenForInitialization (initialization): time 9.017e-05/0.4773, allocations: 196 kB / 0.4969 GB, free: 0.7812 MB / 362.7 MB Notification: Performance of selectInitializationVariablesDAE (initialization): time 0.0005503/0.4778, allocations: 493 kB / 0.4974 GB, free: 304 kB / 362.7 MB Notification: Performance of collectPreVariables (initialization): time 3.422e-05/0.4779, allocations: 29.7 kB / 0.4974 GB, free: 268 kB / 362.7 MB Notification: Performance of collectInitialEqns (initialization): time 6.65e-05/0.4779, allocations: 117.4 kB / 0.4976 GB, free: 144 kB / 362.7 MB Notification: Performance of collectInitialBindings (initialization): time 4.139e-05/0.478, allocations: 27.7 kB / 0.4976 GB, free: 116 kB / 362.7 MB Notification: Performance of simplifyInitialFunctions (initialization): time 2.297e-05/0.478, allocations: 4 kB / 0.4976 GB, free: 112 kB / 362.7 MB Notification: Performance of setup shared object (initialization): time 0.0001276/0.4781, allocations: 330.8 kB / 0.4979 GB, free: 15.78 MB / 378.7 MB Notification: Performance of preBalanceInitialSystem (initialization): time 0.0001129/0.4783, allocations: 75.97 kB / 0.498 GB, free: 15.7 MB / 378.7 MB Notification: Performance of partitionIndependentBlocks (initialization): time 0.0001088/0.4784, allocations: 79.92 kB / 0.4981 GB, free: 15.62 MB / 378.7 MB Notification: Performance of analyzeInitialSystem (initialization): time 9.155e-05/0.4785, allocations: 63.95 kB / 0.4981 GB, free: 15.56 MB / 378.7 MB Notification: Performance of solveInitialSystemEqSystem (initialization): time 1.593e-06/0.4785, allocations: 0 / 0.4981 GB, free: 15.56 MB / 378.7 MB Notification: Performance of matching and sorting (n=16) (initialization): time 0.0004692/0.479, allocations: 325.5 kB / 0.4984 GB, free: 15.24 MB / 378.7 MB Notification: Performance of prepare postOptimizeDAE: time 8.822e-05/0.4791, allocations: 152.5 kB / 0.4986 GB, free: 15.06 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (initialization): time 4.589e-06/0.4791, allocations: 0 / 0.4986 GB, free: 15.06 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (initialization): time 1.142e-05/0.4791, allocations: 0 / 0.4986 GB, free: 15.06 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (initialization): time 1.511e-05/0.4791, allocations: 0 / 0.4986 GB, free: 15.06 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (initialization): time 3.306e-06/0.4791, allocations: 4 kB / 0.4986 GB, free: 15.05 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (initialization): time 0.0001411/0.4793, allocations: 19.89 kB / 0.4986 GB, free: 15.04 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (initialization): time 0.0001033/0.4794, allocations: 104.2 kB / 0.4987 GB, free: 14.94 MB / 378.7 MB Notification: Model statistics after passing the back-end for initialization: * Number of independent subsystems: 1 * Number of states: 0 () * Number of discrete variables: 16 ($whenCondition1,$whenCondition2,Mux2x1.sel,Mux2x1.nextstate,Mux2x1.yy,$PRE.Mux2x1.inertialDelaySensitive.x,Mux2x1.inertialDelaySensitive.x,$PRE.Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.y,Mux2x1.inertialDelaySensitive.delayTime,Mux2x1.inertialDelaySensitive.y_auxiliary,Mux2x1.inertialDelaySensitive.y_old,Mux2x1.inertialDelaySensitive.lh,Mux2x1.inertialDelaySensitive.t_next,Input1.y,Input0.y) * Number of discrete 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of prepare postOptimizeDAE: time 0.0001789/0.4796, allocations: 281.7 kB / 0.499 GB, free: 14.62 MB / 378.7 MB Notification: Performance of postOpt lateInlineFunction (simulation): time 5.564e-05/0.4796, allocations: 43.53 kB / 0.499 GB, free: 14.58 MB / 378.7 MB Notification: Performance of postOpt wrapFunctionCalls (simulation): time 0.0001079/0.4797, allocations: 79.73 kB / 0.4991 GB, free: 14.51 MB / 378.7 MB Notification: Performance of postOpt inlineArrayEqn (simulation): time 1.713e-06/0.4797, allocations: 0 / 0.4991 GB, free: 14.51 MB / 378.7 MB Notification: Performance of postOpt constantLinearSystem (simulation): time 4.148e-06/0.4798, allocations: 0 / 0.4991 GB, free: 14.51 MB / 378.7 MB Notification: Performance of postOpt simplifysemiLinear (simulation): time 2.715e-06/0.4798, allocations: 0 / 0.4991 GB, free: 14.51 MB / 378.7 MB Notification: Performance of postOpt removeSimpleEquations (simulation): time 0.0008492/0.4806, allocations: 0.737 MB / 0.4998 GB, free: 13.73 MB / 378.7 MB Notification: Performance of postOpt simplifyComplexFunction (simulation): time 2.956e-06/0.4806, allocations: 3.984 kB / 0.4998 GB, free: 13.72 MB / 378.7 MB Notification: Performance of postOpt solveSimpleEquations (simulation): time 4.729e-06/0.4806, allocations: 4 kB / 0.4998 GB, free: 13.72 MB / 378.7 MB Notification: Performance of postOpt tearingSystem (simulation): time 2.384e-06/0.4806, allocations: 0 / 0.4998 GB, free: 13.72 MB / 378.7 MB Notification: Performance of postOpt inputDerivativesUsed (simulation): time 3.39e-05/0.4807, allocations: 19.98 kB / 0.4998 GB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt calculateStrongComponentJacobians (simulation): time 1.654e-06/0.4807, allocations: 0 / 0.4998 GB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt calculateStateSetsJacobians (simulation): time 1.943e-06/0.4807, allocations: 0 / 0.4998 GB, free: 13.7 MB / 378.7 MB Notification: Performance of postOpt symbolicJacobian (simulation): time 0.0005691/0.4813, allocations: 493.8 kB / 0.5003 GB, free: 13.2 MB / 378.7 MB Notification: Performance of postOpt removeConstants (simulation): time 0.0003054/0.4816, allocations: 252.4 kB / 0.5005 GB, free: 12.94 MB / 378.7 MB Notification: Performance of postOpt simplifyTimeIndepFuncCalls (simulation): time 6.716e-05/0.4817, allocations: 12 kB / 0.5005 GB, free: 12.93 MB / 378.7 MB Notification: Performance of postOpt simplifyAllExpressions (simulation): time 0.0001572/0.4818, allocations: 19.98 kB / 0.5006 GB, free: 12.91 MB / 378.7 MB Notification: Performance of postOpt findZeroCrossings (simulation): time 0.0001338/0.482, allocations: 55.92 kB / 0.5006 GB, free: 12.85 MB / 378.7 MB Notification: Performance of postOpt collapseArrayExpressions (simulation): time 0.0001011/0.4821, allocations: 93.25 kB / 0.5007 GB, free: 12.76 MB / 378.7 MB Notification: Performance of sorting global known variables: time 0.0004463/0.4825, allocations: 402.6 kB / 0.5011 GB, free: 12.37 MB / 378.7 MB Notification: Performance of sort global known variables: time 1.4e-07/0.4825, allocations: 0 / 0.5011 GB, free: 12.37 MB / 378.7 MB Notification: Performance of remove unused functions: time 0.0002885/0.4828, allocations: 48 kB / 0.5011 GB, free: 12.32 MB / 378.7 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.sel,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,Input0.y) * Number of discrete states: 14 (Input1.y,Mux2x1.sel,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) * 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 (linear and non-linear blocks): 0 * Torn equation systems: 0 * Mixed (continuous/discrete) equation systems: 0 Notification: Performance of Backend phase and start with SimCode phase: time 0.0001265/0.483, allocations: 111.2 kB / 0.5012 GB, free: 12.21 MB / 378.7 MB Notification: Performance of simCode: created initialization part: time 0.0004825/0.4835, allocations: 0.5182 MB / 0.5018 GB, free: 11.63 MB / 378.7 MB Notification: Performance of simCode: created event and clocks part: time 1.784e-06/0.4835, allocations: 0 / 0.5018 GB, free: 11.63 MB / 378.7 MB Notification: Performance of simCode: created simulation system equations: time 0.0003203/0.4838, allocations: 449 kB / 0.5022 GB, free: 11.13 MB / 378.7 MB Notification: Performance of simCode: created of all other equations (e.g. parameter, nominal, assert, etc): time 0.0006903/0.4845, allocations: 161 kB / 0.5023 GB, free: 10.98 MB / 378.7 MB Notification: Performance of simCode: created linear, non-linear and system jacobian parts: time 0.0009115/0.4854, allocations: 0.601 MB / 0.5029 GB, free: 10.35 MB / 378.7 MB Notification: Performance of simCode: some other stuff during SimCode phase: time 0.000436/0.4859, allocations: 0.8339 MB / 0.5037 GB, free: 9.492 MB / 378.7 MB Notification: Performance of simCode: alias equations: time 6.264e-05/0.4859, allocations: 12.53 kB / 0.5037 GB, free: 9.48 MB / 378.7 MB Notification: Performance of simCode: all other stuff during SimCode phase: time 1.821e-05/0.486, allocations: 11.44 kB / 0.5038 GB, free: 9.469 MB / 378.7 MB Notification: Performance of SimCode: time 2.3e-07/0.486, allocations: 0 / 0.5038 GB, free: 9.469 MB / 378.7 MB Notification: Performance of Templates: time 0.009197/0.4952, allocations: 6.345 MB / 0.51 GB, free: 3.027 MB / 378.7 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/jenkins/ws/OpenModelicaLibraryTestingWork/Reference-modelica.org/ReferenceResults/MAP-LIB_ReferenceResults/v4.0.0/Modelica/Electrical/Digital/Examples/MUX2x1/MUX2x1.csv","../files/Modelica_trunk_Modelica.Electrical.Digital.Examples.MUX2x1.diff",relTol=0.003,relTolDiffMinMax=0.003,rangeDelta=0.001) Reference file matches